<p>I see no reason to rush on this. The "looking into files" behavior is a showstopper for really large projects (makes KDevelop unusable), while the other thing is just an annoyance.</p>
<p>There are a few things which we can do:<br>
- Allow looking into the file if it is open in the editor<br>
- Use the duchain to determine the language-support. If the file was ever included somewhere, there will be a TopDUContext for it.</p>
<div class="gmail_quote">Am 15.03.2011 23:16 schrieb "Milian Wolff" <<a href="mailto:mail@milianw.de">mail@milianw.de</a>>:<br type="attribution">> Milian Wolff, 07.03.2011:<br>>> Hey all, esp. David.<br>
>> <br>>> It seems like the extension cache in the LanguageController needs some love<br>>> or get removed. It prevents proper parsing for system includes without<br>>> extensions (e.g. cstddef, ...). I wonder why we didn't spot this sooner...<br>
>> <br>>> <a href="https://bugs.kde.org/show_bug.cgi?id=267877">https://bugs.kde.org/show_bug.cgi?id=267877</a><br>>> <br>>> Imo the only solution to this is: get rid of the code preventing KMimeType<br>
>> to look into the file... If there is no extension, the contents is all we<br>>> have...<br>>> <br>>> I understand you had issues with kdevelop trying to parse data folders or<br>>> something like that in your project. Imo the correct solution would be to<br>
>> somehow ignore these, maybe even just by adding a .kdev_ignore file to the<br>>> data folder. Bonus points for proper UI integration of course.<br>> <br>> *push*<br>> <br>> David - without any response I see no other possibility but to remove that <br>
> code responsible for this bug. Please answer, otherwise I'll push the required <br>> patch on the weekend.<br>> <br>> bye<br>> -- <br>> Milian Wolff<br>> <a href="mailto:mail@milianw.de">mail@milianw.de</a><br>
> <a href="http://milianw.de">http://milianw.de</a><br></div>