Closed inga-lovinde closed 1 year ago
Hi @inga-lovinde, just to be sure, you are using code-oss and not vscodium in you local machine right? If so, then I imagine you've done some hacks like updating commit in product.json right? because by default code-oss and vscodium are not compatible. If all above if true then that's the issue, related to the linked issue https://github.com/jeanp413/open-remote-ssh/issues/44, it is indeed fixed but in the end daiyam (vscodium mantainer) decided to disable the mangling and code-oss doesn't I guess so now more than before code-oss and vscodium are not compatible anymore.
You can try using openvscode-server instead, you can check https://github.com/jeanp413/open-remote-ssh/issues/83#issuecomment-1523413445
Yes, I indeed patched code-oss product.json to turn it into vscodium previously (vscodium itself is not packaged for alpine).
Switching to openvscode-server helped, I just had to restore the original code-oss product.json and:
serverApplicationName
in product.json to openvscode-server
;commit
to product.json with the value corresponding to the value of commit
in product.json from the relevant openvscode-server release;https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v${version}/openvscode-server-v${version}-${os}-${arch}.tar.gz
.And everything seems to work now.
The problem indeed was caused not by this extension, but by growing incompatibility between code-oss and vscodium.
This is a great extension, and it worked flawlessly with my setup (Alpine x64 + code-oss on desktop, Alpine x64 + vscodium REH on server) for quite a while.
However, after I've upgraded code-oss from 1.72.2 to 1.77.3, it almost stopped working: when I open my remote project I've been working on for half a year without any problems, in the left bottom corner, "Opening Remote..." keeps spinning, and while file explorer and text editor work, nothing else seems to: search doesn't work, code highlight does not work (everything is the same color), autocomplete doesn't work, etc.
I've tried removing
~/.vscod*
from the server; next time I tried to open my remote project, this extension installed vscodium 1.77.3 to the server successfully, but this didn't solve the problem.There are several errors in "Developer Tools" console:
This one is the same as mentioned in https://github.com/jeanp413/open-remote-ssh/issues/44#issuecomment-1372867020. According to code-oss sources, the
undefined
it tries to readc
from is the key ofextensionHostKinds
returned bydetermineExtensionHostKinds
from code-oss extensionHostKind.ts. Which in turn can be tracked down to:determineExtensionHostKinds
callingtoExtensionWithKind
for_localExtensions
and_remoteExtensions
;toExtensionWithKind
creatingnew ExtensionWithKind(desc, ...)
for everydesc
in extensions, and using its.key
as the map key;(new ExtensionWithKind(desc, ...)).key
returningExtensionIdentifier.toKey(desc.identifier)
;ExtensionIdentifier.toKey(desc.identifier)
returningdesc.identifier._lower
for non-string values ofdesc.identifier
... except that minified JS in my code-oss doesstatic toKey(a) { return typeof a == "string" ? a.toLowerCase() : a.c }
instead.So maybe the reason is still that remote returns unmangled information on extensions with
._lower
field while minified JS in code-oss accesses.c
instead. Even though from #44 it seems that this was fixed upstream. Maybe the reason is something else.Another error I sometimes get in Developer Tools console logs when opening this remote project is:
After debugging things in developer tools for a while: it seems that:
remoteAuthority: undefined
) is registered withregisterTerminalBackend
;getDefaultProfile
is called for'ssh-remote+MY-SERVER-NAME'
, and since no terminals for this remote authority are registered withregisterTerminalBackend
,getDefaultSystemShell
throws an error;registerTerminalBackend
is called with remote backend with itsremoteAuthority
set to'ssh-remote+MY-SERVER-NAME'
.I'm not sure if this is a bug or just a malignant race condition, and if actual issues I'm having (with search / syntax highlight / etc not working) are related to this in any way. The remote terminal itself seems to be working in code-oss.
And finally, I get two more error messages in developer tools console:
which is maybe related to the previous errors?