go-plus icon indicating copy to clipboard operation
go-plus copied to clipboard

Issues with errors in multiple files

Open hansrodtang opened this issue 12 years ago • 4 comments

I noticed gofmt did not detect an obvious error in my code that is used to detect just fine. Wondering why I went around my files to see if this was the case for all my files, and in all of my files except one it said nothing. When I fixed the error in this file gofmt worked properly again in my original file.

Is there any way to let the user know if there is an error somewhere else in your project directory? Placing markers/colors in the sidebar maybe? Or is something like this not possible with how gofmt works?

hansrodtang avatar May 31 '14 08:05 hansrodtang

Do you have the check syntax on save option enabled? This will do a go build which should catch cross-file errors.

It would be great if you could create a gist reproducing this issue so that I can create a test to ensure this scenario is handled as well as possible.

joefitzgerald avatar May 31 '14 11:05 joefitzgerald

The check syntax option is on.

Trying to create a short simple example that does this, it has happened a couple of times again but I am having a hard time replicating the issue in a short example.

It might be a tool related issue, since syntax errors show up just fine, it is just type errors and errors about unavailable methods and interfaces that go haywire when an unrelated error exists in another file.

Will look into it on my own as well, to see if this is something that can be detected by this plugin. Would help a lot since now I am restricted to going into every single file and clicking save to check which file detects errors and then repeat this until all errors in every file is detected.

Another solution might be to not introduce so many errors, haha, but I am porting a C library and doing a lot of experimenting in different files.

hansrodtang avatar Jun 01 '14 15:06 hansrodtang

Can you please test this again with Atom 0.117.0+ and go-plus 2.0.0+?

joefitzgerald avatar Jul 22 '14 22:07 joefitzgerald

This seems related to #44.

joefitzgerald avatar Jul 25 '14 22:07 joefitzgerald