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

Move ExecuteOnBuild_ in project check up one line. #70

Closed
norberturkiewicz opened this issue Jul 2, 2020 · 1 comment
Closed

Move ExecuteOnBuild_ in project check up one line. #70

norberturkiewicz opened this issue Jul 2, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@norberturkiewicz
Copy link
Contributor

 ExecuteOnBuild_←{
     ⍺←0
     pf←GetProjectFolder ⍺
     c←GetConfigSpace pf
     0=≢pf:1 'Not in a project'
     746::1 ⎕DMX.EM
     m←pf Retrieve ⍵
     f←m.ProjectFolder
     load←{⎕SE.UCMD']acre.OpenProject "',⍵,'" ',⍺,' -track=off -dependencies=off'}
     s←⌽⍎¨(⌽m._ProjectSpace)load¨⌽f
     s.AcreConfig←s.⎕NS m
     _←s∘SetReferences¨s
     p←↑s
     p.AcreConfig.DistFolder←c.DistFolder
     _←CopyUserCommandFile p
     _←p Execute'OnBuild'
     0 'OK'
 }

result is FILE NAME ERROR in GetConfigSpace

                     ∧
      ⎕se.zApps.Dado.Dado.Main.ExecuteOnBuild_''
FILE NAME ERROR: C:/acre.config: Unable to open file ("The system cannot find the file specified.")
ReadConfigFile[5] r←↑⎕NGET ⍵ 1
                     ∧

to

 ExecuteOnBuild_←{
     ⍺←0
     pf←GetProjectFolder ⍺
     0=≢pf:1 'Not in a project'
     c←GetConfigSpace pf
     746::1 ⎕DMX.EM
     m←pf Retrieve ⍵
     f←m.ProjectFolder
     load←{⎕SE.UCMD']acre.OpenProject "',⍵,'" ',⍺,' -track=off -dependencies=off'}
     s←⌽⍎¨(⌽m._ProjectSpace)load¨⌽f
     s.AcreConfig←s.⎕NS m
     _←s∘SetReferences¨s
     p←↑s
     p.AcreConfig.DistFolder←c.DistFolder
     _←CopyUserCommandFile p
     _←p Execute'OnBuild'
     0 'OK'
 }
      ⎕se.zApps.Dado.Dado.Main.ExecuteOnBuild_''
1  Not in a project 

@norberturkiewicz norberturkiewicz added the bug Something isn't working label Jul 2, 2020
norberturkiewicz added a commit that referenced this issue Jul 22, 2020
norberturkiewicz added a commit that referenced this issue Jul 22, 2020
@norberturkiewicz
Copy link
Contributor Author

Fixed

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

1 participant