Open SudhindraKovalam opened 7 years ago
Really odd, it looks like it can't determine the application ID. Anything odd about your computer setup or where you have VS Code installed?
Can confirm, just got this when running Visual Studio Code:
2017-12-15 17:33:00.985 code[5097:123769] *** Assertion failure in +[SQRLDirectoryManager currentApplicationManager], /Users/joshaber/Documents/Development/GitHub/Squirrel.Mac/Squirrel/SQRLDirectoryManager.m:30
Illegal instruction: 4
Possibly related: running applications from symbolic links: https://github.com/Microsoft/vscode/issues/22253
I'm also facing same issue.
I can confirm the error as well. The output is:
[main 2019-06-28T13:45:50.721Z] update#setState checking for updates 2019-06-28 10:45:50.727 code[51674:1233310] *** Assertion failure in +[SQRLDirectoryManager currentApplicationManager], /Users/sattard/projects/Squirrel.Mac/Squirrel/SQRLDirectoryManager.m:30
I have this error always when I try to run vscode from the symbolik link:
/usr/bin/code -> /Applications/Visual Studio Code.app/Contents/MacOS/Electron
For example, if I run code .
or code somefile
I get the error. If I open it from the dock, the error does not shows up (I am using Mac OS 10.13.6).
Interestingly, If I use the absolute path /Applications/Visual Studio Code.app/Contents/MacOS/Electron somefile
the error does not shows up and the output is:
[main 2019-06-28T13:44:58.834Z] update#setState checking for updates [main 2019-06-28T13:45:00.134Z] update#setState idle
vscode version 1.35.1 (1.35.1) MacOS High Sierra 10.13.6
Same problem when running code with a symbolic link on a mac.
Oh I see
Here is the solution: https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line
2017-08-25 10:15:10.810 code[27400:5221619] *** Assertion failure in +[SQRLDirectoryManager currentApplicationManager], /Users/joshaber/Documents/Development/GitHub/Squirrel.Mac/Squirrel/SQRLDirectoryManager.m:30 Illegal instruction: 4
Application User: Microsoft VS Code Mac Stable