You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running a fresh install of code-server on macOS 10.12.6 (yes, it's old and no, I'm not going to update anytime soon).
I can login using the generated password just fine, but then I receive several 404's, rendering code-server completely useless for me. Checking in Finder shows me that these files are actually missing, but do in fact exist in the various vscode build folders.
Next I'm trying to copy the missing files into the output directory, but this breaks more than it fixes.
I've also tried to compile everything myself, but this was just wasted time, because the same files are still missing.
I've checked previous 3.x releases, the last 2.x release and even a few of the earliest releases (which I know at least one of them worked before when I first tried code-server), but even then I'm receiving 404's.
Here's the console output on Safari 11.0.3 (12604.5.6.1.1):
[Error] Unrecognized Content-Security-Policy directive 'manifest-src'.
[Error] SyntaxError: Unexpected identifier 't'. Expected a ';' following a return statement.
(anonyme Funktion) (workbench.web.api.js:1574)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (uriIpc.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (uuid.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (cancellation.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (buffer.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (lifecycle.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (request.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (resources.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (browser.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (network.js, line 0)
[Error] SyntaxError: Unexpected identifier 't'. Expected a ';' following a return statement.
(anonyme Funktion) (workbench.web.api.js:1574)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (windows.js, line 0)
[Error] Unrecognized Content-Security-Policy directive 'manifest-src'.
[Error] SyntaxError: Unexpected identifier 't'. Expected a ';' following a return statement.
(anonyme Funktion) (workbench.web.api.js:1574)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (uriIpc.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (uuid.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (cancellation.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (buffer.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (lifecycle.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (request.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (windows.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (resources.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (browser.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (network.js, line 0)
[Error] SyntaxError: Unexpected identifier 't'. Expected a ';' following a return statement.
(anonyme Funktion) (workbench.web.api.js:1574)
Still exactly the same errors. (This time not copied twice)
[Error] Unrecognized Content-Security-Policy directive 'manifest-src'.
[Error] SyntaxError: Unexpected identifier 't'. Expected a ';' following a return statement.
(anonyme Funktion) (workbench.web.api.js:1607)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (uriIpc.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (uuid.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (cancellation.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (buffer.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (lifecycle.js, line 0)
[Error] SyntaxError: Unexpected identifier 't'. Expected a ';' following a return statement.
(anonyme Funktion) (workbench.web.api.js:1607)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (windows.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (browser.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (request.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (resources.js, line 0)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (network.js, line 0)
Plus, I had to force Homebrew to upgrade icu4c to 66.1 (from 64), which (seemingly) hasn't been mentioned anywhere.
Nope, downloaded directly from Releases. Without updating, dyld was complaining about the missing library.
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.66.dylib
Referenced from: [Redacted]/code-server-3.3.0-macos-amd64/bin/../lib/node
Reason: image not found
Abort trap: 6
We could remove manifest-src since browsers should fall back to default-src in theory. If the result is just an error being logged that the directive isn't recognized and it's not causing any issues it might not be worth the change imo.
Activity
SniperGER commentedon May 16, 2020
Here's the console output on Safari 11.0.3 (12604.5.6.1.1):
nhooyr commentedon May 18, 2020
Can you try with the latest release?
SniperGER commentedon May 18, 2020
Still exactly the same errors. (This time not copied twice)
Plus, I had to force Homebrew to upgrade
icu4cto 66.1 (from 64), which (seemingly) hasn't been mentioned anywhere.nhooyr commentedon May 18, 2020
Huh interesting, are you building yourself?
SniperGER commentedon May 18, 2020
Nope, downloaded directly from Releases. Without updating,
dyldwas complaining about the missing library.nhooyr commentedon May 18, 2020
Yea yea looks like node depends on libicui dynamically, was not aware.
Not sure but maybe it's possible to add it in statically somehow.
nhooyr commentedon May 18, 2020
Probably best for us to just build node from scratch.
nhooyr commentedon May 18, 2020
Re the 404s, it's likely a bug with an older version of Safari.
Highly recommend upgrading your OS. But will leave up to @code-asher to see whether we can fix the CSP.
code-asher commentedon May 18, 2020
We could remove
manifest-srcsince browsers should fall back todefault-srcin theory. If the result is just an error being logged that the directive isn't recognized and it's not causing any issues it might not be worth the change imo.nhooyr commentedon May 19, 2020
Yea, not sure what's causing those 404s. It's also not easy afaik to install older Safari versions one of us will need to VM older macOS.
nhooyr commentedon May 19, 2020
Probably best to just recommend using Chrome.
Bundle in libicu on macOS
Bundle in libicu on macOS
Bundle in libicu on macOS
nhooyr commentedon Dec 8, 2020
I think we forgot to close this, it's been dealt with a long time ago.