Netflix / dgs-intellij-plugin

Apache License 2.0
21 stars 10 forks source link

Fetchers/loaders/types navigation not working on recent Idea/plugin versions #83

Open mr-nothing opened 7 months ago

mr-nothing commented 7 months ago

Hi there, It looks like plugin stopped working after development environment update. My current setup is:

Syntax and file highlighting is kinda working (though I'm not sure if dgs plugin do this). But all navigation to dgs components is broken and most declared types are shown as erroneous. May I please request a workaround for this or a support for new IDEA versions?

Thank you very much for your efforts!

srinivasankavitha commented 7 months ago

Hi - we are releasing an update soon. Will post an update when it's available.

kjellski commented 5 months ago

Hi @srinivasankavitha , unfortunately this is still the case, I'm getting no symbols on my schema files whatsoever and navigation to fetcher / loader props doesn't work anymore.

Any update on this? Could you maybe involve the community to produce a fix?

srinivasankavitha commented 5 months ago

It seems to be working fine even with the latest IntelliJ update today with plugin version 1.3.7. Could you try updating your IntelliJ and DGS plugin to latest of not already?

srinivasankavitha commented 5 months ago

Investigating this more, we do see some inconsistencies with data loaders with some projects and we are looking into this. In the meantime, it would great if you could also confirm using the latest release and updating your IntelliJ if this is still an issue.

srinivasankavitha commented 5 months ago

Actually, specifically to the data loaders, it just requires a name field in the @DgsDataLoader annotation. With that, all the DGS components are picked up and the navigation also works across multiple apps.

This is verified using DGS IntelliJ plugin 1.3.7 and latest IntelliJ version 2024.1

kjellski commented 5 months ago

Hi @srinivasankavitha - unfortunately I can only say, we've got name attributes on all our @DgsDataLoader annotations and it's still not working... one is named different then the actual field on one of them, could that cause the problem already?

srinivasankavitha commented 5 months ago

Hi @srinivasankavitha - unfortunately I can only say, we've got name attributes on all our @DgsDataLoader annotations and it's still not working... one is named different then the actual field on one of them, could that cause the problem already?

Perhaps, worth trying in any case. Unfortunately I am unable to reproduce the issue, so can't investigate further without a reproduction.