Dyalog / ride

Cross-platform IDE for Dyalog APL
https://dyalog.github.io/ride
MIT License
204 stars 31 forks source link

Workspace Explorer shows expand symbol (+) on empty namespaces #250

Open abrudz opened 6 years ago

abrudz commented 6 years ago

Describe the issue you are having

Workspace Explorer shows expand symbol (+) on empty namespaces

Did you connect to an already running interpreter or start the interpreter from RIDE?

Start an interpreter

How do you reproduce the issue?

View>Show Workspace Explorer image

Paste the contents of Help → About (Shift+F1)

IDE: Version: unknown Platform: Win32 Date: unknown Git commit: unknown Preferences:{ "kbdLocale":"en_US", "lbarOrder":"← +-×÷*⍟⌹○!? |⌈⌊⊥⊤⊣⊢ =≠≤<>≥≡≢ ∨∧⍲⍱ ↑↓⊂⊃⊆⌷⍋⍒ ⍳⍸∊⍷∪∩~ /\⌿⍀ ,⍪⍴⌽⊖⍉ ¨⍨⍣.∘⍤@ ⍞⎕⍠⌸⌺⌶⍎⍕ ⋄⍝→⍵⍺∇& ¯⍬", "otherExe":"C:\Program Files\Dyalog\Dyalog APL-64 17.0 Unicode\dyalog.exe", "selectedExe":"C:\Program Files\Dyalog\Dyalog APL-64 17.0 Unicode\dyalog.exe", "squiggleTips":"1", "title":"{WSID} {VER}", "zoom":"10", "dbg":"1", "wse":"1" }

Interpreter: Version: 17.0.31153 Platform: Windows-64 Edition: Unicode/64 Date: Oct 16 2017 at 10:27:50

e9gille commented 6 years ago

The tree is built as you expand the nodes. Unless we go one level deeper than what you are interested in, we wouldn't know it is empty. The alternative is the protocol is extended to include either a count of children or an empty flag. @jayfoad your view?

e9gille commented 6 years ago

266 and #18 also request more information about the nodes. @johndaintree are any of these requests relatively easy to fulfill with the current handler on the interpreter side?