Dyalog / ride

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

Bad behaviour when APL could not be spawned #308

Closed abrudz closed 1 year ago

abrudz commented 6 years ago

Describe the issue you are having

When RIDE fails to spawn an interpreter, the user gets this message box: image Seven seconds later, or when the user presses OK (whichever happens later), the following message box appears: image The second box appears no matter what state RIDE is in, and can therefore be very out of context, thus confusing the user.

The user is given no further explanation as to what happened. A single explanatory message would be much better.

Note: If the interpreter is missing, a proper explanatory message is given: image

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

N/A

How do you reproduce the issue?

Find a dyalog.exe. Right-click > Properties > Compatibility > ☑ Run this program as an administrator Apply Start RIDE (not as Administrator) Select that dyalog.exe START

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

IDE: Version: unknown Platform: Win32 Date: unknown Git commit: unknown Preferences:{ "floatOnTop":"1", "floating":"1", "ime":"0", "indentComments":"1", "kbdLocale":"en_US", "keys":"{\"AC\":[\"Ctrl-,\"],\"AO\":[\"Ctrl-'\"],\"BP\":[\"Ctrl-.\"],\"DO\":[\"Ctrl-;\"],\"FX\":[\"Ctrl-S\"],\"MA\":[\"Ctrl-G\"],\"NEW\":[],\"NX\":[\"Ctrl-N\"],\"PV\":[\"Ctrl-P\"],\"RP\":[\"Ctrl-R\"]}", "lbarOrder":"← +-×÷*⍟⌹○!? |⌈⌊⊥⊤⊣⊢ =≠≤<>≥≡≢ ∨∧⍲⍱ ↑↓⊂⊃⊆⌷⍋⍒ ⍳⍸∊⍷∪∩~ /\⌿⍀ ,⍪⍴⌽⊖⍉ ¨⍨⍣.∘⍤@ ⍞⎕⍠⌸⌺⌶⍎⍕ ⋄⍝→⍵⍺∇⍬& ¯", "menu":"# see below for syntax\n\nDyalog {mac}\n About Dyalog =ABT\n -\n Preferences =PRF\n - \n &Quit =QIT\n&File {!browser}\n New &Session =NEW\n &Connect... =CNC\n - {!mac}\n &Quit =QIT {!mac}\n&Edit\n Undo =UND {!browser}\n Redo =RDO {!browser}\n - {!browser}\n Cut =CT {!browser}\n Copy =CP {!browser}\n Paste =PT {!browser}\n Select All =SA {mac}\n - {!mac&&!browser}\n Preferences =PRF {!mac}\n&View\n Show Language Bar =LBR\n Show Workspace Explorer =WSE\n Show Debug =DBG\n Floating Edit Windows =FLT\n Editors on Top =TOP {!browser}\n Line Wrapping in Session =WRP\n - {!browser}\n Increase Font Size =ZMI {!browser}\n Decrease Font Size =ZMO {!browser}\n Reset Font Size =ZMR {!browser}\n - {!browser}\n Toggle Full Screen {!browser}\n&Window\n Close All Windows =CAW\n&Action\n Edit =ED\n Trace =TC\n Weak Interrupt =WI\n Strong Interrupt =SI\n&Help\n Dyalog Help =http://help.dyalog.com/\n Documentation Centre =http://dyalog.com/documentation.htm\n &Idioms =http://miserver.dyalog.com/Examples/Applications/Idiom_Search.mipage?nowrapper=1\n -\n Dyalog Website =http://dyalog.com/\n MyDyalog =https://my.dyalog.com/\n -\n Dyalog Forum =http://www.dyalog.com/forum\n - {!mac}\n About =ABT {!mac}\n\n# Syntax:\n# &x access key, alt+x\n# =CMD command code; some are special:\n# LBR FLT WRP TOP WSE render as checkboxes\n# =http://example.com/ open a URL\n# {} conditional display, a boolean expression\n# operators: && || ! ( )\n# variables: browser mac win\n# - separator (when alone)\n# # comment\n\n# The =PRF (\"Preferences\") menu item must be present.", "otherExe":"C:\Program Files\Dyalog\Dyalog APL-64 17.0 Unicode\dyalog.exe", "selectedExe":"C:\Program Files (x86)\Dyalog\Dyalog APL 16.0 Classic\dyalog.exe", "squiggleTips":"1", "title":"RIDE {RIDE_VER} - {WSID} {VER}", "zoom":"4" }

Interpreter: Version: unknown Platform: unknown Edition: unknown Date: unknown

abrudz commented 1 year ago

As of 4.5.3807 it now shows image which really is no better. Make it say "Failed to start interpreter" or something similar.