Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Marcus Svehlak
    @svey
    this was the fix for me in bash config: export GO111MODULE="auto"
    hulb snow
    @hulb
    @svey not work for me on windows 10
    slooker
    @slooker
    So I can't get autoimport to work. And gopls is telling me [Error - 10:31:31 AM] Request textDocument/codeAction failed. Message: no file information for file:///home/slooker/code/work/vibrant/cms/Source/golang/s3-watcher/src/s3-watcher/cmd/slugger/main.go Code: 0. If I add them as folders in my settings.json, (which isn't feasible for a large project), it's telling me Message: no import for "s3-watcher/pkg/logs"
    slooker
    @slooker
    Turning off gopls and uninstalling it seems to fix everything. How do I get vscode to stop telling me to install it, since installing it breaks EVERYTHING?
    Ivan Savčić
    @isavcic
    hello all, i don't know if it has been discussed before or not, but is it possible to have a textmate theme selector for function methods? like in params := mux.Vars(r), mux has no selector and is treated like foreground text
    mSpolsky
    @mSpolsky
    Hi, althought issue Microsoft/vscode-go#926 was closed I cannot debug golang with VSC Insiders
    In WSL
    The debugging seems to be run but then hangs and nothing happen
    Can sb help me with that?
    shanyujie
    @shanyujie
    屏幕快照 2019-07-29 下午11.14.31.png
    Hello everyone,when I install the vscode extension for go and install/update the go tools,the vscode tell me this advice many times.Then i install that and reload the vscode.But this suggestion still exists.How can I solve the problem,thanks for your help
    shanyujie
    @shanyujie
    the function "Add import" doesn't work when I use the go mod to mange my projects.it can find the iris to import.
    shanyujie
    @shanyujie
    @darshan-karia Hei,man,The problem always happened in china,if you live in china,you need to use the vpn or shadowsocks to connect the foreigen network.
    how can i make the vscode-go to use goproxy.io to install/update the golang tools for vscode,The chinese network prevent me to go get some packages for example golang/x/tools,so i need the goproxy.io
    xspeed1989
    @xspeed1989
    vscode-go can not run on remote-ssh?

    emm

    xspeed1989
    @xspeed1989
    @shanyujie shadowsocks + ss-tap
    Issac Trotts
    @ijt
    Hi everyone, can I get some help with something?
    I'm getting a bunch of red underlines on identifiers. When I mouse over them a tooltip appears saying undeclared name.
    I can't jump to definition with these, but when I open the files containing their defs, the red underlines go away and I can jump to definition on their references.
    changyushun
    @changyushun
    hello all, I have a gin project and found that when I debug the project, the breakpoint in the request method (GET, POST) never fire. how do I debug the incoming request in gin project using Visual Code ?
    Mathieu Devos
    @mathieudevos
    On macbook, any clean guide to do a full refresh?
    I've been fighting with gopls for a while now, and modules just are barely working.
    imports not showing up, can't find files in the same folder that run perfect with go build etc
    syedsimanta03
    @syedsimanta03
    OS related question what u prefer for web and app dev- apple Mac os or Linux?
    feffe
    @feffes
    I'm having a problem with recognising types in same package but different file. For example package/file1.go and package/file2.go, file1 contains type Config struct and when referring to that struct in file2.go I get undeclared name in vs code. Still compiles fine though. Any ideas what this could be due to?
    Norbert Melzer
    @NobbZ
    Go mod or regular gopath project? If the former make sure you have the GoLS activated in the configuration, or you will have similar referenc failures about everywhere…
    feffe
    @feffes
    gomod, but reading further it seems to actually be an actual bug with it using the workspace root instead of the local package go.mod for each folder. If I set workspace root as the package directory it works fine. golang/go#32394
    Prasanna K
    @pkwizard
    Hi All, i have problem using Go: Extract to function command. This seems to fail related to scope. Error message - Defaulting to file scope **.go for refactoring (provide an explicit scope to change this). Is there a fix or workaround available?
    slooker
    @slooker
    Has anyone else had issues with VS Code not importing your external packages correctly? I get things like could not import github.com/aws/aws-sdk-go/aws/session (no package data for import path github.com/aws/aws-sdk-go/aws/session) all the time, even though the code compiles just fine.
    It's also not auto importing my packages.
    This is on go v1.12.7, not using gopls
    Norbert Melzer
    @NobbZ
    Go modules? Then use the LS, there should have been a pop up telling you that modules without LS don't work.
    slooker
    @slooker
    I was using the old system, but I've had a lot of problems with gopls too. Let me update it again then I'll likely have anotehr question. :)
    So I'm using gopls now, and I have the same problem. Do I need to change my settings.json?
    Besides the obvious, of checking "Use language server", I mean
    Norbert Melzer
    @NobbZ
    Hmmm… I don't remember… I just clicked "yes, set everything up" in the pop up…
    Don't have my go enabled VScode on this machine though.
    slooker
    @slooker
    Hrm. I didn't have that pop up.
    I just installed gopls, and it told me to hit reload, and I did.
    Norbert Melzer
    @NobbZ
    In my experience, reloading is not enough, especially when you added remote packages, it is sometimes required to restart VSCode.
    Basically everything what would alter go.mod/go.sum does require a restart for me, that the LS is able to catch those changes.
    slooker
    @slooker
    Okay. Let me try restarting. Thanks.
    Nope. Same issue still... could not import github.com/aws/aws-sdk-go/service/translate (no package data for import path github.com/aws/aws-sdk-go/service/translate)LSP
    Should my gopath be my normal gopath in thi s instance, or should it be the current go project directory?
    Norbert Melzer
    @NobbZ
    I don't know.
    slooker
    @slooker
    Oh well. :/ Thanks. I'll keep asking every so often in here I guess. I don't know where else to look for information at this point.
    slooker
    @slooker
    @march1993 I have the same problem.
    Anyone know how to get gopls with VS Code to correctly import and recognize modules? I can't get it to recognize any of the AWS modules, or any of the modules I've defined in my go.mod file.
    slooker
    @slooker
    Anyone? Is there a better place to ask for help when running into issues?