vscode-nim icon indicating copy to clipboard operation
vscode-nim copied to clipboard

Name of and path to nim executable

Open tobimensch opened this issue 5 years ago • 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.

tobimensch avatar May 15 '20 11:05 tobimensch

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.

pr-yemibedu avatar Jun 03 '20 13:06 pr-yemibedu

This would be very helpful.

daanzu avatar Jul 17 '20 14:07 daanzu

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.

pr-yemibedu avatar Jul 20 '20 14:07 pr-yemibedu

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.

dsaw avatar Aug 15 '21 08:08 dsaw