Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    thevzurd
    @thevzurd
    I have two files in my package - main.go and deck.go
    deck.go has some functions and types defined
    When I reference the functions from deck.go in main.go, the lint gives the error "undeclared name:"
    although it is present in the package
    is this an expected behavior ?
    The programs runs without an issue, but this kind of linting giving incorrect indication
    Or can I override this kind of indication by changing something in the settings
    Stas
    @Smolevich

    Hello, I've just switched to use modules and when I try to run a single test by clicking on "debug test" just above the test function (eg Test_MyTest) I get the error "can't load package: package XXX: malformed module path "XXX": missing dot in first path element"

    I can run the test on the command line, though, with:
    go test ./XXX -run Test_MyTest

    Is this a bug in the VS Code Go extension?

    Same problem
    Configuration in launch.json
    {
    "name": "Launch",
    "type": "go",
    "request": "launch",
    "mode": "auto",
    "program": "${workspaceFolder}",
    "env": {
    },
    "envFile": "${workspaceRoot}/.env",
    "args": [],
    "showLog": true
    }
    dlv package was successfully installed

    Marco Fiocco
    @marcofiocco

    Hello, I've just switched to use modules and when I try to run a single test by clicking on "debug test" just above the test function (eg Test_MyTest) I get the error "can't load package: package XXX: malformed module path "XXX": missing dot in first path element"

    I can run the test on the command line, though, with:
    go test ./XXX -run Test_MyTest

    Is this a bug in the VS Code Go extension?

    Same problem
    Configuration in launch.json
    {
    "name": "Launch",
    "type": "go",
    "request": "launch",
    "mode": "auto",
    "program": "${workspaceFolder}",
    "env": {
    },
    "envFile": "${workspaceRoot}/.env",
    "args": [],
    "showLog": true
    }
    dlv package was successfully installed

    If I put go.mod in <workspace> and I click "Debug test" I get:
    $GOPATH/go.mod exists but should not

    That is confusing

    It seems that module mode is not detected
    But it works once I set ""go.useLanguageServer": true"
    mrkkishan
    @mrkkishan
    Hi All, i am using visual studio code and i am getting the following error when i try to debug the program, can you please help?
    could not launch process: fork/exec d:\Work Stuff\GoWork\Practice\codewars\6kyu\Vasya - Clerkdebug_bin: This program is blocked by group policy. For more information, contact your system administrator.
    could not remove d:\Work Stuff\GoWork\Practice\codewars\6kyu\Vasya - Clerk
    debug_bin: remove d:\Work Stuff\GoWork\Practice\codewars\6kyu\Vasya - Clerk__debug_bin: Access is denied.
    Process exiting with code: 1
    mkd
    @monkeydioude
    Hello everyone! Is anyone getting tyrannized by the "Trusted domains" feature and vscode considering package name as URL ?
    Panlichen
    @Panlichen
    It seems VSCODE cannot finding references(Shift+F12) in init() methods, is it a planned feature or is there something wrong with my configuration? THX
    Ronald A Lemuel
    @Rlemuel1992
    Just starting to learn Go and I'm having trouble w/ intellesense. Every time I re-download the Go package it shows the errors on that run, then stops working. Anyone got a fix?
    Erik Yu
    @m1heng
    hi, i just got started with go extension, and when i try to install tools with command go install/update tools, all install were failed. Thus i try to install manully with go get -v github.com/ramya-rao-a/go-outline, i got this unrecognized import path "golang.org/x/tools/go/buildutil" (https fetch: Get https://golang.org/x/tools/go/buildutil?go-get=1: dial tcp 216.239.37.1:443: i/o timeout. I tried https://golang.org/x/tools/go/buildutil in browser and it seems all resources have been moved. So here is the question, how can I install these tools ?
    Erik Yu
    @m1heng
    nvm fixed with proxy
    Ken Bassford
    @KBassford
    Go module (travis-ci.org/Microsoft/vscode-go is failing. Intellisense no longer works for Go code.
    Alexander Eyers-Taylor
    @alexet
    Hi, is there a policy on reporting security issues?
    Cirelli
    @cirelli94
    Hi, anyone knows if there is a way to make code split in multilines when an amount of characters on the same line has been reached?
    May with golint?
    Felix Gagnon-Belanger
    @FelixGagnonB
    Hi Everyone. I am not to go and trying to follow some doc on Unit Testing. I did install the gotest successfully. I Created a dummy function to test the "Go: Generate Unit Tests For Function" but nothing happens... What am I doing wrong? Thank you very much !
    Felix Gagnon-Belanger
    @FelixGagnonB
    I restarted VSCode and it works now. Oh well >.<
    Rafael Gomides
    @RafaelGomides
    Hi everyone!
    My vscode is running in a aws workspace where I need build my projects passing -mod=vendor.
    Thus, lint and imports are not working correctly.
    Is there any configuration that can be done to solve this?
    Saurabh Jain
    @saurabhsuniljain
    I am using this extension to open folders in docker container
    but my Go extension doesn't seem to work for the go files opened in docker extension
    I have used Remote - Containers to open a folder in Docker Container
    but features like godef doesn't seem to work with the go files there
    Is there any workaround ?
    北京智优策
    @zhiyouce
    hello
    tkleczek
    @tkleczek
    Wiki improvement hint: it would be nice if "cwd" launch configuration property was mentioned in https://github.com/Microsoft/vscode-go/wiki/Debugging-Go-code-using-VS-Code
    Also: when I cannot see the content of https://github.com/Microsoft/vscode-go/wiki/Settings-for-Visual-Studio-Code-Go-extension - I get "You do not have permission to update this wiki." error
    Odell Joseph
    @dragonpiper
    Will native tabs come to vscode windows
    4thousand
    @4thousand
    help plz where i ctrl + spac disk run 100 %
    Moritz Stückler
    @pReya
    Hey guys, I'm going crazy over the VS Code Go extension. I can build/install just finde via the Command line (both within VS Code and with external Terminal), but whenever I chose "Build" or "Install" via the VS Code extension the extension says it can't import certain packages. I have the exact same GOPATH set in the plugin as in the console. Any ideas what this might be?
    Moritz Stückler
    @pReya
    Nevermind, this is a problem with CGO and environment variables GOOS=linux
    Mengqi Wu
    @PeterMengQiWu
    Hi, I just found out that debug request 'launch' with mode 'remote' is deprecated. The suggested alternative is the request 'attach' with mode 'remote'. While trying to debug a go binary in a remote container, the breakpoints are not recognized because the source code is not present in the container. How do I go with debugging a binary in a remote container written in go?
    pai
    @gerrywp
    Hello
    anybody here?
    Norbert Melzer
    @NobbZ
    Yes.
    pai
    @gerrywp
    when I using go1.13, the go compiler use module feature to finding packages
    start with debugging(f5). I can run my project/module code, go can using the go.mod file
    then find all packages from %GOPATH%/pkg/mod directory.
    but when I running my code throw Ctrl+F5(start without debugging), go can not found package using go-module feature.
    what's wrong?
    debug:start without debugging .
    alert
    I have already update it to use ${file} instead of ${fileDirname} in launch.json
    would u like to help me?
    Norbert Melzer
    @NobbZ
    I have no clue, I do not use windows and also do not do debugging and build, run, test through the terminal
    pai
    @gerrywp
    ohh,thanks a lot.