Dyalog / link

Source code for Link – the built-in component that enables the use of text files as the primary storage mechanism for APL source code
https://dyalog.github.io/link
MIT License
19 stars 10 forks source link

Error message when two files define the same object should be improved #169

Closed mkromberg closed 3 years ago

mkromberg commented 3 years ago

The error message is strangely aligned.

      ]link.create # c:\temp\linktest
* Command Execution Failed: ⎕SE.Link.U.UCMD_Run: Files produce clashing APL names: c:/temp/linktest/foo.dyalog  c:/temp/l-
                                                                                                                inktest/g-
                                                                                                                oo.dyalog

Windows v19.0 pre-release with Link 2.1.0-alpha

mkromberg commented 3 years ago

I suggest something like this:

      ]link.create # c:\temp\linktest
* Command Execution Failed: ⎕SE.Link.U.UCMD_Run: Files define the same APL name:
foo: c:/temp/linktest/foo.dyalog  c:/temp/linktest/goo.dyalog
abrudz commented 3 years ago

The user command framework understands the double space as indicating two columns. This will fix itself by ensuring there's only one. Don't do ⍕'abc' 'def' but rather ∊' ',∘⍕¨'abc' 'def'. Maybe even put double quotes around the names, just in case there are confusing spaces in the path.

nicolas-dyalog commented 3 years ago

Fixed in link v2.1-beta1