Hey,<div><br></div><div>I checked that one.</div><div>This seems not be true for my 0.20 install.</div><div>I had stuff like this ;-) in doc strings and comments.</div><div><br></div><div>Genay made no difference between doc strings, comments and regular code. As long</div>
<div>as it was there, the auto-close detected the ) in ;-) and left it open.</div><div><br></div><div>Greetings</div><div>Philipp<br><br><div class="gmail_quote">On Sat, Jan 29, 2011 at 8:08 PM, Lex Trotman <span dir="ltr"><<a href="mailto:elextr@gmail.com">elextr@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5">On 30 January 2011 05:53, Philipp Kalder <<a href="mailto:pkalder@googlemail.com">pkalder@googlemail.com</a>> wrote:<br>

> Hello Lex,<br>
> I very much appreciate your willingness to help.<br>
> I have to apologize for being so blind. I completely ignored what you had<br>
> to remind me of:<br>
>><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>
><br>
> The main file I was concerned about, is a 1400 lines script that's part of a<br>
> set<br>
> of files working together. Their functions being accessed through calls to a<br>
> WSGI Server.<br>
> It's live, in a productive environment serving more than 300.000 calls a<br>
> day.<br>
> If a function in it would be faulty, than the whole thing wouldn't work.<br>
> That's what<br>
> I've seen happening and that's what I assumed. Even though not all functions<br>
> are used<br>
> (some are for debugging purposes). I was wrong.<br>
> Here is what I did:<br>
> I was thinking that just part of the script in question wouldn't help.<br>
> If all brackets would be consistent, then it would just work. I tried taking<br>
> two<br>
> functions out of it, pasting them into a new file and saved it. Testing it,<br>
> as expected, showed<br>
> auto-closing working properly. And then it struck me, I tried it in the<br>
> first line of the<br>
> original file, in the middle of it and on the last line. On the last line<br>
> the parenthesis was auto-closed.<br>
> So all I have to do now is find the faulty function/line of code in 1400<br>
> lines ;-)<br>
> One question though is left: Would an opening bracket in some comment or<br>
> commented out/disabled function cause this for the rest of the file as well?<br>
<br>
</div></div>The brackets must have the same styling so as brackets in comments<br>
have different styling they don't count<br>
<br>
Cheers<br>
<font color="#888888">Lex<br>
</font><div><div></div><div class="h5"><br>
> So far I have narrowed it down to a function. Trying 'base64.b64decode('<br>
> prior to the<br>
> def statement does not close it, trying the same right under the last line<br>
> of this function<br>
> prior to the next def statement closes the parenthesis. I'm not sure what<br>
> this tells me, but . . .<br>
> I guess that's my puzzle to solve.<br>
> Thank you very much for exchanging views with me.<br>
> Regards,<br>
> Philipp<br>
><br>
><br>
>><br>
>> Really need minimal example of non-working file.<br>
>><br>
>> Cheers<br>
>> Lex<br>
>><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>><br>
>> >> 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<br>
>> >> > 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<br>
>> >> > 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>
><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>