Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Executing :GoRun does not output the execution result #3523

Closed
scrawld opened this issue Feb 16, 2023 · 0 comments · Fixed by #3524
Closed

Executing :GoRun does not output the execution result #3523

scrawld opened this issue Feb 16, 2023 · 0 comments · Fixed by #3524

Comments

@scrawld
Copy link

scrawld commented Feb 16, 2023

What did you do? (required: The issue will be closed when not provided)

package main

import "fmt"

func main() {
    fmt.Println("vim-go")
}

Run the :GoRun command

What did you expect to happen?

Jump to the terminal or pop-up window to output the result

What happened instead?

Only output vim-go: [run] SUCCESS

Configuration (MUST fill this out): https://github.com/scrawld/vimrc/blob/master/vimrc

vim-go version: Latest

Vim version (first three lines from :version):

VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Feb 14 2023 11:31:04)
macOS version - arm64
Included patches: 1-1307

Go version (go version):

go version go1.18.8 darwin/arm64

Go environment

go env Output:
GO111MODULE="auto"
GOARCH="arm64"
GOBIN="/Users/Ziyang/etc/go/bin"
GOCACHE="/Users/Ziyang/Library/Caches/go-build"
GOENV="/Users/Ziyang/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/Ziyang/etc/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/Ziyang/etc/go"
GOPRIVATE=""
GOPROXY="https://goproxy.io"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.18.8"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/Ziyang/tmp/test_func/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/qz/d_gg34b96jnf__rwpgynp3bw0000gp/T/go-build372940360=/tmp/go-build -gno-record-gcc-switches -fno-common"

gopls version

gopls version Output:
golang.org/x/tools/gopls v0.11.0
    golang.org/x/tools/gopls@v0.11.0 h1:/nvKHdTtePQmrv9XN3gIUN9MOdUrKzO/dcqgbG6x8EY=

vim-go configuration:

vim-go configuration
g:go_highlight_extra_types = 1
g:go_highlight_variable_declarations = 1
g:go_highlight_operators = 1
g:go_highlight_function_calls = 1
g:go_highlight_fields = 1
g:go_highlight_variable_assignments = 1
g:go_addtags_transform = 'camelcase'
g:go_highlight_functions = 1
g:go_highlight_types = 1
g:go_jump_to_error = 1
g:go_loaded_gosnippets = 1
g:go_highlight_generate_tags = 1
g:go_loaded_install = 1

filetype detection configuration:

filetype detection
filetype detection:ON  plugin:ON  indent:ON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant