VSCode failed to open terminal - terminal

I am trying to open a terminal in VS Code but I got this message:
The terminal process command "c:\windows\system32' failed to launch (exit code:2)

Try this in VS Code:
File -> Preferences -> Settings
Then navigate to Features -> Terminal
Scrolling down, you should hopefully see "Integrated > Automation Shell:Windows" and just below it "Edit in settings.json". Clicking on that will open the json file and I adjusted mine (2nd line from the bottom) to:
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
That worked for me with the exit code I was getting

Open VScode and go to the "View" menu. Click on the View menu item and then click on "Terminal". A terminal window should now open.

Related

iTerm as default terminal for Anaconda

I just installed Anaconda (with GUI) for data science projects. I'm a Mac user and when I launch Jupiter notebook from Anaconda Navigator it runs macOS default terminal. Is there a way to set Anaconda for using iTerm2 as terminal?
If you open iterm2 and go to the toolbar(on the top of the screen), try iTerm2-make iterm2 default term. See if this changes the behavior.
If not and you prefer using iTerm2, you can always open up an iTerm2 window and simply type
jupyter notebook
And you should have a jupyter notebook open in your browser, with the process running in the iTerm2 window.
Based on the default installation of anaconda (and iterm2).
Make sure, iTerm2 is an default term - this probably wont help, but... Do that :D
Open iTerm, navigate in menu on iTerm2 > Make iTerm2 default term
When you open the jupyter for example from anaconda, default terminal launches with the script. The name of this script file should be located at the top, by default it is: /opt/anaconda3/bin/jupyter_mac.command
Navigate to /opt/anaconda3/bin/ folder, or any other one where the command file from previous step is.
from terminal: open /opt/anaconda3/bin/ which will open finder in this destination)
In this folder, locate the jupyter_mac.command file
CMD+I on this file (or right-click and select Get Info)
This will open Information window for this file. Under the accordion, there is a selection of "Open with".
Instead of terminal, select iTerm2
Ideally, click on Change All... button so all the .command files will launch in iTerm

Not able to type in terminal in vs code

Have installed angular CLI via node js command prompt. However, when I launch terminal in VS code, it doesn't allow to type only. PFA screenshot
PFB terminal setting screenshot
Able to run ng commands from node js command prompt outside vs code.
If your problem is not related to default shell in your terminal. Then you check windows settings. Follow the steps -
Open VSCode file location
Go to Compatibility tab in VSCode properties window
Unchecked Run this program in compatibility mode for: option
see the attached files. Try with this solution, it might help you.
This worked for me:
Remove settings file.
Click on view/terminal.
Select default shell.

Can't open terminal in vscode on os x 10.11.6

Have installed VS Code (ver 1.27.2) on os x 10.11.6. All settings are still default values. When attempt to open the integrated terminal, a pane opens with usual headers, but no terminal prompt. Is this a known issue? Is there a fix?
At the top of the terminal window, on the left side, there are selectable options with the following name: Problems, Output, Debug Console, and Terminal. The terminal on my machine usually opens in the Output mode. This option is a window with nothing in it yet. If I click on the Terminal mode I get the regular looking terminal with prompt.

How to get react-native run-ios to open in iTerm instead of Terminal on a macOS?

How can somebody configure react-native run-ios to execute in iTerm instead of Terminal on OSX? By default, it opens a new Terminal window, but Terminal doesn't work as well with my window manager as iTerm does.
Daniel's solution worked, but as soon as I reinstalled node_modules it stopped working.
To make the change persistent, right-click on launchPackager.command in node_modules/react-native/scripts/ and choose Get Info… Then change the "Open with:" section to iTerm, and click on Change All…
The packager is started by executing open $PROJECT/node_modules/react-native/scripts/launchPackager.command, so whatever program is associated with *.command will be started. You can change the association:
Open Finder
Navigate to $PROJECT/node_modules/react-native/scripts/ (or simply create an empty file with the .command extension anywhere)
Right click launchPackager.command
Press the OPTION key
Under "Always open with..." you can select iTerm

Unable to hit breakpoints in MonoDevelop

On my archlinux system I did a fresh installation of:
mono 3.0.7
monodevelop 4.0.8
monodevelop-debugger-gdb 4.0
When I debug an application the debugger doesn't stop on the breakpoints, even not on the System.Diagnostics.Debugger.Break (); code.
And an error windows is displayed with the following message :
Could not connect to the debugger
Does anyone know how to fix it?
This is due to a recent gnome-terminal change. Recent gnome-terminal no longer accepts the --disable-factory argument.
Install the xterm package, then in a gnome-terminal session do the following:
$ unset GNOME_DESKTOP_SESSION_ID
$ monodevelop
This will cause monodevelop to use xterm as its external terminal and all should be well.
As a workaround untick the "Run on external console" checkbox in your running project settings. You can find this option in the "Run" tab from the settings pane.
Another factor which will cause break points to not be hit is if you don't have "Emit debugging information" button set.
You'll find this setting in "Project" tab then at the bottom of the menu " Option". Then look for "Build" tree branch then "Compiler" option. The checkbox for "Emit debugging information" is here.
I had a similar problem - breakpoints was not triggered while checkbox "Use MSBuild build engine" was checked in the project properties.

Resources