Skip to content
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

Tidy formatting does not work "out of the box" (MacOS) #129

Open
ohir opened this issue May 7, 2024 · 0 comments
Open

Tidy formatting does not work "out of the box" (MacOS) #129

ohir opened this issue May 7, 2024 · 0 comments

Comments

@ohir
Copy link

ohir commented May 7, 2024

MacOS 12.7.4, VSCode Version: 1.85.2

Just installed PerlNavigator in a vanila perl environment (only system perl). Perltidy works from terminal (brewed).

Extension works: it hints, displays help - ie. PLS part is working ok - but it does not format on save (enabled globally).

It needed me to have Perl::Tidy installed separately:

export PERL5LIB=/Users/user/perl5/lib/perl5
brew install cpanm && cpanm install local::lib && \
cpanm --local-lib=~/perl5 local::lib && eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
cpanm install Perl::Tidy

then add to settings.json appropriate items:

"perlnavigator.includePaths": [        "/Users/user/perl5/lib/perl5"   ]

"perlnavigator.perltidyProfile": "/Users/user/.ptrc"

Restart VSCode... wooha, now it formats on save.

It would be good to either bundle Tidy with extension or update docs accordingly.

TC, excelent work :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant