Closed bung87 closed 5 years ago
https://github.com/pragmagic/vscode-nim/blob/d708f9b41387aa784c765044704d5d8153e80c90/src/nimUtils.ts#L94
the code above will get the first file or dir or symbollink in $PATH which contains nim,and then readlink will fail if it is not a symbollink, I will make PR for this,think using which command would be more generic.
nim
readlink
which
https://github.com/pragmagic/vscode-nim/blob/d708f9b41387aa784c765044704d5d8153e80c90/src/nimUtils.ts#L94
the code above will get the first file or dir or symbollink in $PATH which contains
nim
,and thenreadlink
will fail if it is not a symbollink, I will make PR for this,think usingwhich
command would be more generic.