gitpod icon indicating copy to clipboard operation
gitpod copied to clipboard

Code Highlighting & Emmet Support don't work

Open bravoalpha79 opened this issue 5 years ago • 25 comments

Describe the bug

Since the outage on Friday 04/12/2020, multiple students have reported various issues on their workspaces:

  • code highlighting not working (all code displayed as plain white text),
  • Emmet code shortcuts not available, or available only partially (e.g. working in HTML but not in CSS),
  • some workspaces not accessible at all since Friday (stuck in opening state indefinitely, without any feedback).

Some issues seem to be workspace-related (the student that couldn't open his workspace was able to create a new one from the repo and that one worked), but some seem to be user-wide (code highlighting for the student worked on neither his workspace nor on mine shared, even though it worked normally at my end).

For the Emmet shortcuts, it seems that manual installing of the CSS Language Features and HTML Language Features extensions helped restore the functionality.

Steps to reproduce

Workspace that wouldn't open at all: https://c4812cfa-7975-45bf-9b06-62367ca91af0.ws-eu03.gitpod.io/#/workspace/V_Getable

Expected behavior

Workspaces should open without errors. Code highlighting should work. Emmet support should work.

bravoalpha79 avatar Dec 07 '20 10:12 bravoalpha79

I am getting the following error if I try and open a github repo as a gitpod workspace. failed to create containerd task: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: "/theia/supervisor": stat /theia/supervisor: no such file or directory": unknown; last backup failed: workspace content was never ready. Please contact support if you need the workspace data.

NielMc avatar Dec 07 '20 10:12 NielMc

We have the same problem! We can't work at all.

0x7466 avatar Dec 07 '20 11:12 0x7466

We are working on it.

svenefftinge avatar Dec 07 '20 12:12 svenefftinge

@bravoalpha79 Could you share workspace ID for which code highlighting won't work? And a snapshot if possible thank you. You can email me anton at gitpod.io if it is confidential.

akosyakov avatar Dec 07 '20 12:12 akosyakov

I am getting the following error if I try and open a github repo as a gitpod workspace. failed to create containerd task: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: "/theia/supervisor": stat /theia/supervisor: no such file or directory": unknown; last backup failed: workspace content was never ready. Please contact support if you need the workspace data.

This has been solved and is a duplicate of https://github.com/gitpod-io/gitpod/issues/2445 Sorry for blocking you.

svenefftinge avatar Dec 07 '20 13:12 svenefftinge

I have changed the title to make this issue focus on the problem regarding syntax coloring and emmet (probably caused by the same issue). For any other problems, please file dedicated issues. Thank you!

svenefftinge avatar Dec 07 '20 13:12 svenefftinge

Hi Anton,

I can indeed share a snapshot if needed, but that won't do you any good as the same workspace looked perfectly normally at my end.

Example - my workspace at my end:

[image: image.png]

The same workspace shared and viewed from the student's end: [image: image.png]

On Mon, 7 Dec 2020 at 13:56, Anton Kosyakov [email protected] wrote:

@bravoalpha79 https://github.com/bravoalpha79 Could you share workspace ID for which code highlighting won't work? And a snapshot if possible thank you. You can email me anton at gitpod.io if it is confidential.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gitpod-io/gitpod/issues/2444#issuecomment-739901623, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK3J3KAG5QXLBUYFGO7XM4LSTTGJLANCNFSM4UQIIWLQ .

bravoalpha79 avatar Dec 07 '20 15:12 bravoalpha79

@bravoalpha79 Could you check please the devtools network tab for any broken requests for such students? i.e.:

  • start a workspace
  • open devtools -> network tab
  • reload the page and watch out for any requests which are failing, particularly to wasm files
    • chrome will highlight them with red and they will have status 4xx or 5xx, e.g 404 or 500

thank you!

akosyakov avatar Dec 08 '20 05:12 akosyakov

Hi Anton,

Please find below an affected workspace URL and the error/warning screenshots:

https://a073e929-957c-4fd5-a3c2-50ce0bbed1cd.ws-eu03.gitpod.io/#/workspace/Milestone-2-Visit-Norrtalje

[image: image.png]

[image: image.png] [image: image.png] [image: image.png] [image: image.png]

Kind regards, Igor

On Tue, 8 Dec 2020 at 06:37, Anton Kosyakov [email protected] wrote:

@bravoalpha79 https://github.com/bravoalpha79 Could you check please the devtools network tab for any broken requests for such students? i.e.:

  • start a workspace
  • open devtools -> network tab
  • reload the page and watch out for any requests which are failing, particularly to wasm files

thank you!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gitpod-io/gitpod/issues/2444#issuecomment-740389283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK3J3KDA5ANU3HITOFNK7HLSTW3SDANCNFSM4UQIIWLQ .

bravoalpha79 avatar Dec 08 '20 09:12 bravoalpha79

Hi Igor, thanks but the images don't show up on GitHub. unfortunately.

svenefftinge avatar Dec 08 '20 11:12 svenefftinge

I see. How else can I send them to you?

On Tue, 8 Dec 2020, 12:00 Sven Efftinge, [email protected] wrote:

Hi Igor, thanks but the images don't show up on GitHub. unfortunately.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gitpod-io/gitpod/issues/2444#issuecomment-740549558, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK3J3KHY7MTSC4ILHFATJFLSTYBNNANCNFSM4UQIIWLQ .

bravoalpha79 avatar Dec 08 '20 11:12 bravoalpha79

Go to this page and drag & drop the image into the text area would work.

svenefftinge avatar Dec 08 '20 11:12 svenefftinge

image (15) image (14) image (13) image (12) image (11)

bravoalpha79 avatar Dec 08 '20 11:12 bravoalpha79

Done! :)

