#131 File Search has a problem

open
nobody
Bug (46)
5
2012-12-06
2011-12-06
Han Joosten
No

In my project, a haskell file is generated at each build. (built-type == custom). This has the effect, that each time I use the file search in eclipse, it complains:
{{{
Problems encountered during text search.
File 'ampersand/src/DatabaseDesign/Ampersand/Basics/BuildInfo_Generated.hs' has been skipped, problem while reading: ('Resource is out of sync with the file system: '/ampersand/src/DatabaseDesign/Ampersand/Basics/BuildInfo_Generated.hs'.').
Resource is out of sync with the file system: '/ampersand/src/DatabaseDesign/Ampersand/Basics/BuildInfo_Generated.hs'.
}}}
This is pretty annoying, for I have to click this (non-)error message away each time I search.

Discussion

  • JP Moresmau
    JP Moresmau
    2012-01-24

    This is normal Eclipse behavior and not specific to EclipseFP. Search usually ignore "derived" resources (unless you check the "consider derived resources" checkbox in the file search dialog), so just right click on your file in Eclipse and in the properties mark it as Derived. This will mean this file is not searched any more, which may not be what you want...