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

Warning after editing a variable in a namespace #485

Closed aplteam closed 7 months ago

aplteam commented 2 years ago

Originally I did this:

      ns←⎕NS''
      ns.config←ReadSomeJsonFrom filename
      ns.⎕ED 'config'

which led to

Link Warning: ⎕SE.Link.OnAfterFix: Not a properly named namespace:  ⎕SE._Cider.Cider.[Namespace]

The strange thing is that I've not seen this warning before today, and I have not updated Link, or anything else for that matter.

Anyway, I changed my code to

      ns←⍎'edit'⎕NS''
      ns.config←ReadSomeJsonFrom filename
      ns.⎕ED 'config'

Now I get this:

Link Warning: ⎕SE.Link.OnAfterFix: Not a properly named namespace:  ⎕SE._Cider.Cider.edit 

??

I am on Link 3.1.1

This is my <02007>

mkromberg commented 2 years ago

The test for whether something is a properly named namespace is that the name can be used to reach the namespace, essentially ⍵≡⍎⍕⍵. What is ⍎⍕'⎕SE._Cider.Cider.edit' ?

aplteam commented 7 months ago

Not reproducible anymore.