Closed rcmosher closed 1 year ago
If the command works in powershell, but not from vim (with no error) then I expect it's a permission issue of some kind.
@axvr any ideas? I don't know anything about powershell and windows permissions.
Printing the error code might be illuminating.
Dunno if you'd read %errorlevel%
or $LASTEXITCODE
, looks like $?
won't do [1].
Never seen this before... A couple of questions that may help debugging it:
:set shell?
give in Vim?shell=C:\Windows\system32\cmd.exe
. I had played around with changing shell
but I commented it all out a while ago.A couple more things you could try that might reveal the issue:
powershell -ExecutionPolicy Bypass -File "C:\Users\rob\vimfiles\plugged\omnisharp-vim\installer\omnisharp-manager.ps1" -6 -l "C:\Users\rob\AppData\Local\omnisharp-vim\omnisharp-roslyn"
:! powershell -ExecutionPolicy Bypass -File "C:\Users\rob\vimfiles\plugged\omnisharp-vim\installer\omnisharp-manager.ps1" -6 -l "C:\Users\rob\AppData\Local\omnisharp-vim\omnisharp-roslyn"
Both ran without issue. Apologies on taking so long to run them. I also tried running :OmniSharpInstall
from Gvim again and it's not indicating any errors. So it seems to be resolved. Not sure what would have changed. I haven't made changes to my git config in that time. But it could be updates or policy changes since it's a work machine.
I run :OmniSharpInstall on Windows and I get the following error message and log file. This is from gVim VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Jun 28 2022 12:46:00)
Error:
Log File:
No actual error seems to be logged.
If I try running that powershell command in the log file directly in powershell it is running without issue.