Thanks for your answers, by debugging that function I now found the problem (or well, five of them): context ranges weren't set correctly, i.e. classes and functions randomly ended on the line where they started.<br><br>

<div class="gmail_quote">2010/11/10 Milian Wolff <span dir="ltr"><<a href="mailto:mail@milianw.de">mail@milianw.de</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

David Nolden, 09.11.2010:<br>
<div class="im">> 2010/11/9 Sven Brauch <<a href="mailto:svenbrauch@googlemail.com">svenbrauch@googlemail.com</a>>:<br>
</div><div class="im">> > usebuilder source code:<br>
> > <a href="https://github.com/scummos/kdevelop-python/blob/master/duchain/usebuilder" target="_blank">https://github.com/scummos/kdevelop-python/blob/master/duchain/usebuilder</a><br>
> > .cpp As can be seen in the second image, declarations from the class<br>
> > context are imported into the function. This is not correct for python.<br>
> > I already removed the statement of which I thought would do that, but<br>
> > nothing changed. What to do here? The contextbuilder code:<br>
> > <a href="https://github.com/scummos/kdevelop-python/blob/master/duchain/contextbui" target="_blank">https://github.com/scummos/kdevelop-python/blob/master/duchain/contextbui</a><br>
> > lder.cpp#L213 My UseBuilder.buildUses() calls functions from the<br>
> > contextbuilder. Is that<br>
><br>
> > correct? Looks very strange to me, as this is a seperate build pass. See:<br>
> Unfortunately, all the builders inherit each other (at least in C++),<br>
> which creates a slightly hard to overview code-flow. It should be fine<br>
> for the use-builder to call context-builder functions, as the<br>
> use-builder is run in a second pass, and is 'driven' by the<br>
> context-builder which traverses the AST and duchain hierarchy<br>
> synchronously.<br>
<br>
</div>see also: compilingContexts() in abstract context builder<br>
<font color="#888888">--<br>
Milian Wolff<br>
<a href="mailto:mail@milianw.de">mail@milianw.de</a><br>
<a href="http://milianw.de" target="_blank">http://milianw.de</a><br>
</font><br>--<br>
KDevelop-devel mailing list<br>
<a href="mailto:KDevelop-devel@kdevelop.org">KDevelop-devel@kdevelop.org</a><br>
<a href="https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel" target="_blank">https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel</a><br>
<br></blockquote></div><br>