Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jonny
    @jonnylangefeld
    I'm sorry, maybe that's trivial, but I can't get the go code completion to run. I have installed the extension, it prompted me to install all the tools, it did install all the tools and it said All tools successfully installed. You are ready to Go :).. The setting "go.useLanguageServer": true is set.
    Now if I'm in a go file, I'd expect if I start typing fmt. that I get all the functions in the package recommended. But nothing happens. What am i doing wrong?
    Jonny
    @jonnylangefeld
    I think I found it. I had go 1.14 installed, but the repository I was trying it out with was go 1.13. so the go.mod file always automatically included the go 1.14 line and that didn't work. Once everything is on the same version, it works
    Lawrence Xiao
    @LawrenceXiao5_twitter
    hi, I am trying to Go To Definition on a GO func, but it is not responding after I reset my remote-ssh extension in VS-Code today
    I could still do this yesterday
    burstman
    @burstman
    hello, any one can help me with vs code for go?
    image.png
    i m using ubuntu
    Norbert Melzer
    @NobbZ
    Looks as if you do not have permissions to write to ~/go/pkg or one of its parents.
    burstman
    @burstman
    haw can i let have permission?
    Norbert Melzer
    @NobbZ
    First check the permissions…
    Then you can use regular linux means to adjust them (chmod)
    Norbert Melzer
    @NobbZ
    Whats the permissions on ~/go and ~/go/pkg? (This assumes that holacus is your user)
    burstman
    @burstman
    yes
    matrixbot
    @matrixbot
    @NobbZ:matrix.org So your permissions are "yes"?
    burstman
    @burstman
    ah wait
    burstman
    @burstman
    drwxr-xr-x 3 root root 4096 مارس 9 12:05 /home/holacus/go
    matrixbot
    @matrixbot
    @NobbZ:matrix.org Why is that folder owned by root? chown -rv holacus:holacus ~/go to transfer ownership to your current user.
    burstman
    @burstman
    chown: invalid option -- 'r'
    have i put somthing wrong?
    matrixbot
    @matrixbot
    @NobbZ:matrix.org Oh, it is -R… And you need to sudo ;D
    burstman
    @burstman
    ok
    burstman
    @burstman
    drwxr-xr-x 3 holacus holacus 4096 مارس 9 12:05 /home/holacus/go
    matrixbot
    @matrixbot
    @NobbZ:matrix.org Looks a lot better, now vscode should install properly
    @NobbZ:matrix.org * Looks a lot better, now vscode should install the packages properly
    burstman
    @burstman
    thanks its working all packages are installed successfully . But can you explain me what was the problem at the beginning?
    matrixbot
    @matrixbot
    @NobbZ:matrix.org Your ~/go was owned by root, not sure how that could happen, unless you created it with sudo mkdir or similar
    burstman
    @burstman
    i have installet the go using apt install
    matrixbot
    @matrixbot
    @NobbZ:matrix.org That doesn't do anything in your home folder
    burstman
    @burstman
    ok thanks for help
    matrixbot
    @matrixbot
    @NobbZ:matrix.org At least, assuming that APT is done properly… I would not expect any package manager to create stuff in /home
    burstman
    @burstman
    i understand, and i dont think i have made it my self
    matrixbot
    @matrixbot
    @NobbZ:matrix.org Perhaps something else you did as root unconsciously?
    burstman
    @burstman
    may be
    matrixbot
    @matrixbot
    @NobbZ:matrix.org Don't worry, happens to all of us.
    burstman
    @burstman
    thanks for your answers
    matrixbot
    @matrixbot
    @NobbZ:matrix.org 👍️
    Xavier Thomas
    @sceptre12
    Hey does anyone ever have an issue saving Go "code" and the Go formatter in vscode is taking a long time to do a save
    Andrew Appleton
    @appleton
    Hello folks, I was planning to open an issue asking about semantic highlighting support for Go, and it pointed me here first. Does anyone know if this work is planned? I'd love to see an expanded set of syntax scopes available for Go!
    ecarter202
    @ecarter202
    I'm getting the following error: /usr/local/go/pkg/darwin_amd64/runtime/cgo.a: permission denied
    This is after having removed 1.13 and installing 1.14
    ecarter202
    @ecarter202
    Any idea the solution? I'm thinking there is a better way than just changing the directory / file permissions...
    Pab Akihabara
    @AkihabaraPab_twitter
    hi guys. i want to ask a question. im fairly new to golang and i am studying it. Right now i came across with something weird. i cannot understand it. When i copy elements from one slice to another with the copy function and i assign it to a variable lets say n, if i print out the value of the variable n, it shows how many elements have been copied. How is this possible?
    Zigmas Slusnys
    @slushnys
    Greetings everyone, before creating a bug report I wanted to ask if anyone's experiencing the same or maybe know of an existing bug report where go extension just stops highlighting any code until the VSCode gets reloaded? I'm experiencing this quite often when writing code.
    00sivan
    @00sivan
    Does anyone know how to configure the left panel to NOT open when selecting "run without debugging?" This is only happening with Go.
    Steven Johnson
    @stevenj
    Anyone know how to fix this error:
    Your workspace is misconfigured: go [-e -json -compiled=true -test=true -export=false -deps=true -find=false -- ./]: exit status 1: go: cannot find main module, but found .git/config in /home/steven/Development/privacy-hero/adapter-auth-lambda to create a module there, run: go mod init . Please see https://github.com/golang/tools/blob/master/gopls/doc/troubleshooting.md for more information or file an issue (https://github.com/golang/go/issues/new) if you believe this is a mistake.
    Neo Liang
    @neo-liang-sap
    Hi, i'm on MacOS 10.15.4, after upgrading to VS.Code 1.43.2, Go extension never works for go to definitions or other go to functions in my code, i tried to downgrade to earlier version of Go extension but didn't help, anyone also mets this problem?
    Cristiano Degiorgis
    @crixo
    Hi, I'm using vscode-go extension 0.13.1 w/ VSCode 143.2 on MacOs10.13.6. I have a git repo with multiple folder at root level each of those w/ an independent go application plus other folder w/ infrastructure matters (eg. kind setup, docs...). If I open an instance of VScode against a specific folder everything works fine but if I open a VScode instance agianst the repo root and I'm trying to work on a specific project/folder, autocompletion, navigation, error checking do not work. Is there a way/settings to have same experience I got when I work with a single folder?
    Steven Johnson
    @stevenj
    @crixo I have a similar issue. I think the answer is no. I had just one go project in a subfolder, and i kept getting "Your workspace is misconfigured" errors and nothing worked properly.
    At least in my case, i had to move my main.go and go.mod out of the subdirectory to the root to get it working normally again.