Right Click -> Go To Declaration or Usages no longer working inside LWCs

20 views
Skip to first unread message

Matt McGuire

unread,
Jan 14, 2025, 9:50:39 PMJan 14
to Illuminated Cloud General Discussion
Hi Scott,

Right now when I right click a method of variable within an apex class and select go to declaration, the IDE navigates me there.

However inside of a LWC component this no longer works; I get the message "Cannot get the declaration to go to".  This error appears both in the js file importing an apex method, and in the html file referencing a js variable.

Matt

Matt McGuire

unread,
Jan 14, 2025, 9:52:59 PMJan 14
to Illuminated Cloud General Discussion, Matt McGuire
MacOS 13.7.1 (22H221)
IJ IDEA 2024.3.1.1 (Ultimate Edition) Build #IU-243.22562.218, built on December 18, 2024
IC2 - 2.3.4.2

Scott Wells

unread,
Jan 15, 2025, 9:13:49 AMJan 15
to Illuminated Cloud General Discussion, spl...@gmail.com
Hi, Matt. I'm not seeing that behavior. I just tried navigation from HTML braced expressions to the corresponding JavaScript(/TypeScript) declarations via both the context menu and keyboard shortcut, and both worked properly.

Can you provide a concrete, standalone example that doesn't work for you, or is it not working at all for you? If it's not working at all, can you please reproduce the issue and provide the resulting idea.log file (Help | Reveal Log in Finder) for review? You can attach it here or send it via email.

Regards,
Scott Wells

Matt McGuire

unread,
Feb 21, 2025, 10:22:52 PMFeb 21
to Illuminated Cloud General Discussion, sc...@illuminatedcloud.com, Matt McGuire
Hey Scott, sorry for the very lengthy delay here.  I do not seem to have Help | Reveal Log In finder menu item to be able to send you the log file. Do you happen to know where this file would be stored by default? Searching finder either has no results (or is taking an excessively long time, it's not really giving me any indication of anything)

reveal log.png
Reply all
Reply to author
Forward
0 new messages