Home > Back-end >  Visual Studio Code can not run my nim code
Visual Studio Code can not run my nim code

Time:10-29

enter image description here

when i click the vscode run button it pops up with a useless dialog box instead of running the code. (i attached a screen) running with f6 yeilds this error "A system error occurred (EINVAL: invalid argument, mkdir 'c:\0pyrhton\nimtest\C:\Users\L.nimble\bin')"

i was expecting it to compile and run the .nim file and alert me to any errors in the vscode terminal.

CodePudding user response:

i think you need to install the extension.

This is point 5 in the screenshot

CodePudding user response:

You need to install the nim extension, you can look for an nim extension to your liking, otherwise https://marketplace.visualstudio.com/items?itemName=kosz78.nim is an extension that can run .nim files

CodePudding user response:

i used the code runner exstension and i can run .nim code with the coderunner shortcuts but it feels exstremely hacky and i dont think its a good soultion, i think running code this way means i get worse error messages or i cant use exstensions that edit nim error messages

  • Related