question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CM6 support for codemirror-graphql

See original GitHub issue

Hey there!

I was looking to add graphql support to our app which uses CodeMirror 6 and stumbled upon the codemirror-graphql package in this repo. However, it looks like that package only works for CodeMirror 5 and is therefore not compatible with CM6. I also couldn’t find any alternatives that do work with CM6.

I saw that there was a way to use CM5 language packages in CM6 (e.g. the modes in this repo: https://github.com/codemirror/legacy-modes/) but only if they implement the StreamParser interface which I don’t think is the case here.

Just wondering if there were any plans to add support for CM6 in the codemirror-graphql package. Happy to help out in this effort myself as well and open up a PR if this is something you guys want and no one else can pick it up.

Thanks in advanced!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

4reactions
acaocommented, Nov 24, 2021

released! 🥳 thanks @imolorhe !

4reactions
imolorhecommented, Nov 15, 2021

Adding support for CM6 would be great. I can try to support any efforts on this but unfortunately can’t commit to picking this up this week. I should be able to do so by next week though if it isn’t already being implemented by then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

codemirror-graphql - npm
GraphQL mode and helpers for CodeMirror.. Latest version: 2.0.2, last published: 2 months ago. Start using codemirror-graphql in your ...
Read more >
GraphQL grammar - Lezer - CodeMirror
I am currently working on a GraphiQL alternative that trades React for Svelte and also uses CodeMirror 6. The variables and results panes...
Read more >
Package codemirror-graphql
Provides CodeMirror with a parser mode for GraphQL along with a live linter and typeahead hinter powered by your GraphQL Schema.
Read more >
GraphiQL - Twitter
GraphQL language support for CodeMirror. Latest version: 0.0.1, last published: 20 hours ago. Start using cm6-graphql in your project by running `npm i ......
Read more >
codemirror-graphql - UNPKG
The CDN for codemirror-graphql. ... codemirror-graphql/package.json. Version: ... rimraf esm results utils variables coverage cm6-legacy __tests__",.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found