fatih / vim-go

Go development plugin for Vim
https://www.patreon.com/bhcleek
Other
15.98k stars 1.45k forks source link

GoRun FAILED #3585

Closed Rehtt closed 1 year ago

Rehtt commented 1 year ago

on windows11 powershell7 use neovim v0.9.2

run :GoRun main.go

output:

:!"go" "run" "main.go"
^[[31;1mParserError: ^[[0m
^[[31;1m^[[36;1mLine |^[[0m
^[[31;1m^[[36;1m^[[36;1m   1 | ^[[0m <a1><ad> e]::OutputEncoding = [System.Text.Encoding]::UTF8; "go" ^[[36;1m"run"^[[0m "main.g <a1><ad>^[[0m
^[[31;1m^[[36;1m^[[36;1m^[[0m^[[36;1m^[[0m^[[36;1m     | ^[[31;1m                                                           ~~~~~^[[0m
^[[31;1m^[[36;1m^[[36;1m^[[0m^[[36;1m^[[0m^[[36;1m^[[31;1m^[[31;1m^[[36;1m     | ^[[31;1mUnexpected token '"run"' in expression or statement.^[[0m
bhcleek commented 1 year ago

This isn't an issue for vim-go. When you run :!go run main.go, you're executing go run from directly from the shell and vim-go is not involved.. See :help :!.