-
Notifications
You must be signed in to change notification settings - Fork 645
No go files in Microsoft VS Code issue #1481
Comments
Can you run |
These are the results in terminal. C:\Users\varg>go env C:\Users\varg> |
Can you share what's in your Output pane under the Go channel? |
Finished running tool: C:\Go\bin\go.exe build -i -o C:\Users\varg\AppData\Local\Temp\go-code-check . Finished running tool: E:\Users\varg\GoWorks\bin\golint.exe Finished running tool: C:\Go\bin\go.exe vet ./... |
Do you see the same when opening any of the Go projects under your GOPATH? |
Unfortunately, I do not have any project yet. This one supposed to be mine first project but due to problems, I couldn't start yet. |
You will still have the code for all the Go tools you installed as part of the Go extension. |
Finished running tool: E:\Users\varg\GoWorks\bin\golint.exe Finished running tool: C:\Go\bin\go.exe vet ./... Finished running tool: C:\Go\bin\go.exe build -i -o C:\Users\varg\AppData\Local\Temp\go-code-check github.com\ramya-rao-a\go-outline |
the updates that make everything stop working nicely are the most painful .. :( |
@okandas Please elaborate on whats not working for you in a separate issue. This current issue is about the error @burzum0727 Thanks for reporting this issue, I can repro it by opening a new untitled file when no folder is open. I have pushed a fix which should be out in the next update to this extension next week. Until then, please avoid working with untitled files. |
So you mean I can work now with the titled files? Because I do not understand the result from the output that I receive from your github file is an issue or a regular start up. |
Working on titled files was never a problem. The output you shared in #1481 (comment) is the output of the processes that ran build, lint and vet on the file that was opened. Go uses the concept of packages (the folder that contains the Go files). When you work on an untitled file, there is no valid package that can be used for building which caused the issue. |
Thank you for the help Mrs. Rao! |
Just released an update (0.6.74) that has the fix for this issue. |
Hello y'all
I recently downloaded golang and vs code. It's my first attempt to work on this language anyways. I have set the GOPATH and GOROOT correctly. Go extension installed as well and I can see them in my bin file however on problems part I'm receiving this error.
file: 'file:///Untitled-1'
severity: 'Error'
message: 'can't load package: package .: no Go files in C:\Program Files\Microsoft VS Code
'
at: '1,1'
source: ''
code: 'undefined'
What supposes to I do? I have no clue what should I put in vs code section.
The text was updated successfully, but these errors were encountered: