I'm relatively new to using IDEs and recently started using VSCode for class. I'm using the Code Runner extension and working on a Mac. Whenever I go to run a piece of code I receive the following message in my terminal:
The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh.
For more details, please visit https://support.apple.com/kb/HT208050.
Could someone help explain what exactly this message means? I think for class we want to use the Bash shell so I'm hesitant to make any changes to the current settings but I don't want it to interfere with my ability to run/test code.
Related
I'm brand new to coding and this is stumping me for some reason. The error that comes up when I type node -v in my visual studio code terminal is 'node : The term 'node' is not recognized as the name of a cmdlet... It works just fine when I run it in command prompt on my computer. I've read everywhere that you have to add it to your path which I'm not sure I did correctly now. I attached some pictures of what the path looks like for the user and system variable. I am hoping someone could give some feedback if this looks right or not. Thanks :)
user variable
system variable
I had this issue when I first got Node. The solution is to restart VSCode, opening new terminal sessions inside VSCode won't help for some reason. You will, of course, have had to add it to PATH which you said you have.
It wouldn't work in command prompt if you haven't added it to PATH so I think your configuration is correct. However, some of your variables are in Appdata/Roaming. I think it's supposed to be in ProgramFiles or ProgramFiles x86, but you can check this by going to the filepath you've put into your environment variables using file explorer, and checking if there's a node.exe or npm.exe file there.
I'm new to programming and I just started learning JS. I tried running my first code via 'code runner' on Visual Studio Code but it wasn't giving me the output. enter image description here
You need to install NodeJS first in order to run the JavaScript on your machine. You can download it here. Then, you should make sure that Node path is added. After that restart VS Code and run it again.
I am creating a diagnosticCollection on a vscode extension following this
sample:
It works but if I run the same command twice on the same file it creates a "duplicate" diagnostics issues list in the problems terminal window.
What is the best way to clear that terminal window problems? I have tried to run collections.clear() which I thought would do the job but it did not work.
I've been playing around with Terminal IDE (I've recently discovered it) and I wish to run a javascript code I've written but when I issue to command to run according to Spartacus Rex's instructions, I always get a 'Permission Denied' message. His command to run a script is: ./script_name.js
Spartacus gives examples in his help document with regards to running scripts he has written that come with this app of his (these scripts have a .sh extension). When running them according to the ./script_name.sh command, all works fine.
Again, this is not working for me as I try to run my own scripts from the Terminal IDE command line. Can someone please point me in the right direction? I am a novice at all this programming, but I can figure out a lot on my own if pointed in the right direction at least. Thanks for any help anyone can provide.
Those are not JavaScript Files you've been running with ./scriptName.sh , actually those are bash shell scripts, Google for it to know what these files actually are. When you create a custom shell script, do not forget to add execution permission to it : chmod +x your_custom_script.sh. I don't think you can actually run JavaScript files inside Terminal IDE
Not sure about links browser provided with it though
I have tried to install meteor js 1.1 on windows 8.1 with the official installer:
https://github.com/meteor/meteor/wiki/Preview-of-Meteor-on-Windows
But even after restarting my computer, when I type the command meteor in the command prompt I get the error command not found.
Even after a search on my computer to find the installation folder of meteor, I am unable to find the answer. However, in the add/remove program utility, I can see meteor.exe.
As a note, I already successfully installed meteor before, and it used to run smoothly. In the meantime, I have removed and re-installed node, and it seems that since this moment the command meteor does not work anymore. Hence my attempt to re-install it.
Does anyone have any idea about how to troubleshoot my issue ?
I just solved my issue by using the windows command prompt instead of the git bash
It appears that only windows command prompt is supported so far.
You can try to manually add Meteor to your Path.
Go to "Environment variables" (you can find it by doing a simple search in your welcome screen) and add the following entry:
C:\\Users\\**your_user_name**\\AppData\\Local\\.meteor
Do not forget to separate this entry from other entries by a semicolon ;.