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
{{ message }}
Repository navigation
[Bug]: Code highlighting working abnormally in 4.5.0 #5343
I've also observed this issue from running code-server within a docker container based on ubuntu:22.04. code-server 4.4.0 worked fine without this issue, but it has been observed in 4.5.0.
@RisaKirisu when you visit your code server, are you using a path like /code or such in the url, or is it straight up /? There is a fix (#5332) related to a failure affecting users that visits code-server via a path like /code.
I was curious if both you and me were users accessing code-server via a /prefix in the url like http://localhost/code or https://example.com/code compared to http://localhost or https://example.com/.
@RisaKirisu when you visit your code server, are you using a path like /code or such in the url, or is it straight up /? There is a fix (#5332) related to a failure affecting users that visits code-server via a path like /code.
I was curious if both you and me were users accessing code-server via a /prefix in the url like http://localhost/code or https://example.com/code compared to http://localhost or https://example.com/.
Yes. In my setup I access my code-server by 'https://mydomain.xxx/vsc/'. I don't know if this is the cause tho.
@RisaKirisu I think so. I believe the syntax highlighting happens thanks to a node module which isn't being loaded because it is assuming the root path. 4.5.1 should fix this
Activity
consideRatio commentedon Jul 18, 2022
I've also observed this issue from running
code-serverwithin a docker container based on ubuntu:22.04. code-server 4.4.0 worked fine without this issue, but it has been observed in 4.5.0.I've installed code-server in a docker image defined here: https://github.com/pangeo-data/jupyter-earth/blob/master/hub.jupytearth.org-image/Dockerfile. It is based on ubuntu:22.04.
consideRatio commentedon Jul 18, 2022
@RisaKirisu when you visit your code server, are you using a path like
/codeor such in the url, or is it straight up/? There is a fix (#5332) related to a failure affecting users that visits code-server via a path like/code.I was curious if both you and me were users accessing code-server via a
/prefixin the url likehttp://localhost/codeorhttps://example.com/codecompared tohttp://localhostorhttps://example.com/.jsjoeio commentedon Jul 18, 2022
This should be fixed in 4.5.1
RisaKirisu commentedon Jul 18, 2022
Yes. In my setup I access my code-server by 'https://mydomain.xxx/vsc/'. I don't know if this is the cause tho.
jsjoeio commentedon Jul 18, 2022
@RisaKirisu I think so. I believe the syntax highlighting happens thanks to a node module which isn't being loaded because it is assuming the root path. 4.5.1 should fix this
jsjoeio commentedon Jul 18, 2022
For the curious, this issue should be fixed via #5332 when a new release comes out.
consideRatio commentedon Jul 18, 2022
Wieee thanks @RisaKirisu and @jsjoeio!!!