FIXED: V10.60B2: Two Bugs in Code Explorer for python syntax

Post bug reports when testing beta versions here.
Post Reply
HarryH
Posts: 232
Joined: 28 Feb 2015 11:20

FIXED: V10.60B2: Two Bugs in Code Explorer for python syntax

Post by HarryH »

Hello,

There are two Bugs in Code Explorer for python syntax.

1. Docstrings starts with 'class' are recognized as a real class. See line 6 in the attached test file. That line isn't a class definition.
2. Classes or functions inside an if-statement aren't recognized. See line 96 and 99.

Bye,
HarryH!
Attachments
test.zip
(1.36 KiB) Downloaded 475 times
User avatar
Rickard Johansson
Site Admin
Posts: 6625
Joined: 19 Jul 2006 14:29

Re: V10.60B2: Two Bugs in Code Explorer for python syntax

Post by Rickard Johansson »

Fixed in v10.60 beta 3.
HarryH
Posts: 232
Joined: 28 Feb 2015 11:20

Re: FIXED: V10.60B2: Two Bugs in Code Explorer for python sy

Post by HarryH »

Thanks! But there is still something tricky:

1. The function in line 99 (test2) still doesn't appear in the Code explorer.
2. The function in line 94 (test1) is recognizing as a method that belongs to the previous class. But that is wrong! It is an independent function and doesn't belongs to the class (because python language is indentation controlled).
3. When you delete all from line 97 to the end, the function in line 94 (test1) isn't recognized at all. It disappears in the Code explorer.
4. When you delete additionally this function in line 94 (test1), the previous class isn't recognized, too.

I modified the python testfile and attached it again. With it you can test the points above.
Attachments
test.zip
(1.37 KiB) Downloaded 528 times
User avatar
Rickard Johansson
Site Admin
Posts: 6625
Joined: 19 Jul 2006 14:29

Re: FIXED: V10.60B2: Two Bugs in Code Explorer for python sy

Post by Rickard Johansson »

Fixed in final version.
HarryH
Posts: 232
Joined: 28 Feb 2015 11:20

Re: FIXED: V10.60B2: Two Bugs in Code Explorer for python sy

Post by HarryH »

Now all four problems are fixed in Beta 4. Thanks!
But one new is alive: If the cursor is over the class definition the Code Explorer jumps to module section. That's wrong. It should select the class :wink:
User avatar
Rickard Johansson
Site Admin
Posts: 6625
Joined: 19 Jul 2006 14:29

Re: FIXED: V10.60B2: Two Bugs in Code Explorer for python sy

Post by Rickard Johansson »

Seems to work now in v10.60 final.
Post Reply