1

I've downloaded and installed the deb and the bin package for Visual Studio Code 32bit, but in both cases I'm getting the following error when I try to start it

./code: line 36: 2704 Illegal instruction   ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"

I can't understand what is causing this problem. My system release is 12.04.5 LTS

With gdebi

Same error, see my LXTerminal from LXDE

mirko@localhost:~/Downloads$ sudo gdebi code_1.6.1-1476372351_i386.deb 
Reading package lists... Done
Building dependency tree        
Reading state information... Done
Building data structures... Done 
Building data structures... Done 


Code editing. Redefined.
 Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/linux for installation instructions and FAQ.
Do you want to install the software package? [y/N]:y
Selecting previously unselected package code.
(Reading database ... 97473 files and directories currently installed.)
Unpacking code (from code_1.6.1-1476372351_i386.deb) ...
Setting up code (1.6.1-1476372351) ...

mirko@localhost:~/Downloads$ code
/usr/bin/code: line 36:  5907 Illegal instruction     ELECTRON_RUN_AS_NODE=1 "$ELECTRON" "$CLI" "$@"

Current status: still Open issue

Please note that, despite the accepted answer, the issue is still open

From Microsoft VSCode GitHub, they asked me to file an issue to Electron GitHub. I'll keep you updated.

  • Is it Visual Studio or Visual Studio Code ? – Gautam Vashisht Oct 30 '16 at 14:49
  • 1
    I believe that you are trying to install Visual Studio Code because Visual Studio can only be installed in Windows ! – Gautam Vashisht Oct 30 '16 at 14:50
0

I recommend you to completely remove both Atom and Visual Studio Code(even the configuration files) because they both run on Electron framework and it seems that there is some problem with it. Also remove the installers you used to install them. Then install Node.js in your system. Then download installer(.deb packages) of Visual Studio Code(32-bit) and install it. To install Atom(32-bit), go to the link given below and follow the instructions there :-

How I can create a 32-bit version of Atom?

Hope it works !

If it still doesn't work, file an issue at Electron GitHub

  • Don't run "code" from Downloads folder! First type cd to go to /home/mirko and then type "code" there! – Gautam Vashisht Oct 30 '16 at 16:10
  • I mean do like this :- mirko@localhost:~$ code – Gautam Vashisht Oct 30 '16 at 16:21
  • Search for "Visual Studio Code" from Dash in Ubuntu! Is it present there ? – Gautam Vashisht Oct 30 '16 at 16:26
  • OK! Check whether Code is in Installed Applications – Gautam Vashisht Oct 30 '16 at 16:33
  • If it is there, try to run it from there ! – Gautam Vashisht Oct 30 '16 at 16:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy