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

When a linked folder is removed from disk Link runs into problems #503

Closed aplteam closed 11 months ago

aplteam commented 1 year ago

The moment the folder got deleted Link prints this to the session:

Link Warning: FileSystemWatcher error on linked directory: <path> - Link has been paused. To recover, do:
      ]Link.Refresh #.<namespace-name> -source=dir                                                                                                                            

That's not true:

]Link.Refresh #.BooBoo -source=dir                                                                                                                            
ERRORS ENCOUNTERED: FILE NAME ERROR: <path> Invalid file or directory

SImilarly:

]Cider.CloseProject #.BooBoo
* Command Execution Failed: FILE NAME ERROR: <path> Unable to read directory status

I am not sure what's best here but the current behaviour is certainly not okay.