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 11 forks source link

Confusing error messages when creating folder with space in the name #606

Open mkromberg opened 9 months ago

mkromberg commented 9 months ago

Confusing error messages when 1) creating an empty folder with a space in the name and then renaming it to the right name:

Link Warning: ⎕SE.Link.Notify: created c:/tmp/vikings/APLSource/New folder: invalid name defined by file: c:/tmp/vikings/APLSource/New folder Link Warning: ⎕SE.Link.Notify: renamed c:/tmp/vikings/APLSource/vikings: updating previously linked #.vikings.vikingsnamespace #.vikings.New folder not found. Loading #.vikings.vikings from c:/tmp/vikings/APLSource/vikings

mbaas2 commented 7 months ago

Another weird message is Link Warning: ⎕SE.Link.Notify: : path not in a linked directory

If might be clearer if it the path it refers to was shown - but ofc I wonder why I should care if it's not in a linked directory (hint: there are many of those!😉)

mkromberg commented 7 months ago

The message should be more explicit. I think that it is warning that there appears to be a .NET File System Watcher active for a folder which is not linked, so presumably a leftover from a previous link.