Visual Studio Code can not run my nim code - visual-studio-code

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.

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

i think you need to install the extension.
This is point 5 in the screenshot

Related

Output is not fully displayed on terminal of visual studio code when using "run code" function

When I run the python file with "run code" mode, the output is not fully displayed in the terminal, but when I run the python file with "run python file" mode, the output is fully displayed.
I have set the terminal Integrated scrollback to a much higher number but that didn't fix it. I'm speculating this error is caused by the code runner extension. Hope someone can understand and solve this problem for me.

AutoHotKey doesn't start program out of Visual Studio Code + AutoHotkey Extension

I want to make a script with Visual Studio Code and AHK that starts a certain program (automatically connect to a VPN ==> FortiClient).
If I double click directly on the script only containing that specific ahk run command in Windows Explorer, the client starts as desired. From Visual Studio code nothing happens.
I tried:
run, %programfiles%\Fortinet\FortiClient\FortiClient.exe
==> Works with double click from Windows explorer. Running from VS Code: nothing.
run, C:\Program Files\Fortinet\FortiClient\FortiClient.exe
==> Works with double click from Windows explorer. Running from VS Code: nothing.
I made a link to the exe an put that to a folder without a blank character in the directory name:
run, C:\Software_Checkout\AHK\FortiClient_Verknuepfung.lnk
==> Works with double click from Windows explorer. Running from VS Code: nothing.
What can be the reason for this?
I am unable to reproduce, so I'll give a dumb suggestion. Complete shot in the dark, but make sure you're not starting VS Code from under WSL. I've made that mistake in the past, the head scratches were plentiful. Other than that, I don't know what could be the issue. Maybe a faulty debugger?
Example script that works for me from VS Code, with several debuggers:
ProgramFilesX86 := A_ProgramFiles . (A_PtrSize=8 ? " (x86)" : "")
run %ProgramFilesX86%\Microsoft\Edge\Application\msedge.exe

need help in VSCODE debug

I'm a VSCODE first-time user. I tried to run debug on a simple python file and was not successful. I got 2 strange results:
the debug tool bar showed and disappeared instantly
no local variables was shown in VARIABLE section
Please see the screenshot.
Anyone could give me a hint anything was missing in what I did?
You need the python vscode extension to debug a python file. When you press F5 to start debugging, a menu will ask you what you are trying to debug. Click on Python File. The python extension creates a launch.json file for you and starts the debugger.
I noticed the Run and Debug tab is in your screenshot. Click that tab above where the variables would be shown and it should ask you to create the launch.json file in order to debug the file.
Read more on debugging and launch configurations for python here: https://code.visualstudio.com/docs/python/debugging

How to get Julia executable path in vscode on Mac

The message:
Could not start the julia language server. Make sure the configuration setting julia.executablePath points to the julia binary.
Pops up when trying to install run Julia in vscode on my Mac. I tried
Macintosh HD/Applications/Julia-1.7.app
But this didn't work and gives the same error
So after messing around some more it seems that you have to go all the way to the inner executable to get it to work.
I wanted to post the answer in case anyone else has this problem in the future.
Solution:
Right click on the julia application in finder and click 'Show package contents' from there this is the overall path i used as the vscode julia path:
/Applications/Julia-1.7.app/Contents/Resources/julia/bin/julia

Run Dart Console Application In Terminal with Visual Studio Code

I am trying to create a Dart console application that runs in the terminal rather than the Debug Console in Visual Studio Code.
Currently, when I press the play button:
It runs in the Debug Console. The problem with that is that the Debug Console cannot get user input from the line:
String userInput = stdin.readLineSync();
I know I can run the dart file from the terminal with:
dart C:\Applications\Dart\hello_world\bin\hello_world.dart
But I would prefer to use the play button out of convenience.
I found that you can edit the launch.json file to specify where it should run but it is not working. Even with the change shown in the picture below, it still runs in the debug console. In the picture you will notice a warning regarding how it only works with version from v2.7.1
I guess I was optimistic that the line "only supported for Dart SDKs from v2.7.1" was implying "SDKs from v2.7.1 and up.". However, it mostly likely means that version of the Dart SDK only.
Any help in achieving the goal of running a Dart file in the terminal using the Run button would be greatly appreciated.
If this is not possible, why would they take that functionality out of the newer Dart SDK's?
Your launch.json file is Ok, just check the file name. The main problem is that you use the debug button from the upper-right corner of the editor, but this button does not accept settings from launch.json.
You should use debug panel on the left side, as shown in the screenshot:
Make sure configuration's name (to the right of the green arrow) matches one from launch.json.