-
Notifications
You must be signed in to change notification settings - Fork 6
Migration to codemirror 6? #29
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
Comments
Hi @OyvindLGjesdal , I would be very much interested, and could contribute to it (we are building on top of Yasgui for endpoints served at the SIB: https://sib-swiss.github.io/sparql-editor/) But as you said it it will be quite a journey! So better plan it well The big question to me right now is: CodeMirror 6 or Monaco editor using a SPARQL LSP? (Language Server Protocol)
I think ultimately Monaco editor (aka. VSCode in the browser) with a mature LSP would give more features in an editor familiar to more people, but the setup is more tedious, especially if we want to provide custom autocompletion functions. This will probably require to change the upstream rust code and rebuild the wasm binary, which would be fine for us because in our opinion autocomplete for a SPARQL endpoint don't need to be customizable, it should just reflect the content of the endpoint. I would love also to move to a more modern build system (vitejs is so much better than webpack in term of dev experience and speed) and replace the |
Hi @OyvindLGjesdal @ludovicm67 , I made some preliminary investigation I have tried to migrate to CodeMirror 6 in the original Yasqe webpack project (see my branch https://github.com/vemonet/Yasgui/tree/experiment-migrating-to-codemirror6-with-webpack), commenting most of the constructor code and trying to just setup the most basic setup of CodeMirror 6 (to go incrementally), but I faced this error: I created another package folder, this time using You can easily run it by going to the right branch and run: cd packages/yasqe-vite
npm i
npm run dev
|
I was looking at shrinking the bundles of yasgui when I noticed the info bar on the current dependency of CodeMirror 5.
I don't know whether this would be a relevant or wanted change, since I believe zazuko/yasgui is a patched/bug fixed fork of triplydb/yasgui, and ugrading would probably be a big departure, but I thought it wouldn't hurt to open an issue for discussion.
There is a migration guide at https://codemirror.net/docs/migration/
Using modules sounds like a reasonable change and could make the bundles created from yasgui shrink, and help to discard unused code paths for projects that depends on it.
The text was updated successfully, but these errors were encountered: