Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

]link.status does not show the link if you ⎕CY a workspace saved with active links #685

Closed
dyavc opened this issue Dec 6, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@dyavc
Copy link

dyavc commented Dec 6, 2024

Describe the bug
]link.status does not show the link if you ⎕CY a workspace saved with active links.
However, there is still a connection between the workspace and the files because if you )ed a function and fix it, the file gets changed.

To Reproduce
Steps to reproduce the behaviour:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behaviour
Expect ]link.status and ]link.break -all to work as if you had )load'd the workspace.

Session transcript
)clear
clear ws
]link.create # d:\temp\linktest5
Linked: # ←→ d:\temp\linktest5
0 ⎕save 'd:\tmp\myworkspace.dws'
)off

⍝ Now start a new Dyalog
⎕cy 'd:\tmp\myworkspace.dws'
]link.status
No active links
)fns
RUN2 foo
)ed foo
⍝ any changes I make to foo are reflected in the directory even though ]link.status said there aren't any links.

Desktop (please complete the following information):
]tools.version
Dyalog 19.0.50236 64-bit Unicode, BuildID 38f63899
OS Windows 10 or Windows Server 2016 (10.0.19045) 64-bit
Link 4.0.17
SALT 2.915
UCMD 2.6
.NET .NET Framework 4.8.9282.0
WS 19.0
Tatin 0.112.1
Cider 0.42.2

@dyavc dyavc added the bug Something isn't working label Dec 6, 2024
@dyavc
Copy link
Author

dyavc commented Dec 6, 2024

linktest5.zip
Attached please find a zip file containing my linktest5 directory if you need it.

@dyavc
Copy link
Author

dyavc commented Dec 6, 2024

If I want to break the connection, I can use 5178⌶. But I think I have to do this on every single name.

e.g.

5177⌶⍬
foo # 3 d:/temp/linktest5/foo.aplf 0 13 ae9ed8c1 2024 12 5 14 25 5 958 RUN2 # 3 d:/temp/linktest5/run2.apl
f 0 68 ddf5b543 2024 12 3 17 0 3 463
5178⌶'foo'
1
5178⌶'RUN2'
1
5177⌶⍬

@mkromberg
Copy link
Contributor

Link is designed to support the use of text files as source. It is not designed to work in a mixed mode where some of your source is in workspaces, and some in text files. You can )SAVE a workspace with links and reload it if you need to end and resume a session, but I cannot see us supporting )COPY from workspaces containing links any time soon.

I have logged #686 as a documentation issue to warn about this problem, but am closing this issue now: this is simply not a supported mode of operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants