You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, when I launch it Delve changes directory into cmd/controller and builds . and while this works the problem is then when I get compilation error, links are not valid. For example:
Starting: /home/lzap/go/bin/dlv dap --listen=127.0.0.1:41945 --log-dest=3 from /home/lzap/forester/cmd/controller
DAP server listening at: 127.0.0.1:41945
Build Error: go build -o /home/lzap/forester/cmd/controller/__debug_bin3829863487 -gcflags all=-N -l .
# forester/internal/config
../../internal/config/config.go:121:37: undefined: Hostname (exit status 1)
When I click on ../../internal/config/config.go:121:37 VSCode is unable to locate this file as it tries to find it two levels above the project directory.
I must be missing something, what is the correct launch configuration for this single Go application setup which is I believe pretty common use case. Thanks.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I have the following launch config:
Now, when I launch it Delve changes directory into cmd/controller and builds
.
and while this works the problem is then when I get compilation error, links are not valid. For example:When I click on
../../internal/config/config.go:121:37
VSCode is unable to locate this file as it tries to find it two levels above the project directory.I must be missing something, what is the correct launch configuration for this single Go application setup which is I believe pretty common use case. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions