Skip to content

Crash when opening Code via the command line #50

Closed

Description

@Tyriar

Ubuntu 12.04, vscode 0.10.1

Note that I have file symlinks setup for these config files which could having something to do with this crash:

  • ~/.config/Code/User/keybindings.json
  • ~/.config/Code/User/settings.json

Repro:

  1. Open terminal
  2. Code &
  3. Open another terminal (at ~)
  4. Code . &

Expected:
vscode opens successfully

Actual:
Crash:

A JavaScript error occurred in the main process

Uncaught Exception:
Error: watch ENOSPC
    at exports._errnoException (util.js:837:11)
    at FSWatcher.start (fs.js:1247:11)
    at Object.fs.watch (fs.js:1273:11)
    at e.registerWatchers (/home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/vs/workbench/electron-main/main.js:7:3462)
    at new e (/home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/vs/workbench/electron-main/main.js:7:3207)
    at Object.<anonymous> (/home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/vs/workbench/electron-main/main.js:7:4907)
    at e._invokeFactory (/home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/vs/loader.js:5:13773)
    at e._complete (/home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/vs/loader.js:5:14012)
    at e.resolveDependency (/home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/vs/loader.js:5:15066)
    at e._onModuleComplete (/home/local/ANT/daniimms/VSCode-linux-x64/resources/app/out/vs/loader.js:5:21369)

Activity

  1. Tyriar commented on Nov 18, 2015

    @Tyriar
    ContributorAuthor

    I added it, I won't be able to reboot to check right now though. Regardless, shouldn't this fail gracefully instead of throwing a cryptic exception?

  2. JC1738 commented on Jan 20, 2016

    @JC1738

    I have this same issue with ubuntu 14.04, i increased the file handle limit, still have the problem.

  3. Tyriar commented on Jan 20, 2016

    @Tyriar
    ContributorAuthor

    I'm still hitting it when I try open a second instance after setting the watch limit fs.inotify.max_user_watches=16384.

    Jim Castillo (@JC1738) are you using symlinks for your config files? Or is there anything else special about your set up?

  4. isomorphisms commented on Mar 4, 2016

    @isomorphisms

    I got this error too in Ubuntu 12.04.


    Actually my error is precisely:

    A JavaScript error occurred in the main process
    Uncaught Exception:
    Error: Failed to set path
        at Error (native)
        at Object.<anonymous> (/opt/VSCode-linux-ia32/resources/atom.asar/browser/lib/init.js:120:7)
        at Object.<anonymous> (/opt/VSCode-linux-ia32/resources/atom.asar/browser/lib/init.js:132:4)
        at Module._compile (module.js:434:26)
        at Object.Module._extensions..js (module.js:452:10)
        at Module.load (module.js:355:32)
        at Function.Module._load (module.js:310:12)
        at Function.Module.runMain (module.js:475:10)
        at startup (node.js:130:18)
        at node.js:982:3
    
    
  5. Tyriar commented on Mar 4, 2016

    @Tyriar
    ContributorAuthor

    i (@isomorphisms) looks like a distinct issue, I created #3700

  6. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions