Powershell commands/scripts not actually running - powershell

I am trying to install Emscripten on my computer, and I have run into trouble getting Emscripten actually installed.
I am using the same commands as can be found on the project webpage, but when I try to run
emsdk install latest
Powershell (which is what I am using, but the basic command prompt is behaving the same way) doesn't do anything at all - it just returns without installing anything.
For reference, I have installed Emscripten on this same computer before, but decided to try and do a fresh install of Emscripten after running emsdk activate latest decided to "stop working" as well (whereas it worked just fine last week) - running the command, Powershell simply returned without actually doing anything.
Any ideas on what to check to see why these commands don't seem to run?

I think I solved it. When running the install command in Powershell ISE, it threw the error "Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640"
despite me having Python installed. Changing the order of my PATH variables to set my Python install directory above the Winapps directory solved the issue with running the install command.

Related

have problems installing plugins in neovim/vim

Whenever i install any plugin in neovim/vim, the commands don't work, neovim/vim gives me the same error saying that the command that the plugin has isn't a command. Am i doing something wrong?
For more info, i use windows 10 (want to switch to linux but i don't have a computer of my own to do so). I checked everything i installed, they have a windows version, they have instructions on how to download it on windows, i followed them, but the plugins still refuse to work.
The first thing i installed is vim-plug. But no command i enter works.
I tried re-installing, but that doesn't work either.
You have first to install vim-plug.
On Windows 10 you have to start a powershell (WinpowershellEnter) run the following command:
iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
ni "$(#($env:XDG_DATA_HOME, $env:LOCALAPPDATA)[$null -eq $env:XDG_DATA_HOME])/nvim-data/site/autoload/plug.vim" -Force
You need to have the following lines in your ~\AppData\Local\nvim\init.vim
call plug#begin()
Plug 'nvim-tree/nvim-web-devicons' " optional, for file icons
Plug 'nvim-tree/nvim-tree.lua'
call plug#end()
You need to start Neovim and run:
:PlugInstall
You need to restart Neovim

How to install AutoRest correctly?

I installed nodejs 16.14.0 LTS version on my VM.
I also have dotnet 6 installed on it.
I installed autorest and then when I run the command PS doesn't recognize it at all.
The screenshot below is a Powershell 7 session.
On another VM it works perfectly fine.
I tried to wipe it out, re-install, uninstall and install again, reset, but nothing helped so far.
Any suggestions are welcome.
In order to make it work I had to add the following path to the User environment variables:
%USERPROFILE%\AppData\Roaming\npm

'raml2html' is not recognized though installed via npm i -g raml2html: Windows

I was trying to run raml2html to convert some contracts to HTML, this was working initially when first time I did the installation on my Windows machine but after some weeks when I tired running this again then this command stopped working. Not sure what happened.
What I again tired installing raml2html by running npm i -g raml2html but still its saying:
'raml2html' is not recognized as an internal or external command,
operable program or batch file.
I again tried uninstalling and reinstalling also but still the same issue.
Try to find where the installation is creating the command line script for Windows (a file ending .cmd). That can be found opening a Powershell terminal and using the where command. It usually is under the C:\Users\<YourUserName>\AppData\Roaming\npm\node_modules directory.

vscode is not lauching for me on windows 7

I downloaded the latest ZIP file of VSCode for windows from VSCode website.
Unzipped it and tried running the Code.exe from it. It does nothing no crashing message juts output nothing.
I tried running Code.exe from command prompt [after CD to the directory where I have unzipped it], nothing happens, no out put.
Then I did some googling to do more troubleshooting and found out I need to run Code.exe or bin\code.cmd with --help and --verbose command.
No output on command line.
I am totally confused and don't know how do I make VScode work on my windows 7 machine or how do I troubleshoot why its not working.
I have appropriate .Net Framework installed [the one suggested by the VSCode website].
I have also tried installer , with all above debugging steps , same outcome as above.
I checked the code.exe in task manager to see if its running in background, nothing in there too.
What do I do ?
Check if the process is running in Task Manager.
Check for "code.exe". If it is running, then end all instances, and try again.
Otherwise, try opening event log, in Application or System. Look for errors or warnings which may have been logged and give some insight into why Code didn't open.
So guys seems like new version of VSCode has this problem.
Try downloading an older version of VSCode and do not upgrade it once its installed.
After I installed : V 1.18.1 , its working fine.

VSCode Powershell integrated terminal hangs when starting

I am using VSCode version 1.12.2 in Windows 10 x64 build 16193. I am trying to debug Powershell in VSCode, but I cannot get the PowerShell Integrated Terminal working. Every time I started the terminal, here's what I see:
And then it hangs in that stage. I can still debug, start, step in, step out..., but I cannot view my variable or run any expression.
My VSCode is using powershell x64 here:
"terminal.integrated.shell.windows": "C:\\WINDOWS\\Sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
So this is a known issue with this version of windows 10. Workaround here: https://github.com/PowerShell/vscode-powershell/issues/742
It's possible it's getting stuck on something while loading your profile(s). Try adding this to your settings to skip this:
"powershell.enableProfileLoading": false
I have had a similar problem, it seems. I cannot be sure it is the same, but when I would "load a file with VSCode" (user installer confirmed, system installer unconfirmed), it would hang. The following avenues tested:
Double-clicking on a PS1 file (the association to Code being made)
Starting VsCode empty and then loading the file
Starting VsCode from the command-line with a file-designation parameter
Using the --verbose switch, I got a listing which lead me to believe that VsCode seemed to be checking on updates using NPM (I could be wrong here).
Whatever the underlying problem, I did a lot of prodding and probing, and the cure I found was this.
Delete the directory called C:\Users\YourUserId\.vscode.
This directory is rather large, is not wiped by software removal, and may be corrupted apparently. After deleting it, the problem disappeared.