Hello Lex,<div><br></div><div>I very much appreciate your willingness to help.</div><div><br></div><div>I have to apologize for being so blind. I completely ignored what you had</div><div>to remind me of:</div><div><br></div>
<div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
You are aware that closing brackets ([{< only closes unmatched open<br>
brackets so if a matching close is found none will be added?<br>
<br></blockquote><div><br></div><div>The main file I was concerned about, is a 1400 lines script that's part of a set</div><div>of files working together. Their functions being accessed through calls to a WSGI Server.</div>
<div>It's live, in a productive environment serving more than 300.000 calls a day.</div><div><br></div><div>If a function in it would be faulty, than the whole thing wouldn't work. That's what</div><div>I've seen happening and that's what I assumed. Even though not all functions are used</div>
<div>(some are for debugging purposes). I was wrong.</div><div><br></div><div>Here is what I did:</div><div><br></div><div>I was thinking that just part of the script in question wouldn't help.</div><div>If all brackets would be consistent, then it would just work. I tried taking two</div>
<div>functions out of it, pasting them into a new file and saved it. Testing it, as expected, showed</div><div>auto-closing working properly. And then it struck me, I tried it in the first line of the</div><div>original file, in the middle of it and on the last line. On the last line the parenthesis was auto-closed.</div>
<div><br></div><div>So all I have to do now is find the faulty function/line of code in 1400 lines ;-)</div><div><br></div><div>One question though is left: Would an opening bracket in some comment or </div><div>commented out/disabled function cause this for the rest of the file as well?</div>
<div><br></div><div>So far I have narrowed it down to a function. Trying 'base64.b64decode(' prior to the</div><div>def statement does not close it, trying the same right under the last line of this function</div>
<div>prior to the next def statement closes the parenthesis. I'm not sure what this tells me, but . . .</div><div><br></div><div>I guess that's my puzzle to solve.</div><div><br></div><div>Thank you very much for exchanging views with me. </div>
<div><br></div><div>Regards,</div><div>Philipp</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Really need minimal example of non-working file.<br>
<br>
Cheers<br>
<font color="#888888">Lex<br>
</font><div><div></div><div class="h5"><br>
<br>
> But that's something I get along with.<br>
> That and the copy paste behavior is just something I'll get used to. The<br>
> copy/paste is more of an inconvenience<br>
> than the issue with parenthesis.<br>
> Regards,<br>
> Philipp<br>
> On Thu, Jan 27, 2011 at 12:08 AM, Lex Trotman <<a href="mailto:elextr@gmail.com">elextr@gmail.com</a>> wrote:<br>
>><br>
>> On 24 January 2011 00:23, Philipp Kalder <<a href="mailto:pkalder@googlemail.com">pkalder@googlemail.com</a>> wrote:<br>
>> > Hello,<br>
>> > sorry for the delay.<br>
>> > The indentation is not a problem anymore. As I stated in one of my<br>
>> > previous<br>
>> > emails, there<br>
>> > seems to have been a problem with 'detecting from file'. Every<br>
>> > indentation I<br>
>> > do now works<br>
>> > as I want it to.<br>
>> > Only thing that remains is the behavior for parenthesis.  But I guess<br>
>> > I'll<br>
>> > just cope with it.<br>
>> > I can post the filetypes.python, as well as the filetypes.common if you<br>
>> > still like to see them.<br>
>> > As for the code I'm sorry to say that can't post even parts of it. I use<br>
>> > Geany at work and the<br>
>> > code is for our internal systems.<br>
>> > Thanks so far<br>
>> > Phil<br>
>> ><br>
>><br>
>> Hi Phil,<br>
>><br>
>> Sorry your email got lost in the inbox.  I don't quite understand what<br>
>> is happening wrong with the brackets, can you describe it again.<br>
>><br>
>> Cheers<br>
>> Lex<br>
>> _______________________________________________<br>
>> Geany mailing list<br>
>> <a href="mailto:Geany@uvena.de">Geany@uvena.de</a><br>
>> <a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany</a><br>
><br>
><br>
> _______________________________________________<br>
> Geany mailing list<br>
> <a href="mailto:Geany@uvena.de">Geany@uvena.de</a><br>
> <a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany</a><br>
><br>
><br>
_______________________________________________<br>
Geany mailing list<br>
<a href="mailto:Geany@uvena.de">Geany@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany</a><br>
</div></div></blockquote></div><br></div>