Author Topic: Listing function arguments in Perl: No help found for this function  (Read 3000 times)

pmsteinm

  • Community Member
  • Posts: 85
  • Hero Points: 1
I'm using 19.0.1.1 (64-bit) on SUSE Linux Enterprise Desktop 11.

Due to requirements at work I have had to change how my Perl programs include files from:
   use someInclude 1.123;
to
  use someInclude $someVariable;

After doing that, I can no longer press "Alt-," to get help on a function contained in the above include file.  I get the message "No help found for this function: someFunction".  I can still do "Ctrl-." on the function name to have it take me to the include file which is part of my Slickedit project.  If I remove the variable above I can immediately use "Alt-," successfully.

I found as a workaround I can do this:
  use someInclude $someVariable;
  use someInclude;

Is there another way I can workaround this (like some project or tagging setting) without having to update my Perl code?

If some fix can be made to Slickedit this is the format I really want supported (which behaves the same as the $someVariable example above):
  use someInclude (($someVariable =~ m/someExp/) ? 1.123 : 1.000);

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1217
  • Hero Points: 119
Re: Listing function arguments in Perl: No help found for this function
« Reply #1 on: March 20, 2015, 07:18:43 pm »
I tried mocking up a quick sample to reproduce, but things appear to be working.  I could be missing something.   Could you post a small example project where this is failing?

pmsteinm

  • Community Member
  • Posts: 85
  • Hero Points: 1
Re: Listing function arguments in Perl: No help found for this function
« Reply #2 on: March 20, 2015, 07:58:51 pm »
I created a new project with a simple example.

pmsteinm

  • Community Member
  • Posts: 85
  • Hero Points: 1
Re: Listing function arguments in Perl: No help found for this function
« Reply #3 on: March 20, 2015, 08:05:55 pm »
After creating that example I moved my vs config dir out of the way and started VS again allowing it to create a default config.  After waiting a few minutes for the perl tag file to be created I get the same behavior.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1217
  • Hero Points: 119
Re: Listing function arguments in Perl: No help found for this function
« Reply #4 on: March 20, 2015, 08:07:35 pm »
Thanks for the example, I can reproduce what you describe.  I will investigate.

pmsteinm

  • Community Member
  • Posts: 85
  • Hero Points: 1
Re: Listing function arguments in Perl: No help found for this function
« Reply #5 on: June 24, 2015, 03:30:03 pm »
Is there any update on a fix for this?

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1217
  • Hero Points: 119
Re: Listing function arguments in Perl: No help found for this function
« Reply #6 on: June 24, 2015, 03:41:06 pm »
Are you on 19.0.2?  It was not hotfixable to 19.0.1, the latest update included a fix for that should have helped.  Please try the latest build and if it is still not working we will re-open the case and try to fix it.

pmsteinm

  • Community Member
  • Posts: 85
  • Hero Points: 1
Re: Listing function arguments in Perl: No help found for this function
« Reply #7 on: June 24, 2015, 06:38:19 pm »
I'm now on 19.0.2.5 and still see the same problem.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1217
  • Hero Points: 119
Re: Listing function arguments in Perl: No help found for this function
« Reply #8 on: June 24, 2015, 06:40:34 pm »
Try deleting the tag file (.vtg) for the workspace and restart to make sure it is completely retagged.  I will test the sample again to see I can reproduce.

pmsteinm

  • Community Member
  • Posts: 85
  • Hero Points: 1
Re: Listing function arguments in Perl: No help found for this function
« Reply #9 on: June 24, 2015, 06:50:18 pm »
I exited, deleted the file, then restarted. Still have the same problem (I did get the message about retagging the workspace when pressing Alt-,).

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1217
  • Hero Points: 119
Re: Listing function arguments in Perl: No help found for this function
« Reply #10 on: June 24, 2015, 07:22:30 pm »
I re-tried the sample project you submitted,  I do get function help in v19.0.2 with Alt+, for the testFunc symbol where I do not in v19.0.1 or earlier.   It does work for this simple case, but perhaps it is not fixed in other cases.  I would need further examples to get a better answer.

pmsteinm

  • Community Member
  • Posts: 85
  • Hero Points: 1
Re: Listing function arguments in Perl: No help found for this function
« Reply #11 on: June 24, 2015, 09:09:40 pm »
In my sample file change:
  use testInc $someVar;
to
  use testInc ($someVar) ? 1.0 : 2.0;


pmsteinm

  • Community Member
  • Posts: 85
  • Hero Points: 1
Re: Listing function arguments in Perl: No help found for this function
« Reply #12 on: June 24, 2015, 09:11:32 pm »
And from my original post this is the more complex format that I really want to work:
  use someInclude (($someVariable =~ m/someExp/) ? 1.123 : 1.000);

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1217
  • Hero Points: 119
Re: Listing function arguments in Perl: No help found for this function
« Reply #13 on: June 25, 2015, 12:56:53 pm »
Definitely an issue with the parser getting hung up on the expression following the use statement.  I will re-open the issue with new information and try get this fixed in a future release.  Thanks for testing and providing information.

pmsteinm

  • Community Member
  • Posts: 85
  • Hero Points: 1
Re: Listing function arguments in Perl: No help found for this function
« Reply #14 on: October 27, 2015, 09:13:23 pm »
I noticed this issue is still in V20 RC1. Is there any plan for this to be fixed in V20?