com.intellij.modules.json requirement
Before submitting your bug report
- [X] I believe this is a bug. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that reports the same bug
- [X] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: WSL
- Continue version: end of oct 2024
- IDE version: pycharm 2024.2.3
Description
Related to https://intellij-support.jetbrains.com/hc/en-us/community/posts/21479962703890-JSON-plugin-dependency-cannot-be-resolved
To reproduce
Install 0.0.79 on pycharm 2024.2.3 on WSL.
Log output
No response
same here: phpstorm on Windows remote development by ssh on ubuntu
Related https://github.com/continuedev/continue/issues/2780
is there a known workaround?
I have met the same issue
I have the same issue. Pycharm and IntelliJ IDEA (2024.3.1) via Gateway (2024.3) + SSH to Centos. Continue plugin v0.0.75 (newest available).
Thanks for the +1 here folks, I've followed up with the JB team to try and figure out what's going on here: https://intellij-support.jetbrains.com/hc/en-us/community/posts/21479962703890-JSON-plugin-dependency-cannot-be-resolved
Also happening to me on JetBrains Rider 2024.3 and Gateway 2024.3 with WSL running Ubuntu 24 with plugin version 0.0.83
Hey folks! If you are installing you plugin to the frontend IDE in remote deveoplent environment, consider using com.intellij.json.frontend dependency. The com.intellij.modules.json plugin is present only on the backend side, which might be a problem you are facing
Thanks for the follow up here @NikitaKatkov !
We have users that install our extension both for local and remote development. Does that imply that we should list both com.intellij.json.frontend and com.intellij.modules.json as dependencies? Or should we just list com.intellij.json.frontend?
Unfortunately, it's not that easy yet.
The thing is that the frontend JSON plugin has only basic editor support in it (lexer, syntax highlighter, PSI, if you are familiar with them). As I can see, your plugin has a couple of JsonSchemaProviderFactorys registered, and they belong to the backend only, there is no such entity in the frontend plugin intentionally.
What seems to be good enough solution in your case is to introduce an optional JSON plugin dependency. It means, that whether or not the dependency is available at runtime, your core functionality works as expected. The part requiring JSON to be present will only be enabled ifyour plugin is installed in the backend IDE, where JSON schemas reside.
Please take a look at the documentation here: https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html#optional-plugin-dependencies . It'll require to extract <depends>com.intellij.modules.json</depends> line and JsonSchemaProviders reqgistration into another xml and to mention it in the main plugin.xml descriptor.
Thanks for the taking the time to look at the codebase and provide guidance @NikitaKatkov ! Pretty simple update to make overall.
This update will be available in our next release for folks following along 👍
Reopening until this is released and folks have confirmed it's functioning for them.
I can't test this yet as the build for intellij has failed: https://github.com/continuedev/continue/actions/runs/12440630220/job/34736395992 and installing from disk also doesn't work super excited to try this out
@greek-stasia we fixed that build error and republished in this job: https://github.com/continuedev/continue/actions/runs/12472440299/job/34811245653
Checked the 0.0.84 build on Pycharm 2024.3.1 connecting to WSL. While it installs after install the following error appears
And when attempting to edit config following errors (maybe something related to newlines between windows and linux?)
Posting here instead of new issue since it seemed relevant to this issue and new pre release build.
Thanks for the heads up @Krakenos, I believe this has been fixed here: https://github.com/continuedev/continue/pull/3608
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!