Please answer the following before submitting your issue:
debug error :can't load package: package .: no buildable Go source files in /Users/wxq/go
why?
Note: Please include any substantial examples (debug session output,
stacktraces, etc) as linked gists.
dlv version)?go version)?Presumably because there are no buildable go source files in /Users/wxq/go
same problem here. I think it happens because the variable ${fileDirName} points to .vscode folder. It needs to point to local folder. It's a wrong behavior, ok?
can't load package: package filetraining/.vscode: no buildable Go source files in C:\goworkspace\src\filetraining.vscode
the blame is all of vscode.
I encounter this issue just when trying to issue "go get github.com/derekparker/delve" on MS VSCode on Mac OS X Sierra 10.12.5,
@aarzilli something similar here, weird issue:
$> echo $GOPATH
/Users/glerchundi/.go
$> ls -l $GOPATH/src/github.com/glerchundi/grpc-boomerang/cmd/websocket-server-grpc-client
total 8
-rw-r--r-- 1 glerchundi staff 3115 Nov 15 11:42 main.go
$> /usr/local/bin/dlv debug github.com/glerchundi/grpc-boomerang/cmd/websocket-server-grpc-client --headless=true --listen=127.0.0.1:2345 --log=true --
can't load package: package github.com/glerchundi/grpc-boomerang/cmd/websocket-server-grpc-client: build constraints exclude all Go files in /Users/glerchundi/.go/src/github.com/glerchundi/grpc-boomerang/cmd/websocket-server-grpc-client
exit status 1
UPDATE: it was my fault. There was a // build: +ignore header in there, another one bitten by copy&pasting monster.