Comments (4)
Original question on Stack Overflow.
I suggested @fligge37 to report the issue here, so that it could help to improve the "work out of the box" experience.
The README Perl path section should maybe be moved before the VS Code installation one. Since the latest claims that the extension "should just work" after installation, why one's would read the following path section?
Eventually, the path mention could go in a preliminary "Requirements" section ?
from perlnavigator.
Thanks for reporting the issue, happy to work through it and improve the installation process and documentation. In the stackoverflow question, you stated I have no Syntax Highlighting
. VScode provides syntax highlighting by default for Perl (although the Navigator will fix some highlighting bugs and add additional highlighting for things like Moo and Object::Pad). In vscode, the language needs to be set in the bottom right of the editor if not detected automatically. Can you check this? If this is not set correctly, you can manually select the language.
If that still doesn't work, there are a couple other things we can check. First, you could check if the outline view is working. As long as you include as least one package or subroutine in the file, you should get breadcrumbs and an outline view. These features are implemented in typescript and don't require a functioning Perl. Examples below.
If those work and syntax checking does not, then it would be a problem connecting to Perl. Looking at your Stack overflow question, it looks like you are using the system version of Perl on Mac OS (which is 5.30.3 on MacOS Sonoma). If using the system perl, you should not need to set the perlnavigator.perlPath
. It should work by looking for perl
in your path. The perlPath should only be needed for alternative installations, such as if you had a 2nd version of perl from perlbrew. I have tested on Mac in the past, but not in a while, so it's possible something is broken here. Let me know what you find. You can also find logging by selecting the "Perl Navigator LSP" dropdown in the output tab.
from perlnavigator.
Thanks for giving me further context on this. The language is set correctly.
The issue was related to the perlnavigator.perlPath but actually without having a second perl version installed.
I found out my perl path via $ which -a perl
that gave me /usr/bin/perl
(I guess the default perl installation path?). I then set perlnavigator.perlPath to my installation path which resolved the issue.
Perl Navigator is working fine now. Thanks for your Reply :)
from perlnavigator.
Sounds good, thanks! I'm glad it's working. However, I'm surprised it needed to be set. To @smonff 's point, I feel like the Navigator should either be fixed to work out of the box, or the documentation should be updated.
The default value for perlPath
is simply perl
, which does work for finding the system install of perl on linux.
Line 34 in 1f3e38e
I'm curious if there is a bug affecting MacOS where it's not finding the system perl for some reason.
from perlnavigator.
Related Issues (20)
- lsp-mode defaults to using PerlNavigator HOT 1
- VSCode - Seem unable to get perltidy to trigger HOT 2
- TypeError *.replace|replaceAll is not a function in neovim HOT 3
- inquistor failed with error: Can't Regexp::Common::FIRSTKEY HOT 3
- perlnavigator triggers a registerCapability handler for workspace/didChangeConfiguration despite dynamicRegistration set to false HOT 1
- Critic timeout HOT 2
- Highlighting of bitshift operator with constants HOT 5
- Highlighting of split HOT 2
- Publish 0.8.0 to open-vsx registry HOT 1
- Incorrect syntax errors reported with Carp::cluck HOT 2
- Allow use of more predefined VS Code variables in include paths HOT 1
- File::Find dies when a duplicate file is found HOT 2
- Publish new release to npm HOT 3
- Making linter failure easier to find HOT 7
- Set logging = true for all editors HOT 2
- Formatting document or selected text issue HOT 18
- Error with Nvchad HOT 4
- Is it possible to open modules directly (path is from Cygwin)? HOT 2
- Tidy formatting does not work "out of the box" (MacOS)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from perlnavigator.