You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @Caleb-Jeffery, yes this is currently a limitation of the Navigator. It's generally recommended to prefer "use" statements over "require" statements whenever possible, as I believe the require "file.cgi" is a style that was more prevalent in Perl 4.
That said, I'd still really like to support this feature. Currently, most imported symbols are found during compilation time by inspecting the symbol table. I'd like to expand this to use the Typescript based shallow Perl parser in https://github.com/bscan/PerlNavigator/blob/main/server/src/parser.ts . That's the parser already used for generating the Outline view, and has been very fast and reliable. The parser would need to run on all files in require statements, as well as runtime inheritance like Moo's extends 'ParentClass'; syntax. Additionally, I'd like to run the parser against all files in the entire workspace (assuming the workspace is reasonably sized). Pathing will be a bit tricky, especially in your example where use lib "../.."; changes where the parser needs to look for required files, but I think it can work. I can probably dive into this at some point, but others are welcome to take a stab at it as well. Thanks!
I have a cgi file:
If I ctrl click get_siteId it is not recognised as a subroutine and I can't go to it within the microsoft_graph.cgi file.
The text was updated successfully, but these errors were encountered: