jhipster / jhipster-ide

An IDE for the JHipster Domain Language
https://jhipster.github.io/jhipster-ide
127 stars 37 forks source link

Unknown lsp4j/Position while trying to open JDL file #387

Closed raccarva closed 3 years ago

raccarva commented 3 years ago

I installed JHipster IDE through the marketplace and I was able to connect to the Docker Daemon after configuring the docker URL but I was not able to open a JDL file, obtaining the error:

org.eclipse.core.runtime.CoreException: org/eclipse/lsp4j/Position (occurred in io.github.jhipster.jdl.ui.JDLExecutableExtensionFactory)

I then installed LSP4J on Eclipse but the problem persisted. I removed JHipster IDE without uninstalling LSP4J and reinstalled JHipster IDE but nothing changed.

I don´t know if it is relevant but I am using a project previously loaded as "existing Maven project" by using the pom.xml created by JHipster generators.

To Reproduce

Nothing special. I just installed the plugin and tried to open a jdl file.

Expected behavior

I would expect to be able to open the JDL file and have a UML graph built by PlantUML.

Screenshots

JHipster IDE exception

Desktop (please complete the following information):

Eclipse config for JH exception

Thanks for any help you can provide.

colameo commented 3 years ago

you are using an eclipse distribution which is not supported and papyrus is a special bundled (RCP) application. try with a fresh eclipse v4.20.0 2021-06 distro.

raccarva commented 3 years ago

Thanks for your answer Serano.

I was trying to have all tools together on the same IDE for working on my project. I already have Papyrus (code generation from UML models), Eclipse Web Tools for editting Java and Javascript/HTML templates, and M2e for Maven integration. It would be nice having JHipster-IDE as well. I think there is no reason for it not working on an RCP. It just appears to be related to using a library.

Anyway, thanks for the advice.

colameo commented 3 years ago

it is cumbersome to support all kind of platform and plugin combinations ... however, I'll have a look to make some of the dependencies a bit "softer"

colameo commented 3 years ago

...works, but you need to take the eclipse model distro (4.21.0) and install over the jhipster ide, maven m2e and lastly papyrus uml. if this is ok for you, I can prepare a pre-release in a separate p2 repo.

image

raccarva commented 3 years ago

For me, it works fine, Serano.

I am used to doing that for other eclipse packages like Papyrus itself.

Thanks!

Ramiro.

colameo commented 3 years ago

ok, if it works for you then I'm closing this issue. btw. i've just published a new version (2.4.1) to the eclipse marketplace

raccarva commented 3 years ago

Thanks, Serano.

I will give it a try as soon as possible.