Skip to content

[BUG] cloc won't work if ran through a symlink on Windows (ex Winget) : Can't locate PAR.pm in @INC #849

Closed
@EDM115

Description

Describe the bug
When I tried to install cloc through winget, every command I run (even cloc --version) fails with the message : Can't locate PAR.pm in @INC (you may need to install the PAR module) (@INC contains:) at -e line 592.. Note that Strawberry Perl is installed

cloc; OS; OS version

  • cloc version: winget installed 2.00, i tried replacing the .exe on %LOCALAPPDATA%\Microsoft\WinGet\Packages\AlDanial.Cloc_Microsoft.Winget.Source_8wekyb3d8bbwe with 2.02 from the releases tab but nothing changed
  • If running the cloc source, Perl version: v5.40.0
  • OS (eg Linux, Windows, macOS, etc): Windows 11
  • OS version: 23H2 build 22635.4076

To Reproduce
Install through winget. Note that the npm package works just fine.

Expected result
cloc should work out of the box without any extra step

Additional context
I tried to install manually PAR and PAR::Packer for Perl, without any success. Restarting didn't changed a thing either

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions