Author Topic: Find correct file with next_error if multiple files of same name in project  (Read 119 times)

rowbearto

  • Senior Community Member
  • Posts: 747
  • Hero Points: 24
Hi:

My project contains multiple "main.cc" files in different directories.

When building, if there is an build error in one of the main.cc, when I do "next_error", it sometimes shows me a different main.cc.

For example, lets say I have:

dir1/dir2/dir3/main.cc
dirA/dirB/dirC/main.cc

The error message from the compiler says:

dir1/dir2/dir3/main.cc:85:  Error message

When I do "next_error", SE is opening the wrong main.cc, it opens dirA/dirB/dirC/main.cc instead of dir1/dir2/dir3/main.cc

As the compiler error message has the ending directories in it, would it be possible for SE to do some smarter matching and if the compiler gives more path info for an ambiguous file, use this extra path info to choose the correct main.cc ?

Thanks,
Rob