-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Debugger cannot start #2057
Comments
I'm not able to duplicate any problems running delve. Can you please |
['/home/piotr/go/bin/dlv', 'debug', -1, '--output', '/tmp/nvimZhuUKL/5', '--headless', '--api-version', '2', '--log', '--log-output', 'debugger,rpc', '--listen', '127. |
let l:pkgname = go#package#FromPath(getcwd())
returns -1 |
Please make sure your working directory is the directory that contains your main package. |
Is your package within |
I found a few edge cases today that could explain this. Can you try #2075 to see if it resolves the problem for you? |
Yes, resolved. THX! :) |
What did you do? (required. The issue will be closed when not provided.)
vim-go: Error: unknown shorthand flag: '1' in -1
vim-go: Usage:
vim-go: dlv debug [package] [flags]
vim-go: Flags:
vim-go: --output string Output path for the binary. (default "debug")
vim-go: Global Flags:
vim-go: --accept-multiclient Allows a headless server to accept multiple client connections. Note that the server API is not reentrant and clients will have to coordinate.
vim-go: --api-version int Selects API version when headless. (default 1)
vim-go: --backend string Backend selection:
vim-go: default^I^IUses lldb on macOS, native everywhere else.
vim-go: native^I^INative backend.
vim-go: lldb^I^IUses lldb-server or debugserver.
vim-go: rr^I^IUses mozilla rr (https://github.com/mozilla/rr).
vim-go: (default "default")
vim-go: --build-flags string Build flags, to be passed to the compiler.
vim-go: --headless Run debug server only, in headless mode.
vim-go: --init string Init file, executed by the terminal client.
vim-go: -l, --listen string Debugging server listen address. (default "localhost:0")
vim-go: --log Enable debugging server logging.
vim-go: --log-output string Comma separated list of components that should produce debug output, possible values:
vim-go: debugger^ILog debugger commands
vim-go: gdbwire^I^ILog connection to gdbserial backend
vim-go: lldbout^I^ICopy output from debugserver/lldb to standard outp
What did you expect to happen?
What happened instead?
Configuration (MUST fill this out):
vim-go version:
1.19
vimrc
you used to reproduce (use a minimal vimrc with other plugins disabled; do not link to a 2,000 line vimrc):Vim version (first three lines from
:version
):NVIM v0.3.1
Build type: Release
LuaJIT 2.0.5
Compilation: /usr/bin/cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wconversion -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthro
ugh -Wvla -fstack-protector-strong -fdiagnostics-color=auto -Wno-array-bounds -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim/src/build/config -I/build/neovim/src/neovim-
0.3.1/src -I/usr/include -I/build/neovim/src/build/src/nvim/auto -I/build/neovim/src/build/include
Compiled by builduser
Features: +acl +iconv +jemalloc +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Go version (
go version
):go version go1.11.2 linux/amd64
Go environment (
go env
):GOARCH="amd64"
GOBIN=""
GOCACHE="/home/vagrant/.cache/go-build"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/vagrant/go"
GOPROXY=""
GORACE=""
GOROOT="/usr/lib/go"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build616323544=/tmp/go-build -gno-record-gcc-switches"
The text was updated successfully, but these errors were encountered: