Run code configuration not showing up in VS Code - visual-studio-code

So, I wanted to run a program in c, but after installing code runner, I find the program running in output. I found the solution i.e. to go to run code configuration in settings. But I found that the run code configuration option is missing.
I tried a few things but all were in vain. Kindly help me please.

Related

Elixir: VS Code ExUnit cannot find Mix

I cannot load or run my tests, from within VS Code.
I'm a new user to Elixir, and to VS Code. I'm running Lubuntu 21.10 (Impish). I've downloaded Erlang/OTP 25 (.deb), and Elixir 1.14 (precompiled binary in /usr/share/elixir), and can get anything I need running in a Bash terminal. Again, in a standard QTerminal window,
erl, iex, mix, elixir, etc. all work fine.
In VS Code, however, I get some errors. I feel stupid, but I'm coming from Sublime Text, so please forgive me.
In the left pane of VS Code, ExUnit shows an error (red):
Clicking on this error gives me this, on the bottom right pane. The command line options, passed to mix test, seem to be the default configuration:
This result is bizarre to me, because I can open the integrated terminal, execute /bin/sh, and then run the exact mix test line that's displayed:
/usr/share/elixir/bin has been added to my PATH variable, in ~/.bashrc, ~/.profile, and /etc/environment.
However, I am further confused by all tests being excluded, and wonder if there's some connection to the core issue:
Note that I can run my tests just fine, using different command line options. I've tried adding tags, but that didn't fix the problem.
I tried Google'ing this, and played around with my settings. Here is what I have configured in the "User" settings.json, and I made sure nothing overrides this in "Workspace" settings:
Changing the useNativeTesting setting doesn't solve the problem.
On another (?) note, I get a "failed to run elixir" upon VS Code startup:
Again, I have no problem running commands from a Linux terminal, or from a terminal within VS Code.
Plot twist: If I remove the precompiled Elixir 1.14, and downgrade to an older version, via apt, the problem goes away. But Lubuntu 21.10 doesn't offer Elixir 1.14, and I'm really into using the new dbg() feature.
But for now, I cannot load or run my tests, from within VS Code, apparently because Mix cannot be found.
Thanks to Daniel Imms, from the VS Code team, for answering my question on Twitter:
"Try moving where ever you init mix and elixir (.bashrc?) into your .bash_profile and then logging out and in again or restarting. I'm guessing it's in your bashrc which doesn't run in non-interactive sessions like in tasks."

How To Fix VSCode: Exception has occurred: ReferenceError: closeDescriptionPopup is not defined

Not sure how this problem specifically occurred. I've been doing some googling trying to narrow down what exactly is going wrong as my project was fine a few days ago. When i attempt to debug my VSCODE project i'm presented with this error.
this is a picture of my launch.json file:
Also, this an error if it helps displayed in the debug console.
Things i've tried so far,
Rebooting the computer
Uninstalling and Reinstalling VSCODE as well as disabling extensions
Creating a new VSCODE Project to attempt to debug
Deleting the launch.json file and creating a new one
just delete the launch.json file and it will work again
After spending some time debugging I solved this problem by simply installing npm packages, I executed command npm i
Just make sure that your npm packages are all installed and none is failing.
Hopefully this helps you or someone with the same issue.
I've solve this problem.
Remove the launch.json file and do not replace it.
Just try to build with F5 button.
Start Debugging from within VSCode
run npm start from a separate terminal and wait for the server to start
refresh the page in your browser
My intuition is that this would create 2 instances of the server binding to the same port and cause a bunch of problems. I'm not sure why, but in my case it worked as expected and let me debug with breakpoints normally.
You don’t need to use the VS Code run button with Live Server. You just right-click the HTML file in explorer and use the menu option “Open with Live Server”.

No debugger in VS code extension tests

I need to debug unit tests for an extension for VS Code but am not able to set any breakpoints. They are skipped all together when running tests, yet work when running the extension in debug mode.
Steps to reproduce:
I cloned https://github.com/microsoft/vscode-extension-samples.
code helloworld-test-example
run npm install and put random breaking points in the test.
When running the extension tests, the breaking points are not having any effect.
before running ext. tests
after running ext. tests
Any help will be appreciated a lot!
This might be an issue with Mac OS. I am able to debug with other IDE's when VS Code is closed. Seems that the second instance of VS Code is the issue when debugging with VS Code.
I replicated these steps on 2 mac OS systems, both with fresh installs and no other activated plugins.

How to Compile and Run Everytime I use CodeRunner in VSCode

I have been using Code Runner extension to build and run c++, python, and java files in Visual Studio Code. But it doesn't actually compile the program every time I run it. It just Run the program. So, If I make any change, The output in the terminal doesn't get updated and doesn't show the changes I have made. The Code Runner just build the program once and that's it. What should I do to make "Code Runner" Build or Compile the program every time I run a program using "Run" or Ctrl+Alt+N?
Got it. Here is what I did to solve the problem.
Go to Extension Settings of Code Runner Find and Mark Save File Before Run.
Screnshot Here
I think I know what you are talking about, Go to the top menu and find performance, inside look for an option something like code runner run in the terminal, check that box and then you can give input to the program.

Input does not work in Visual Studio Code

So I just started learning programming and I think something is messed up with my code runner in Visual Studio Code. When I try to use input in Python I can not write anything in the terminal. This problem came out recently. It writes that when I try to input anything that it "cannot edit in read-only editor". I also checked in here what could be the solution, but it did not help. Input still does not work. I am on Linux, and I also tried to uninstall the program and code runner as well, none of them worked so far.
Ps: I tried the Code-runner: Run in Terminal box check method, which did not work at all.