project directory:
./
├── Makefile
└── main
├── Makefile
└── main.go
Makefile
build:
make -C main
main/Makefile
build:
go build
main/main.go
package main
func main() {
i := 0
}
when i call :make in ./main/ I get the right quick fix.
1 main.go|4 col 7| i declared and not used
but when i call :make in ./ I get the incorrect quick fix.
1 || make -C main
2 || go build
3 || # _/Users/marco/Astone/git/test/main
4 main.go|10 col 7| i declared and not used
5 || make[1]: *** [build] Error 2
6 || make: *** [build] Error 2
when I press enter in line 4. It will create a new file _/Users/marco/Astone/git/test/main.go not open the right file _/Users/marco/Astone/git/test/main/main.go
It's also happend in linux. and if u call cd .. in Makefile will cause the same problem.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
I've had this problem, too. I found the builtin errorformat can't work properly,I modified errorformat and now it's ok:
set errorformat+=
%D%\a[%\d]:\ Entering\ directory\ %f', \%D%*\\a[%*\\d]:\ Entering\ directory\ '%f', \%D%*\\a:\ Entering\ directory\ %f',
%D%*\a:\ Entering\ directory\ '%f'
Thanks very much. I thinks I got the key.
—
You are receiving this because you commented.