Theia: No grammar for this language id yaml

Created on 13 Nov 2019  路  11Comments  路  Source: eclipse-theia/theia

Description

logger-protocol.ts:112 root WARN No grammar for this language id yaml Error: No grammar provided for <source.yaml>
    at e._collectDependenciesForDep (https://127.0.0.1/bundle.js:14:312596)
    at e.<anonymous> (https://127.0.0.1/bundle.js:14:313092)
    at https://127.0.0.1/bundle.js:14:310646
    at Object.next (https://127.0.0.1/bundle.js:14:310751)
    at a (https://127.0.0.1/bundle.js:14:309494)

Reproduction Steps

  • install vscode ext redhat.vscode-yaml
  • open yaml file

OS and Theia version:
Diagnostics:

bug help wanted textmate vscode

All 11 comments

@502647092 is it only a warning, or there is not syntax coloring as well?

@akosyakov not syntax coloring
before it was normal

@502647092 I tested the latest master and it seems to work correctly:

Screen Shot 2019-11-13 at 11 50 57 AM

I verified again and it works correctly. I am able to install the plugin and whether I have an opened .yml file or not, the extension still works correctly and am able to get the highlighting :)

Please re-open the issue if the problem persists.

@vince-fugnitto I test at master now it work correctly

@vince-fugnitto
image
I don't know what happen
highlighting miss after I reload window

@vince-fugnitto
I don't know what happen
highlighting miss after I reload window

Do you mean just reloading the browser window?
I've tried reloading and it's working correctly, the yaml files still have their syntax highlighting.

In Gitpod periodically I see that some editors don't get highlighted, like 4 typescripts editors and only one does not work. I don't get any errors and impossible to reproduce. Maybe it is same kind of a bug. There were never versions of vscode-textmate package, maybe we can try it.

@vince-fugnitto I can't reopen this issue
image

The syntax highlighting should now be provided by vscode-builtin-yaml once @theia/textmate-grammars is deprecated.

@vince-fugnitto don鈥檛 think that it will change anything in regards to this issue. Coloring itself is still implemented with vscode-textmate.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Beetix picture Beetix  路  3Comments

pwFoo picture pwFoo  路  3Comments

vinokurig picture vinokurig  路  3Comments

tetchel picture tetchel  路  3Comments

jeanlucburot picture jeanlucburot  路  3Comments