Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error registering grammar configuration for @theia/vscode-builtin-php@0.2.1 #6672

Open
tolusha opened this issue Dec 2, 2019 · 2 comments
Open
Labels
bug bugs found in the application php issues related to the php language vscode issues related to VSCode compatibility

Comments

@tolusha
Copy link
Contributor

tolusha commented Dec 2, 2019

Description

https://www.npmjs.com/package/@theia/vscode-builtin-php

Configuration:

"grammars": [
      {
        "language": "php",
        "scopeName": "source.php",
        "path": "./syntaxes/php.tmLanguage.json"
      },
      {
        "language": "php",
        "scopeName": "text.html.php",
        "path": "./syntaxes/html.tmLanguage.json",
        "embeddedLanguages": {
          "text.html": "html",
          "source.php": "php",
          "source.sql": "sql",
          "text.xml": "xml",
          "source.js": "javascript",
          "source.json": "json",
          "source.css": "css"
        }
      }
    ]

Error:

root WARN Error: 'php' language is remapped from 'source.php' to 'text.html.php' scope
    at TextmateRegistry.push.../../packages/monaco/lib/browser/textmate/textmate-registry.js.TextmateRegistry.mapLanguageIdToTextmateGrammar (http://localhost:3000/43.bundle.js:1272:26)
    at http://localhost:3000/54.bundle.js:8256:125
    at pushContribution (http://localhost:3000/54.bundle.js:8131:32)
    at _loop_3 (http://localhost:3000/54.bundle.js:8256:21)
    at PluginContributionHandler.push.../../packages/plugin-ext/lib/main/browser/plugin-contribution-handler.js.PluginContributionHandler.handleContributions (http://localhost:3000/54.bundle.js:8267:21)
    at _loop_2 (http://localhost:3000/54.bundle.js:2339:63)
    at HostedPluginSupport.push.../../packages/plugin-ext/lib/hosted/browser/hosted-plugin.js.HostedPluginSupport.loadContributions (http://localhost:3000/54.bundle.js:2360:17)
    at HostedPluginSupport.<anonymous> (http://localhost:3000/54.bundle.js:2207:52)
    at step (http://localhost:3000/54.bundle.js:2013:23)
    at Object.next (http://localhost:3000/54.bundle.js:1994:53)
root WARN Error: a registered grammar configuration for 'php' language is overridden
    at TextmateRegistry.push.../../packages/monaco/lib/browser/textmate/textmate-registry.js.TextmateRegistry.registerGrammarConfiguration (http://localhost:3000/43.bundle.js:1310:26)
    at http://localhost:3000/54.bundle.js:8257:133
    at pushContribution (http://localhost:3000/54.bundle.js:8131:32)
    at _loop_3 (http://localhost:3000/54.bundle.js:8257:21)
    at PluginContributionHandler.push.../../packages/plugin-ext/lib/main/browser/plugin-contribution-handler.js.PluginContributionHandler.handleContributions (http://localhost:3000/54.bundle.js:8267:21)
    at _loop_2 (http://localhost:3000/54.bundle.js:2339:63)
    at HostedPluginSupport.push.../../packages/plugin-ext/lib/hosted/browser/hosted-plugin.js.HostedPluginSupport.loadContributions (http://localhost:3000/54.bundle.js:2360:17)
    at HostedPluginSupport.<anonymous> (http://localhost:3000/54.bundle.js:2207:52)
    at step (http://localhost:3000/54.bundle.js:2013:23)
@502647092
Copy link
Contributor

after I switch to builtin plugin
I got this warn

root WARN Error: 'cpp' language is remapped from 'source.cpp.embedded.macro' to 'source.cpp' scope
root WARN Error: a registered grammar configuration for 'cpp' language is overridden
root WARN Error: 'php' language is remapped from 'source.php' to 'text.html.php' scope
root WARN Error: a registered grammar configuration for 'php' language is overridden
root WARN Error: 'yaml' language is remapped from 'source.yaml' to 'source.yaml' scope
root WARN Error: a registered grammar configuration for 'yaml' language is overridden

@chkaos
Copy link

chkaos commented Dec 21, 2020

Same issue, any update?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug bugs found in the application php issues related to the php language vscode issues related to VSCode compatibility
Projects
None yet
Development

No branches or pull requests

3 participants