Author Topic: Python defs problems  (Read 276 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2509
  • Hero Points: 206
  • Text
Python defs problems
« on: October 27, 2021, 06:46:59 pm »
Defs tool: Show all tags.

#1: gTable appears in defs.
    Place cursor on "Point A" and gTable is highlighted in defs.
    bug: Place cursor on "Point B" and highlight in defs moves to the top

#2: In deep_function,
    bug: table1 doesn't appear in defs.
    bug: If nest1 is removed, then table1 still doesn't show in defs either

#3: table2 and table3 appear nested inside deep_function.
    bug: In "Symbol Properties" table2 is a global variables.
    bug: In "Symbol Properties" table3 is a procedure (and also gTable)

#4: bug: If nest1 is removed, then table2 and table3 do not show in defs

#5: table3 appears in defs.
    Place cursor on "Point C" and table3 is highlighted in defs.
    bug: Place cursor on "Point D" and highlight in defs moves to the top

#6: func2 appears nested inside deep_function - bug: it is not really nested.

#7: value1 and value2 appear as "parameter" in "Symbols" -
    bug: But shouldn't value0 be a parameter inside fun()?

#8: bug: Double clicking on table3 or gTable in "Symbols" results in:
    ---------------------------
    SlickEdit Pro
    ---------------------------
    No symbols found matching ''. 
    ---------------------------
    OK   
    ---------------------------

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6272
  • Hero Points: 484
Re: Python defs problems
« Reply #1 on: October 27, 2021, 08:36:10 pm »
#1,#5 These tables are getting messed up due to bug #7
#2,#3,#4 table1, table2, and table3 ARE NOT supposed appear in the defs tool window unless show statements is on. These are local and not global variables. The nested function is messing this up.
#6 Weird. It's not nested if you turn on show statements.
#7 value0, value1, and value2 ARE NOT supposed appear in the symbols tool window. They are local and not global symbols.
#8 table3 is a local variable. It should not be listed in "Symbols". Not sure why gTable can't be navigated to. Definitely a bug.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6272
  • Hero Points: 484
Re: Python defs problems
« Reply #2 on: October 27, 2021, 09:07:04 pm »
#6 fun2 is not inside deep_function. Collapse deep_function and then this becomes obvious. fun2 has no collapse bitmap so it looks like it's inside.