Closed EEP-Benny closed 3 years ago
Apparently I misunderstood how the paths work in Node.js. For whatever reason I thought that path.posix
would translate the paths into Posix for you, since I like those a bit better, but I guess not :laughing:
Easy enough fix, thanks for letting me know!
I tried to use this package on a Windows machine. After installing and enabling it, when I run
eslint
, nothing happens - the command hangs with a high CPU usage.I investigated a bit and found out that
findAliases
ran into an endless loop. This is probably because the posix-specific commands of Nodespath
API are used. On a Windows machine, this results in the following values for the variables defined in line 9 and 10:Obviously such a file doesn't exist, no matter how much
..
are appended.I replaced the posix-specific with the normal commands (
path.posix.xyz
->path.xyz
in the compiled source), and everything worked again for me. Is there a special reason why the posix-specific commands are used?