prash-wghats / Electron-VSCode-Atom-For-FreeBSD

Electron, VSCode, Atom & LightTable port for FreeBSD
96 stars 11 forks source link

Display error running on freebsd 12.1 #22

Closed claywd closed 6 years ago

claywd commented 6 years ago

So I downloaded your pre-built library and found that if I run the code-oss executable inside VSCode-freebsd-x64/bin/code-oss nothing happens... it would be good to have a log somewhere we could check for errors.

however, if I run VSCode-freebsd-x64/code-oss then I get this error Gtk-WARNING **: cannot open display:

obviously I could setup the xserver but is really it was intended to work?

claywd commented 6 years ago

so to add... vs code actually starts somewhere. I ran startx and it crashed gnome but when I then ran ./code-oss it actually created a xwindow with vscode running in it. So I suppose the question now is... how can I get code running on top of gnome

claywd commented 6 years ago

nevermind. I got it working after I started up the xserver. :)

claywd commented 6 years ago

for anyone else who finds this... run these and make your life easier.

sudo cp -r VSCode-freebsd-x64 /usr/local/bin/

sudo ln -s /usr/local/bin/VSCode-freebsd-x64/code-oss /usr/local/bin/vscode

now you run it with just vscode