cap-js / cds-intellij

SAP CDS Language Support for IntelliJ
https://cap.cloud.sap/docs/cds/
Apache License 2.0
12 stars 1 forks source link

[QUESTION] Go To Definition #18

Closed aparkitny closed 7 months ago

aparkitny commented 7 months ago

Question

Hi, I installed the plugin as described in IntelliJ Ultimate edition. The .cds files are recognized and basic syntax coloring works, but besides that, it does not recognize any entity types and navigating to a type does also not work for me. I'm not sure why, but I guess it has something to do with my local setup. Any hints or ideas why that could be?

rjayasinghe commented 7 months ago

It stopped working for me after updating IntelliJ 2024.1 :-( So I can confirm this and it's most probably a bug. @tim-sh have you seen this, too?

tim-sh commented 7 months ago

Hi @aparkitny and @rjayasinghe, I cannot confirm this. Could you please share your respective IDE logs? Thanks and best regards, Tim

rjayasinghe commented 7 months ago

Hi @aparkitny and @rjayasinghe, I cannot confirm this. Could you please share your respective IDE logs? Thanks and best regards, Tim

Of course this works now. 😅 But I clearly can remember that I had this issue last week or the week before and registered that it does not work anymore. But maybe that was just with the last patch level of 2023.4 ..

@aparkitny can you still reproduce the issue and if yes please share the exact IntelliJ version and debug logs.

aparkitny commented 7 months ago

Hi, I still can reproduce this. It does not work for me. I'm using IntelliJ IDEA 2024.1 (Ultimate Edition) Build #IU-241.14494.240. idea.log attached. [private data removed]

tim-sh commented 7 months ago

@aparkitny The log file is empty when downloaded. Anyway, could you please retry with the latest release built for 2024.1?

aparkitny commented 7 months ago

@tim-sh. Sorry, my bad, here is the correct log file [private data removed]

Besides that, I have the latest version installed, from April 4th

tim-sh commented 7 months ago

@aparkitny Thanks for the log. However, I can't find a hint on any erroneous behavior with regards to the CDS Language Support plugin or its handling by the IDE.

Please also share the file C:\Users\<user_id>\AppData\Roaming\JetBrains\IntelliJIdea2024.1\plugins\intellij-cds\lib\cds-lsp\stdio.log. And could you clarify since which IDE or plugin update it stopped working (if so)?

aparkitny commented 7 months ago

@tim-sh What operating System you are using? I am using Windows.

tim-sh commented 7 months ago

Linux here, but I'll test this on Windows. If you could share the additional info, that'd also be helpful.

rjayasinghe commented 7 months ago

I am on MacOS btw.. :)

aparkitny commented 7 months ago

ok, here is the additional requested log file [private data removed]

tim-sh commented 7 months ago

@aparkitny The LSP server does send technically valid responses, but they are empty for some reason. I'll follow up on that. In the meantime, as you seem to be using plugin version 7.2.1., please upgrade to the newest 7.3.0 build for IntelliJ 2024.1. If it still does not work, please share the newest stdio.log. Thank you.

aparkitny commented 7 months ago

@tim-sh I updated the plugin to the newest version, it still does not work. Newest stdio.log [private data removed]. Thanks

tim-sh commented 7 months ago

@aparkitny Thanks for the update. Can you find any (LSP server) logs inside C:\Users\<username>\AppData\Local\Temp\cdxlsp with entries from around a time you experienced the missing functionality?

aparkitny commented 7 months ago

@tim-sh the requested logs: [private data removed]

tim-sh commented 7 months ago

@aparkitny This will be fixed with the next release, expected this week.