vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Crash on Ubuntu 12.04

Open Tyriar opened this issue 10 years ago • 7 comments

From @isomorphisms on https://github.com/Microsoft/vscode/issues/50

I got this error in Ubuntu 12.04.

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

Tyriar avatar Mar 04 '16 03:03 Tyriar

Likely an electron issue...

bpasero avatar Mar 04 '16 08:03 bpasero

@bpasero there were 2 reports in like 24 hours, electron wasn't touched recently was it?

Tyriar avatar Mar 04 '16 09:03 Tyriar

@Tyriar no

bpasero avatar Mar 04 '16 09:03 bpasero

Filed https://github.com/atom/electron/issues/4705 to get some more insights from Electron.

bpasero avatar Mar 07 '16 17:03 bpasero

Another case https://github.com/Microsoft/vscode/issues/3737, they all seem to be on Ubuntu 12.04.

Tyriar avatar Mar 07 '16 17:03 Tyriar

@isomorphisms @Tyriar According to electron: Electron needs to write to $XDG_CONFIG_HOME/APP_NAME, this error happens when users don't have permission to create or write to that directory. please make sure you have the permissions.

We should probably add this to our FAQ. @gregvanl fyi

bpasero avatar Mar 08 '16 10:03 bpasero

I just did: sudo rm -r -f ~/.cache

I don't know if it was the best solution at all, but it does the trick...

biazzotto avatar Apr 24 '16 21:04 biazzotto