Skip to content
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

Code completion in Qute template #1341

Open
simasch opened this issue Jun 11, 2024 · 15 comments
Open

Code completion in Qute template #1341

simasch opened this issue Jun 11, 2024 · 15 comments
Labels
bug Something isn't working qute Qute support

Comments

@simasch
Copy link

simasch commented Jun 11, 2024

I'm using the IntelliJ Quarkus Tools 1.30.1 with a Qute example project: https://github.com/mkouba/qute-insights

I can navigate from the HelloResource to the template hello.html, but in the hello.html, I have absolutely no code completion, and I also cannot navigate from an expression to the resource:

image

I opened this issue because I didn't find any detailed information about the Qute features.

I'm using IntelliJ IDEA 2024.1.2 (Ultimate Edition) Build #IU-241.17011.79, built on May 22, 2024

@maxandersen
Copy link

Have you isntgalled the actual Quarkus Tools or using the quarkus tools that comes with Ultimate edition ? those are NOT the same.

@simasch
Copy link
Author

simasch commented Jun 11, 2024

I have installed both

image

@simasch
Copy link
Author

simasch commented Jun 11, 2024

And if I disable the Jetbrains Quarkus plugin it works!

@angelozerr
Copy link
Contributor

angelozerr commented Jun 11, 2024

@simasch if you open completion in a text node of your html have you completion for #for?

If yes it means that Qute Language Server is started correctly and in this case have you some Java compilation problems?

To check that your Qute Language Server is started could you click on Language Server View which should be available on bottom left of your IJ and see the status of the server.

As you are using IU perhaps there is some conflitcts with Qute support of Jetbrains.

If you rename your .html file extension with .qute.html is it working better?

@angelozerr
Copy link
Contributor

angelozerr commented Jun 11, 2024

And if I disable the Jetbrains Quarkus plugin it works!

Thats great but it means that IJ Ultimate Quarkus support overrides our Qute Language file type, it is very annoying

@simasch
Copy link
Author

simasch commented Jun 11, 2024

@angelozerr Yes, it is!

@angelozerr
Copy link
Contributor

@angelozerr Yes, it is!

Thanks for your feedback! Hope you will enjoy with our Qute support.

@maxandersen
Copy link

@angelozerr does intellij have ways for users to override the override? otherwise we shuold ping intellij team on finding ways to have the extensions play nice.

@angelozerr
Copy link
Contributor

@angelozerr does intellij have ways for users to override the override? otherwise we shuold ping intellij team on finding ways to have the extensions play nice.

To be honnest with you I dont know.
But I think the best solution is to use in IJ Quarkus the Qute file type from IJ Ultimate if user uses Ultimate. In this case IJ Quarkus will use the Qute parser from Ultimate which manage better the syntax coloration for instance than IJ Quarkus.

In the past it was not possible but we have improved a lot our LSP support with https://plugins.jetbrains.com/plugin/23257-lsp4ij/edit and it should be easier now.

Perhaps I miss some another problem but I think it could be interested to try to do that.

@fbricon what do you think about this idea?

@fbricon
Copy link
Contributor

fbricon commented Jun 11, 2024

@angelozerr I think it's worth it. It's annoying to see Ultimate degrade our superior Qute tooling

@simasch
Copy link
Author

simasch commented Jun 13, 2024

I disabled the IntelliJ Quarkus plugin. However, if I do that, I can no longer run the tests from IntelliJ, as IntelliJ no longer finds the test dependencies.

I don't get compilation error in the editor.

@angelozerr
Copy link
Contributor

@simasch I'm busy with the release of our LSP support for IntelliJ that we use in IJ Quarkus, but I will try to study how to support IJ Quarkus / Jetbrains Quarkus together after the release.

@simasch
Copy link
Author

simasch commented Jun 13, 2024

I made another observation: When creating a new project with Quarkus tools, IntelliJ doesn't recognize the project as a Maven project.

@angelozerr
Copy link
Contributor

I made another observation: When creating a new project with Quarkus tools, IntelliJ doesn't recognize the project as a Maven project.

That s strange please create a new issue

@angelozerr angelozerr added the bug Something isn't working label Jun 26, 2024
@fbricon fbricon added the qute Qute support label Jun 26, 2024
@angelozerr
Copy link
Contributor

It is the same issue than #979

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working qute Qute support
Projects
None yet
Development

No branches or pull requests

4 participants