pragmagic/vscode-nim

Name of and path to nim executable

Opened this issue · 4 comments

Hi,

love this extension. This is a feature request.

Some people have different versions of nim on their system, for them
it would be a great to have a setting for selecting the path to the nim executable.

For a special purpose I'm considering to write a shim around nim, so this means
for me it would be nice if your extension would allow for setting a different name
for the nim executable additionally to the path. For example the name could
be nimshim instead of nim.

If there's anything like it already, please make it known to me.

Hello,
Another additional option would be to allow extra extensions on Win32 for Batch files that would be be considered valid on the path. That minimum change would enable a lot and be very clean. Thank you. Good day.

This would be very helpful.

Hello,
I just ended looking at the typescript locations and backtracked it to the javascript on my local install. Then i changed the javascript enough to make the five nim calls work with multiple choices for valid binary names (returns array). So if you have a mix of (.bat, .cmd, or .exe) as being valid binary extensions, it will give you the top of the list to execute. I didn't convert it to typescript because i have yet to learn it and didn't have time to mess with the original source code. Just wanted to say that It is possible to accomplish in one day.

For me i only put my "batch/script" files on the path because i install from only zip unpacking as much as possible and use multiple versions at the same time (regression checks). Thank you. Good day.

dsaw commented

that would be useful. I got a related issue where "Nim not found in path" comes up even after I manually added the PATH. Noticed there is no way to edit the PATH extension accesses.