the-carlisle-group / Acre-Desktop

A simple Dyalog APL IDE plugin that introduces "projects" and allows you to keep your source code in Unicode text files.
MIT License
11 stars 1 forks source link

Unfriendly nesting of install message #233

Open abrudz opened 3 years ago

abrudz commented 3 years ago

When installing, the workspace prints a 2 row 1 column matrix of messages, through the code:

⍪'Installed at ' ']open ',∘apo¨path rel

It is quite common to have boxing on, and the display is thus less than optimal:

┌─────────────────────────────────────────────────────────────────────────────────┐
│Installed at "C:/Users/Adam.DYALOG/AppData/Local/Temp/acre14.0/acre14.0/"        │
├─────────────────────────────────────────────────────────────────────────────────┤
│]open "C:/Users/Adam.DYALOG/AppData/Local/Temp/acre14.0/acre14.0/releaseNotes.md"│
└─────────────────────────────────────────────────────────────────────────────────┘

Consider mixing or at least formatting to achieve a nicer output where the second line can be executed without editing:

Installed at "C:/Users/Adam.DYALOG/AppData/Local/Temp/acre14.0/acre14.0/"        
]open "C:/Users/Adam.DYALOG/AppData/Local/Temp/acre14.0/acre14.0/releaseNotes.md"
PhilLast commented 3 years ago

Thanks Adám

Have changed this in dev to

{⎕←⍵}¯'Installed at ' ']open ',∘apo¨path rel

that is the way acre usually and incidentally delivers messages (rather than results) to the session. But in this case it also, usefully, becomes the shy result of the function; surprisingly so because it seems that the last binding is between a dfn and each rather than to assignment.

abrudz commented 3 years ago

Makes sense. Just be careful to use ¨ instead of ¯ ;-)

PhilLast commented 3 years ago

Yup. I need better glasses when working in the kitchen. There again it'd be even better if we had some lighting in here.