Dyalog / ride

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

Drag and Drop a workspace #427

Closed aplteam closed 6 years ago

aplteam commented 6 years ago

Describe the issue you are having

I just tried whether dragging a WS onto Ride does work. Apparently it should because Ride presents an error message saying "Drag and drop for workspaces works only for locally started interpreters".

Trouble is that my interpreter does run on my local machine.

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

My command line:

C:\Program Files\Dyalog\Dyalog APL-64 16.0 Unicode\Dyalog.exe MAXWS=256M -Dcw PropertyExposeRoot=1 RIDE_INIT=SERVE:127.0.0.1:4502

How do you reproduce the issue?

Drag and drop a WS onto Ride.

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

IDE:
  Version: 4.1.3321
  Platform: Win32
  Date: 2018-05-27 22:39:34 +0200
  Git commit: 260f7337e44a6302d558cc052403ae657702d76b
  Preferences:{
    "autocompletionDelay":"200",
    "colourScheme":"Kai",
    "colourSchemes":"[{\"name\":\"Kai\",\"theme\":\"dark\",\"styles\":\"asgn=fg:#00ff00 com=fg:b cur=bc:f00,fg:#ffffff dfn2=fg:#00ff00 dfn3=fg:#00ff00 dfn4=fg:#00ff00 dfn5=fg:#00ff00 dfn=fg:a7b diam=fg:#ffff00 err=fg:#ff3e3e,bg:822,bgo:0.5 fn=fg:0f0 idm=fg:#00ffff glb=B,fg:#ffffff kw=fg:#00ff00 lbl=bg:#000000,bgo:0.5 lnum=fg:b94,bg:010,bgo:0 mod=bg:7,bgo:0.5 mtch=fg:0,bg:ff8,bgo:0.75 norm=fg:#00ff00,bg:0,bgo:1 num=fg:#00ff00 op1=fg:#00ff00 op2=fg:#00ff00 sel=bg:#ffffff,bgo:0.5 semi=fg:#00ff00 sqbr=fg:8 srch=bg:b96,bgo:0.75,fg:0 str=fg:dae tc=bg:1,bgo:1 tcpe=bg:2,bgo:1 zld=fg:#00ff00,B scmd=fg:0ff ucmd=fg:f80,B vtip=bg:733,fg:ff0,bgo:1,bc:900 vtt=bc:f80 ca=bg:828282,bgo:1,fg:0f0 cm=bg:0,bgo:1,fg:0f0 cv=bg:f,bgo:1,fg:0 cvv=bg:0,bgo:1,fg:0ff ma=bg:828282,bgo:1,fg:0ff na=bg:828282,bgo:1,fg:f qor=bg:f00,bgo:1,fg:f dfn1=fg:#00ff00\"}]",
    "connectFav":"2",
    "editWins":"{\"width\":1934,\"height\":1067,\"x\":1913,\"y\":0,\"ox\":0,\"oy\":0}",
    "editWinsRememberPos":"1",
    "floating":"1",
    "ime":"0",
    "kbdLocale":"en_GB",
    "keys":"{\"DK\":[\"Ctrl-Delete\"],\"JSC\":[],\"LOG\":[],\"NX\":[\"F3\"],\"RD\":[],\"RP\":[\"Ctrl-R\"],\"SI\":[\"Ctrl-Shift-PauseBreak\"],\"ZMI\":[\"Ctrl-NumPad_Add\"],\"ZMO\":[\"Ctrl-NumPad_Subtract\"],\"ZMR\":[\"Ctrl-NumPad0\"],\"PF3\":[],\"PF12\":[\"F12\"],\"PF36\":[\"Ctrl-F12\"]}",
    "lbar":"0",
    "minimapEnabled":"1",
    "minimapShowSlider":"always",
    "pfkeys":"[\"\",\"\",\"<FT>\",\"<NX>\",\"⎕SE.aplteam.Display \",\"<AO>→⎕LC+1 <ER>\",\"<AO>→⎕LC ⍝<ER>\",\"⍎⎕SE.aplteam.GotoQLC_AndSetStopVector'<ER>\",\"⍎⎕SE.aplteam.GotoQLC_AndDropStop'<ER>\",\"<BH>\",\"⎕THIS<ER>\",\"\",\"<AO><ER>\",\"\",\"\",\"\",\"<DO>\",\"<AO>\",\"\",\"\",\"<LBR>\",\")Reset<ER>\",\"\",\"⎕DMX.(⍪{⍵(⍎⍵)}¨⎕NL-2) ⍝<ER>\",\"]OpenMyAcreProject <ER>\",\"⎕SE.aplteam.StartTotalCommanderOnCurrentDir<ER>\",\"<TT>\",\"<PV>\",\"<GL>\",\"<AC>\",\"<MA>\",\"<BP>\",\"<RD>\",\"<PL>\",\" ⍝TODO⍝\",\"⎕SE.aplteam.RemoveAllStopVectors<ER>\",\"<LOG>\",\"⎕SE.aplteam.snippets.∆List<ER>\",\"⎕SE.FilesAndDirs.PolishCurrentDir <ER>\",\"]ListObjects  <ER>\",\"]Fire<ER>\",\"⎕se.SALTUtils.EditorFix''Start'' ⍝ Establish SALT fix handler\",\"⎕SE.aplteam.CreateAplcore<ER>\",\"]Latest 10 \",\"⎕se.aplteam.FKeys.ShowFunctionKeysInBrowser ⍬ <ER>\",\"⎕SE.aplteam.snippets.∆List<ER>\",\"{{⍵}(#.⎕NS'').(⎕ED⍠('ReadOnly' 1)&{'ed'}ed←⍵)} \",\"]acre.  \",\")CLEAR \"]",
    "renderLineHighlight":"line",
    "selectionHighlight":"1",
    "title":"{PID} {WSID} - {VER}-{BITS}; (Ride {RIDE_VER}) - {HOST}:{PORT}",
    "zoom":"1"
  }

Interpreter:
  Version: 16.0.33112
  Platform: Windows-64
  Edition: Unicode/64
  Date: May 17 2018 at 19:59:41
e9gille commented 6 years ago

I don't know how to tell that you are connecting to a local interpreter in this scenario. Is there a reliable way to check if a given ip is on the local machine?