On Tue, 8 Dec 2020 at 12:46, Sven Efftinge [email protected] wrote:

Go to this page https://github.com/gitpod-io/gitpod/issues/2444 and drag & drop the image into the text area would work.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/gitpod-io/gitpod/issues/2444#issuecomment-740571512, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK3J3KCJ3ZN6CXQJT2LK4ZDSTYGZZANCNFSM4UQIIWLQ .

bravoalpha79 avatar Dec 08 '20 11:12 bravoalpha79

the fix is already almost there: https://github.com/gitpod-io/gitpod/pull/2457 😉

akosyakov avatar Dec 08 '20 13:12 akosyakov

We merged the tentative fix and will deploy it at the end of this week. In the meantime it would be helpful if you can verify it by using this env: http://ak-onigasm-from-blobserve.staging.gitpod-dev.com/workspaces/

@bravoalpha79 Could you ask students experiencing issues to try it there? If it fails it would be good if they can capture details (request/response headers) of failed requests from devtools network, see: https://developers.google.com/web/tools/chrome-devtools/network#details

akosyakov avatar Dec 09 '20 15:12 akosyakov

I went to the staging workspaces to test, but have faced two issues:

  1. The Emmet seems to be available, however in CSS, most of the shortcuts are not available (see example below for margin- and font-).
  2. I'm only able to do minimal testing, as the staging environment doesn't seem to allow me to access any of my workspaces with my settings.

bravoalpha79 avatar Dec 09 '20 17:12 bravoalpha79

image image image

bravoalpha79 avatar Dec 09 '20 17:12 bravoalpha79

Oh, it makes sense, in upstream it was changed how html/css are consumed: https://github.com/eclipse-theia/theia/pull/7972 we should add VS Code extensions now explicitly.

But I was concerned with syntax highlighting in general, as far as I understood for some students it did not work at all. Does it work with the staging env?

akosyakov avatar Dec 09 '20 19:12 akosyakov

PR to add missing language smartness for html/css: https://github.com/gitpod-io/gitpod/pull/2483

akosyakov avatar Dec 09 '20 19:12 akosyakov