Squirrel / Squirrel.Mac

:shipit: Cocoa framework for updating OS X apps :shipit:
MIT License
1.59k stars 128 forks source link

Keep seeing this error #213

Open SudhindraKovalam opened 7 years ago

SudhindraKovalam commented 7 years ago

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

joshaber commented 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?

plopp commented 6 years ago

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

s-celles commented 6 years ago

I'm also facing same issue.

amelco commented 5 years ago

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

claytantor commented 5 years ago

Same problem when running code with a symbolic link on a mac.

koy0612 commented 5 years ago

Oh I see

amelco commented 4 years ago

Here is the solution: https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line