Skip to content

Executing :GoRun does not output the execution result #3523

@scrawld

Description

@scrawld

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/[email protected] 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions