#go.mod
45 messages · Page 1 of 1 (latest)
what file type does it say it is in the bottom right
how to see that ?
it’s listed as XML
hit that area, then reselect the file association. i’m not 100% sure what it’ll be called off the top of my head but there’s a search bar so you should be able to find it
I wish it was like before, like this:
i understand; was there anything in my suggestion that was unclear?
What should I do?
this
see where it says XML in the bottom right?
yes
ok, so:
have you tried this? what happens?
ok, so typing “go” might be a good start
it’s a search bar
i’m on my phone and can’t find the exact name, but i believe in you 🙂
yes, that's what I did, but how to get back to the start
well it’s not a go file, was there nothing that resembled “go module” in that search bar?
no there's only language go
I know there was this icon, so I tested everything that was close, but it didn't work.
this is what i see when i search
do you have the Go extension installed inside WSL?
ah, I thought you were talking about the languages at bottom right
yes
yes, this is what happens after i click the file association button in the bottom right
when I click on the button on the bottom right I get only this
hmm, you are in restricted mode (see the bottom left), i think that may prevent extensions from running
e.g., the Go extension, which provides Go module support
hmm maybe
I was in restraint mode and had managed to do the thing in the first place.
if you do CTRL+SHIFT+P and type "install", do you see "Go: Install/Update Tools" as an option?
no
ok, then it appears to me that your Go extension is not working
that’s the root issue here
can you show what the extension looks like in the extensions tab?
ok, do you see where it says “This extension has been disabled because the current workspace is not trusted”
ah I see and how to fix it
you can try hitting enable there, but the fundamental solution is to trust the folder and stop running in restricted mode
I'm giving up, I'll see tomorrow with my teacher, thanks for your help.
I think it can be easily resolved if you delete the file, and recreate it by running go mod init piscine
After that, add the package again by running:
go get github.com/01-edu/z01 again
Note that you must be in the right directory when you run this.
The issue was that the file name seems incorrect or there is some white space characters.