Page 1 of 1

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

Posted: 17 Aug 2015 05:43
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!

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

Posted: 23 Aug 2015 17:54
by Rickard Johansson
Fixed in v10.60 beta 3.

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

Posted: 24 Aug 2015 06:15
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.

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

Posted: 26 Aug 2015 14:45
by Rickard Johansson
Fixed in final version.

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

Posted: 27 Aug 2015 14:11
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:

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

Posted: 31 Aug 2015 13:22
by Rickard Johansson
Seems to work now in v10.60 final.