Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info

    I'm running into a permissions problem that I believe originates from the vscode extension. When I'm NOT using the language server and I save my file, I get the following error:

    go build runtime/cgo: copying /Users/cogburn/Library/Caches/go-build/3d/3dd639289c0a9344f947ca3402af02519ca5404d022f983bf14dc5ee8a31be24-d: open /usr/local/go/pkg/darwin_amd64/runtime/cgo.a: permission denied

    In the output of the Go extension, I see the issue:

    Starting building the current package at /Users/cogburn/src/goprojects/src/hellokube
    /Users/cogburn/src/goprojects/src/hellokube>Finished running tool: /usr/local/go/bin/go build -i -o /var/folders/36/t5tp3n552gj71zsh8949yb6m0000gn/T/vscode-govxb5M4/go-code-check hellokube
    go build runtime/cgo: copying /Users/cogburn/Library/Caches/go-build/3d/3dd639289c0a9344f947ca3402af02519ca5404d022f983bf14dc5ee8a31be24-d: open /usr/local/go/pkg/darwin_amd64/runtime/cgo.a: permission denied

    go build -i will try to install every imported package. This is running into a permission issue trying to update standard library pre-built code, i.e. runtime/cgo because it's not being run with sudo. I don't think the -i parameter is required here.
    How to configure vscode to insert spaces in { [mycode] } ?
    NobbZ Push the space-bar?
    NobbZ Or what exactly do you mean?
    vscode-go autoformats the code. Now I am used to see code in this format { [mycode] } and vscode-go extension is formatting it to {[mycode]}
    I could not find a way to configure this behaviour. If you know, please suggest. @matrixbot
    NobbZ The plugin uses the go formatter, which is not configurable and quasi standard in the go community.
    NobbZ Well, not quasi... As it is part of go, it is standard
    @matrixbot is there any configurable formatter ?
    NobbZ Not that I'm aware of.
    NobbZ Also @matrixbot is a bridge account, used by thousands of people.
    Yeah just read your github profile. :thumbsup:
    vscode-go extension startup false. Can anyone help me?
    Version: 1.44.1 (system setup)
    Commit: a9f8623ec050e5f0b44cc8ce8204a1455884749f
    Date: 2020-04-11T01:48:12.622Z
    Electron: 7.1.11
    Chrome: 78.0.3904.130
    Node.js: 12.8.1
    OS: Windows_NT x64 6.1.7601
    vscode-go version is 0.13.1
    i have install additional vs code in partition d not and start hello.py for first time but whene restart pc and start app again get error GOPATH not found
    not partition c *
    Matt S
    vscode on linux - when i choose Go: Test file I'm not seeing any tests running in the terminal, output, or debug console tab. am i missing a dependency?
    Any of you guys experience dangling error message like that?
    @matts80 I also use vscode on linux, i run the Go: Test FIle and it works fine for me, the output is in the output tab and make sure Go Tests is selected at the dropdown menu
    build failing ?
    Even I've been getting the 'build failing' message along with 2 pop up messages on the bottom right that say 'couldn't start client gopls' and 'unsupported URI scheme: (gopls only supports file URIs)'. I'm new to this and honestly I don't completely understand what this means....could anyone please help me with this. Thanks.
    Ken Xuan
    Somehow the intellisense for the go extension in VSCode has stopped working for me? Not sure what has changed...
    GOPATH set to ~/go and GOROOT set to /usr/local/go
    why am i not able to browse the code
    go to definition is not working
    @neo-liang-sap yes i have the same problem now
    what is the solution.
    hello everyone .... i found a little bug today while playing around with visual code.
    this is the bug... if you didn't save the file and trying to test your code it might give you headache for no reason..... so kindly save your file before running it.
    vscode-go build failing.
    Alex Stoica
    Screenshot 2020-04-29 at 05.36.28.png
    Has anyone ever encountered this error on macos?
    this extension is horrible buggy garbage - I cannot believe that Microsoft would release an extension with this many bugs. VS Code is now so unstable that I'm going to switch entirely to IntelliJ. The people releasing this trash need to be fired.
    Amit Auddy
    vscode-go not working at all. :(
    Alex Converse
    Is there a way to run gofmt on save but still be able to manually invoke goimports via some other command?
    @itrack I added write permission to the file and fixed it. "chmod 666 cgo.a"
    Alex Converse
    To answer my own question, adding a command runner plugin like edonet.vscode-command-runner let me add a goimports command I can invoke manually.
    William Hockey
    I'm having some issues importing a go module - "could not import github.com/stripe/stripe-go/v71 (no package for import github.com/stripe/stripe-go/v71)" - yet there clearly is a go module there - https://github.com/stripe/stripe-go/blob/master/go.mod
    Asa Jay
    Color theme author here. VSCode 1.45 changed something to the text grammar scope of the "Debug Console" without mentioning it in the release notes. Probably this was undesired. I can't find the scope to specifically set the foreground text color of the the "Debug Console" anymore. What's the name of the scope? It certainly isn't listed here: https://code.visualstudio.com/api/references/theme-color
    Asa Jay
    nevermind, I've found it. I think the naming is bad though.
    Alessandro (Ale) Segala
    Hi when using gopls, how can I disable the real-time syntax error highlighting? Without the language server, it would highlight syntax errors on save only. With the language server, it shows syntax errors as I type. I find this very distracting and would like to turn it off and have it on-save only