FS#64432 - [code] 1.40.0-1 fails to launch with assertion error

Attached to Project: Community Packages
Opened by Crispin (crispin) - Saturday, 09 November 2019, 04:14 GMT
Last edited by Filipe Laíns (FFY00) - Saturday, 09 November 2019, 18:53 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Filipe Laíns (FFY00)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 39
Private No

Details

Description:
I've just upgraded code - go to launch it from the shell and it fails with the following:

crispin@computer:~ ⍬ code
electron4[7860]: ../../third_party/electron_node/src/node_file.cc:897:void node::fs::InternalModuleStat(const FunctionCallbackInfo<v8::Value> &): Assertion `args[0]->IsString()' failed.
1: 0x5611fecfd8a6 [electron4]
2: 0x5611fecfc72c [electron4]
3: 0x5611fed4acc7 [electron4]
4: 0x5611fb59a8a1 [electron4]
5: 0x5611fbe0124e [electron4]
fish: “code” terminated by signal SIGABRT (Abort)

electron4 launches fine and shows its startup screen.
This task depends upon

Closed by  Filipe Laíns (FFY00)
Saturday, 09 November 2019, 18:53 GMT
Reason for closing:  Fixed
Additional comments about closing:  code 1.40.0-2
Comment by Aidan Dang (AidanGG) - Saturday, 09 November 2019, 04:36 GMT
VS Code 1.40 now uses Electron 6 (https://code.visualstudio.com/updates/v1_40#_engineering) which is no longer in the repos having been replaced by the Electron 7 as the electron package. Perhaps an electron6 package is needed to restore functionality to VS Code?
Comment by Vyacheslav Konovalov (vyachkonovalov) - Saturday, 09 November 2019, 05:10 GMT
Installed electron6-bin from AUR, edited /usr/bin/code and changed 'electron4' to 'electron6', and now vscode runs, but doesn't work :(
As temporary solution, this works:
Download .tar.gz from https://code.visualstudio.com/download
```shell
tar -xzf code-stable-*.tar.gz
sudo mv VSCode-linux-x64/ /opt/VSCode
sudo chown -R root:root /opt/VSCode
sudo ln -s /opt/VSCode/bin/code /usr/bin/code
cd ~
ln -s .vscode-oss .vscode
cd ~/.config
ln -s Code\ -\ OSS Code
```
Comment by Aidan Dang (AidanGG) - Saturday, 09 November 2019, 06:48 GMT
With that solution you might as well install visual-studio-code-bin from AUR.
Comment by Comevius (Comevius) - Saturday, 09 November 2019, 07:48 GMT
The vscodium-bin package from AUR is also an alternative.
Comment by boojum (boojum) - Saturday, 09 November 2019, 11:58 GMT
Another alternative is to downgrade until this issue is solved:

pacman -U /var/cache/pacman/pkg/code-1.39.2-1-x86_64.pkg.tar.xz
Comment by Vuk Mirovic (wooque) - Saturday, 09 November 2019, 16:22 GMT
This update should be reverted until it's properly build and packaged, with Electron 6 and stuff.
Comment by Andre Rosenhammer (chiefdetektor) - Saturday, 09 November 2019, 16:31 GMT
The downgrade solution seems to be best suited as a quickfix.
Thanks for that hint.
Comment by Filipe Laíns (FFY00) - Saturday, 09 November 2019, 18:51 GMT
Sorry for the delay, I had to add an electron6 package a build code, which takes some time because it fails 70% of the time.

Loading...