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

Crash on InstallPackages #223

Open
5jt opened this issue Dec 28, 2024 · 4 comments
Open

Crash on InstallPackages #223

5jt opened this issue Dec 28, 2024 · 4 comments

Comments

@5jt
Copy link

5jt commented Dec 28, 2024

Attempted to add a Tatin dependency to a Cider project. Error appears to have been triggered because I loaded the workspace rather than opening the Cider project in a clear ws.

macOS 15.2 on 2022 M2 MacBook Air with 16GB memory.

Sat Dec 28 11:22:15 2024
      )LOAD /Users/sjt/Projects/dyalog/examples/stat/load
/Users/sjt/Projects/dyalog/examples/stat/load.dws ⍝ saved Sun Nov 10 16:11:56 2024
Linked: # ←→ /Users/sjt/Projects/dyalog/examples/stat
      ⎕LX
⎕SE.Link.Create # '/Users/sjt/Projects/dyalog/examples/stat' ⋄ ⎕SE.Dyalog.Utils.CD '/Users/sjt/Projects/dyalog/examples/stat'
      ]CIDER.ListOpenProjects
┌──────────────┬────┐
│Namespace name│Path│
├──────────────┼────┤
│--------------│----│
└──────────────┴────┘
      ]CIDER.OpenProject /Users/sjt/Projects/dyalog/examples/stat
The current directory is now /Users/sjt/Projects/dyalog/examples/stat
Project successfully opened and established in "#.stat"

Git status report:

 Git status report                                                       
 =================                                                       
 Namespace: #.stat                                                       
 On branch dsl                                                           
 Git branches: dsl, main                                                 
   (use "git add/rm <file>..." to update what will be committed)         
   (use "git restore <file>..." to discard changes in working directory) 
  deleted:    core/README.md                                             
  deleted:    core/RunTests.aplf                                         
  deleted:    core/asc.aplf                                              
  deleted:    core/desc.aplf                                             
  deleted:    core/max.aplf                                              
  deleted:    core/mean.aplf                                             
  deleted:    core/med.aplf                                              
  deleted:    core/min.aplf                                              
  deleted:    core/mode.aplf                                             
  deleted:    core/sd.aplf                                               
  deleted:    core/sqr.aplf                                              
  deleted:    core/sqrt.aplf                                             
  deleted:    core/srt.aplf                                              
  deleted:    core/sum.aplf                                              
  deleted:    core/tests.csv                                             
  deleted:    core/var.aplf                                              
                                                                         
 Untracked files:                                                        
   (use "git add <file>..." to include in what will be committed)        
  APLSource/                                                             
  aplcore                                                                
  cider.config                                                           
  load_crash.dws                                                         
                                                                         
 no changes added to commit (use "git add" and/or "git commit -a")       

Continue in APL

      ]TATIN.InstallPackages [tatin]/davin-Tester /Users/sjt/Projects/dyalog/examples/stat
SYNTAX ERROR
CloseConnections[23] ∘∘∘
                       ∧

Screenshot 2024-12-28 at 11 21 39

Correct procedure appears to require starting with Cider:

Sat Dec 28 11:31:23 2024
      ]CIDER.ListOpenProjects
┌──────────────┬────┐
│Namespace name│Path│
├──────────────┼────┤
│--------------│----│
└──────────────┴────┘
      ]CIDER.OpenProject /Users/sjt/Projects/dyalog/examples/stat
The current directory is now /Users/sjt/Projects/dyalog/examples/stat
Project successfully opened and established in "#.stat"

      ]TATIN.InstallPackages [tatin]/davin-Tester /Users/sjt/Projects/dyalog/examples/stat
┌──────────────────────────────────────────────────────────────────────────────────────┐
│Installed into /Users/sjt/Projects/dyalog/examples/stat:                              │
├──────────────────────────────────────────────────────────────────────────────────────┤
│ davin-Tester-1.1.0                                                                   │
├──────────────────────────────────────────────────────────────────────────────────────┤
│In order to load all dependecies (including newly installed ones) into the WS execute:│
├──────────────────────────────────────────────────────────────────────────────────────┤
│      ]Tatin.LoadDependencies "/Users/sjt/Projects/dyalog/examples/stat"              │
└──────────────────────────────────────────────────────────────────────────────────────┘
      ]CIDER.ListOpenProjects
┌──────────────┬────────────────────────────────────────┐
│Namespace name│Path                                    │
├──────────────┼────────────────────────────────────────┤
│--------------│----                                    │
├──────────────┼────────────────────────────────────────┤
│#.stat        │/Users/sjt/Projects/dyalog/examples/stat│
└──────────────┴────────────────────────────────────────┘
      ]CIDER.ListTatinDependencies
No dependencies found
      ⎕NL 9
stat
      ]Tatin.LoadDependencies "/Users/sjt/Projects/dyalog/examples/stat"
┌─────────────────────────────┐
│Dependencies loaded into #:  │
├─────────────────────────────┤
│ #._tatin.davin_Tester_1_1_0 │
└─────────────────────────────┘
      ]CIDER.ListTatinDependencies
No dependencies found
      ]CIDER.AddTatinDependencies 
* Command Execution Failed: too few arguments
      ]CIDER.AddTatinDependencies davin-Tester /Users/sjt/Projects/dyalog/examples/stat

stat: add dependencies to the folder tatin-dependencies/ (Y/n) Y

Would you like to (re-)load all Tatin dependencies? (Y/n) Y
┌─────────────────────────┐
│1 Tatin dependency added:│
├─────────────────────────┤
│ davin-Tester-1.1.0      │
├─────────────────────────┤
│1 dependency was loaded  │
└─────────────────────────┘
      ]CIDER.ListTatinDependencies
┌───────────────────┬───────────────────┬─────────┬──────────────────┬─┐
│Source             │Package-ID         │Principal│URL               │?│
├───────────────────┼───────────────────┼─────────┼──────────────────┼─┤
│-------------------│-------------------│---------│------------------│ │
├───────────────────┼───────────────────┼─────────┼──────────────────┼─┤
│tatin-dependencies/│ davin-Tester-1.1.0│1        │https://tatin.dev/│ │
└───────────────────┴───────────────────┴─────────┴──────────────────┴─┘
      ⎕NL 9
Tester
_tatin
stat  
@aplteam
Copy link
Owner

aplteam commented Dec 28, 2024

Can you reproduce this? My first guess is that this was a connection hiccup.

@5jt
Copy link
Author

5jt commented Dec 28, 2024

’Fraid so – started by replicating the issue.

@aplteam
Copy link
Owner

aplteam commented Dec 29, 2024

Please send me the workspace.

@5jt
Copy link
Author

5jt commented Dec 29, 2024

Here you go.

load_crash.dws.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants