continue icon indicating copy to clipboard operation
continue copied to clipboard

com.intellij.modules.json requirement

Open RomneyDa opened this issue 2 years ago • 19 comments

Before submitting your bug report

Relevant environment info

- OS: WSL
- Continue version: end of oct 2024
- IDE version: pycharm 2024.2.3

Description

image

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

RomneyDa avatar Nov 01 '24 17:11 RomneyDa

same here: phpstorm on Windows remote development by ssh on ubuntu

fridge avatar Nov 04 '24 00:11 fridge

Related https://github.com/continuedev/continue/issues/2780

RomneyDa avatar Nov 07 '24 17:11 RomneyDa

is there a known workaround?

emudojo avatar Nov 11 '24 14:11 emudojo

I have met the same issue

pgg3 avatar Nov 25 '24 00:11 pgg3

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).

Phred7 avatar Dec 04 '24 19:12 Phred7

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

Patrick-Erichsen avatar Dec 09 '24 22:12 Patrick-Erichsen

Also happening to me on JetBrains Rider 2024.3 and Gateway 2024.3 with WSL running Ubuntu 24 with plugin version 0.0.83

TheEisbaer avatar Dec 10 '24 06:12 TheEisbaer

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

NikitaKatkov avatar Dec 10 '24 16:12 NikitaKatkov

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?

Patrick-Erichsen avatar Dec 10 '24 18:12 Patrick-Erichsen

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.

NikitaKatkov avatar Dec 11 '24 11:12 NikitaKatkov

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 👍

Patrick-Erichsen avatar Dec 16 '24 21:12 Patrick-Erichsen

Reopening until this is released and folks have confirmed it's functioning for them.

Patrick-Erichsen avatar Dec 16 '24 22:12 Patrick-Erichsen

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

stayge avatar Dec 21 '24 03:12 stayge

@greek-stasia we fixed that build error and republished in this job: https://github.com/continuedev/continue/actions/runs/12472440299/job/34811245653

Patrick-Erichsen avatar Dec 30 '24 17:12 Patrick-Erichsen

Checked the 0.0.84 build on Pycharm 2024.3.1 connecting to WSL. While it installs after install the following error appears

image

And when attempting to edit config following errors (maybe something related to newlines between windows and linux?)

image

Posting here instead of new issue since it seemed relevant to this issue and new pre release build.

Krakenos avatar Jan 08 '25 13:01 Krakenos

Thanks for the heads up @Krakenos, I believe this has been fixed here: https://github.com/continuedev/continue/pull/3608

Patrick-Erichsen avatar Jan 08 '25 18:01 Patrick-Erichsen

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.

github-actions[bot] avatar Apr 29 '25 02:04 github-actions[bot]

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.

github-actions[bot] avatar Aug 06 '25 02:08 github-actions[bot]

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!

github-actions[bot] avatar Aug 17 '25 02:08 github-actions[bot]