Hi, I’m having issues with Go’s language server in BBEdit. When I open a simple Go project, that is, a repository with a single module (for instance : https://github.com/eliben/static-server), I get an error saying “This file is within module “Downloads/static-server” which is not included in your workspace…”, and another error about not being able to find a package in GOROOT or GOPATH.
I get this error in the logs: 2023-12-14 12:11:40.325: Server message: 2023/12/14 12:11:40 errors loading workspace: You are outside of a module and outside of $GOPATH/src. If you are using modules, please open your editor to a directory in your module. If you believe this warning is incorrect, please file an issue: https://github.com/golang/go/issues/new. snapshot=3 directory=file:///Users/maximepigeon/ It’s as if BBEdit is not properly communicating my project directory, which should be “/Users/maximepigeon/Download/static-server” to gopls. I’m fairly certain this is not an error with the repository since it works in other editors (VSCode, Sublime, Helix). It also doesn’t work if I move the repository somewhere else. Best, Maxime -- This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "[email protected]" rather than posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit> --- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/f961ccef-e32d-40bf-8851-a38a7d9ecc4en%40googlegroups.com.
