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

Setting "text" to "plain" in the configuration can have unpleasant consequences for text files #651

Open aplteam opened 5 months ago

aplteam commented 5 months ago

I had already a text variable History that was saved in a file History.apla.

Recently I added text:plain to the Link configuration file.

In such a case the contents of the file History.apla is correctly established on a variable History in the APL workspace. But because of the new setting, when one changes the variable in the editor, the change is not written back to file by Link.

The reason for this is that Link compiles the filename as History.vec.apla, and then checks whether that file is already on disk. It's not, and because of that Link does not do anything.

That's not what should happen. As a user of Link, of course I expect Link to process this accordingly: