drcika / apc-extension

Home Page:https://marketplace.visualstudio.com/items?itemName=drcika.apc-extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shows read-only file system error upon install.

AsadNoman opened this issue · comments

Apc Extension failed: Error: EROFS: read-only file system, rename '/snap/code/150/usr/share/code/resources/app/out/bootstrap-amd.js' -> '/snap/code/150/usr/share/code/resources/app/out/bootstrap-amd.js.apc.extension.backup'

Same issue here.

its worked for me in cursor:

  1. Open a terminal and navigate to the directory where you downloaded the AppImage.

  2. Make the AppImage executable:

    chmod +x cursor-0.40.4x86_64.AppImage
  3. Create a new directory to extract the content:

    mkdir ~/cursor-extracted
  4. Extract the contents of the AppImage:

    ./cursor-0.40.4x86_64.AppImage --appimage-extract
  5. Move the extracted content to the new directory:

    mv squashfs-root/* ~/cursor-extracted/
  6. Create a startup script for Cursor:

    cat << EOF > ~/run-cursor.sh
    #!/bin/bash
    export TMPDIR=\$HOME/cursor-temp
    mkdir -p \$TMPDIR
    cd ~/cursor-extracted
    ./AppRun "\$@"
    EOF

This script sets up a custom temporary directory to avoid permission issues.

  1. Make the script executable:

    chmod +x ~/run-cursor.sh
  2. Run Cursor using the new script:

    ~/run-cursor.sh