by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    matrixbot
    @matrixbot
    NobbZ Also @matrixbot is a bridge account, used by thousands of people.
    Omkara
    @0mkara
    Yeah just read your github profile. :thumbsup:
    zenchan
    @zenchan
    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
    V8: 7.8.279.23-electron.0
    OS: Windows_NT x64 6.1.7601
    vscode-go version is 0.13.1
    a-gamer
    @a-gamer
    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 *
    zenchan
    @zenchan
    image.png
    image.png
    Matt S
    @matts80
    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?
    ChocoPowwwa
    @chocopowwwa
    screenshot-2020-04-22-10:00:18.png
    Any of you guys experience dangling error message like that?
    ChocoPowwwa
    @chocopowwwa
    @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
    exp_mb
    @dev8085
    image.png
    build failing ?
    image.png
    varunair
    @varunair
    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
    @pakwah
    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
    dbhojwan
    @dbhojwan
    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.
    himanshusharma-git
    @himanshusharma-git
    hello everyone .... i found a little bug today while playing around with visual code.
    image.png
    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.
    OurBests
    @OurBests
    vscode-go build failing.
    image.png
    Alex Stoica
    @itrack
    Screenshot 2020-04-29 at 05.36.28.png
    Has anyone ever encountered this error on macos?
    OGANICA
    @OGANICA
    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
    @amitauddy
    vscode-go not working at all. :(
    Alex Converse
    @aconverse
    Is there a way to run gofmt on save but still be able to manually invoke goimports via some other command?
    diaton
    @diaton
    @itrack I added write permission to the file and fixed it. "chmod 666 cgo.a"
    Alex Converse
    @aconverse
    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
    @williamhockey_twitter
    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
    @freeo
    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
    @freeo
    nevermind, I've found it. I think the naming is bad though.
    "debugTokenExpression.value"
    Alessandro (Ale) Segala
    @ItalyPaleAle
    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
    Coding Concepts
    @codingconcepts

    Hi all, I've previously been using dlv for debugging but recently (perhaps since upgrading macos to Catalina?) I'm getting the following when attempting to debug applications or tests:

    # runtime/cgo
    ld: unknown option: -platform_version
    clang-10: error: linker command failed with exit code 1 (use -v to see invocation)
    Process exiting with code: 1

    Has anyone else run into this issue and managed to fix it?

    4 replies
    Aaron Small
    @aasmall
    hey folks, I'm stumped in figuring out where gopls gets its environment variables. this is causing a problem when running //go:generate and using a command relies on a plugin that needs to be in $PATH

    I've tried overriding them with

        "go.toolsEnvVars": {
            "PATH": "$HOME/go/bin:$PATH",
        }

    but it doesn't seem to evaluate $PATH, so it overrides all existing

    Aaron Small
    @aasmall
    oh, I figured it out. I launched vscode from a .desktop file. fixed when launching from a terminal with appropriate path set
    ChungHuuLoc
    @ChungHuuLoc
    hi guys, how to fix this Version of Delve is too old for this version of Go
    mine is ver 1.14
    Collin K Cusce
    @collincusce
    I been using vscode + Go for a while. Accidentally installed something called gopls and now all my code imports are showing errors
    how do I just undo whatever the heck I did, vscode prompted and I hit the wrong thing: full disclosure, I have no idea what gopls is and I dont code in Go much anymore, but I did for a stint last year
    Collin K Cusce
    @collincusce
    I think I figured it out, I had to disable languageServer
    jpark-olivawtech
    @jpark-olivawtech
    Hi. My main.go is under cmd subpackage under my project package. So far, I could not figure out how to configure launch.json. Is anyone able to configure launch.json to start debugging session with main.go not under project package level?
    jpark-olivawtech
    @jpark-olivawtech
    I didn’t realize it was as easy as pointing to the file. This worked for me.
    {
        // Use IntelliSense to learn about possible attributes.
        // Hover to view descriptions of existing attributes.
        // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
        "version": "0.2.0",
        "configurations": [
            {
                "name": “Launch Your Go File",
                "type": "go",
                "request": "launch",
                "mode": "debug",
                "program": "${workspaceFolder}/cmd/main.go"
            },
        ]
    }