Giter VIP home page Giter VIP logo

Comments (4)

hyangah avatar hyangah commented on August 25, 2024

@JoseFMP Please send a PR to the new repository github.com/golang/vscode-go (https://github.com/microsoft/vscode-go#we-are-moving)

I still need to understand the error message "main.go:4:2: package ****** is not in GOROOT (*******)" - that's a build error so I am not yet sure how changing cwd will help finding the main.go file. But I hope it will become obvious with the PR for fix.

cc @quoctruong @ramya-rao-a

from vscode-go.

quoctruong avatar quoctruong commented on August 25, 2024

@JoseFMP, the cwd property is only used for remote attach scenario (the correct property to use for the normal scenario is program).

from vscode-go.

ramya-rao-a avatar ramya-rao-a commented on August 25, 2024

@quoctruong Actually, cwd is also used in other scenarios. See https://github.com/microsoft/vscode-go/blob/0.14.3/src/debugAdapter/goDebug.ts#L499-L501

But it is used for the wd flag that is passed to delve and not as the folder from where delve should be launched.

@JoseFMP Can you share the scenario where you would want the working directory to be different from the folder corresponding to the package of the file?

from vscode-go.

vscodebot avatar vscodebot commented on August 25, 2024

This issue has been closed automatically because it needs more information and has not had recent activity. Thank you for your contributions.

from vscode-go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.