-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
specify full path of any executables you are to using (eg perlimports) #139
Comments
Hi @matthew-lenz-otr, thanks for filing the request. The Navigator intentionally doesn't use any executables other than Also, there are a few options available in the module forms that are unavailable in the command line form of these tools. For example, in perlcritic I need to pass the actual code via stdin (to run critic on unsaved files), but still specify a filename that is required for various policies (e.g. Perl::Critic::Policy::Modules::RequireFilenameMatchesPackage). What are the issues you are having with SSH based development? I have tested the Perl Navigator extensively using the vscode SSH extension and it works well. |
@bscan. I see the following in the log when I click on a script or module. Both perlcritic and perlimports are installed in vendor/{lib/perl5,bin} [Trace - 12:25:11 PM] Sending notification 'textDocument/didOpen'. Critic output: |
Ah, interesting. I think I see the issue. This is using the default Specifically, if you run If not, it seems like you have perl modules located in a place where perl doesn't normally look by default, which is ok. You can add extra parameters to pass to perl via the perlParams argument that was added in: #68 . So for example, you could try:
|
This is what I'm using. You can see it in the logs above. It appears you are including that in the executable for certain executions? maybe just for starting the server? EDIT: no i'm not using alternate version of perl. No run like you show doesn't work because it needs the includePaths.
|
Now I'm second guessing the design and naming of these parameters 🤔 . Currently, includePaths are only used when running
As for a fix to make this easier, I suppose are two options: I could either start using |
Either solution is fine but not having $workspaceFolder support in perlParams makes it |
Not sure if you use any other executables other than perlimports but if I want perlimports to be included on 'develop' in my cpanfile and I want to use the workspaceFolder. My personal preference would be either a way to specify an additional PATH (so I can base it on $workspaceFolder) or just have a new option to specify the full path to perlimports, perlcritic ($workspaceFolder support would be useful here as well). For the life of me I can't get perl navigator to see these bins when i'm using remote - ssh based development.
The text was updated successfully, but these errors were encountered: