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

Test1 does not run #1

Open
PaulMansour opened this issue Dec 23, 2019 · 11 comments
Open

Test1 does not run #1

PaulMansour opened this issue Dec 23, 2019 · 11 comments

Comments

@PaulMansour
Copy link
Contributor

VALUE ERROR: Undefined name: WB
Test1[23] wb←##.Main.WB'calendar' 1
                     ∧
                      wb←XL.WB'calendar' 1
VALUE ERROR: Undefined name: WSRelType
WSREL[5] fmt←WSRelType∘{⍺(⍺ ⍵ S'{}s/sheet{}.xml')}
             ∧
@PaulMansour
Copy link
Contributor Author

Morten's recent commit fixes the first error above, but not the second one. WSRelType does not exist.

@mkromberg
Copy link
Collaborator

I have committed a work-around for this problem, the underlying problem is that array source files (.apla) are not being loaded by ]acre.openproject. If the source code is loaded with ]link.create, the examples work.

@PaulMansour
Copy link
Contributor Author

PaulMansour commented Dec 30, 2019 via email

@PaulMansour
Copy link
Contributor Author

Ok, making a little progress. I now get down to Build.Main were the second line of code is:

folder←(0=≢name)⌷name'tempXLSX'

This produces an enclosed, nested vector, not a simple vector, which in turn causes this error:

RANK ERROR: Invalid file or directory name
CreateXLSXDirectory[8] 3 ⎕NDELETE name

@PaulMansour
Copy link
Contributor Author

Ok, once this is fixed, the test runs to completion. However the resulting XL file gives error warnings when I try to open in excel, which attempts a repair. Once that is done there is no data in the spreadsheet.

@PaulMansour
Copy link
Contributor Author

A very simple test also gives same error:

TestSimpleSheet←{
     xl←##.Main.XL
     fn←(739⌶0),'/XL2APLSimpleSheet'
     v←4 3⍴⍳12
     wb←xl.WB fn 1             
     _←wb xl.WSAdd'SheetA' 'B2' ''v  
     _←##.Main.Build.Main wb
     0
 }

@mkromberg
Copy link
Collaborator

OK, my bad - when hard-coding one of those variables I types "workspace" instead of "worksheet". My subsequent test was, ah, insufficient. Should be OK now.

@PaulMansour
Copy link
Contributor Author

  1. My simple test (and Test1) does not run. This error still occurs (for the reason researched and stated above):
RANK ERROR: Invalid file or directory name
CreateXLSXDirectory[8] 3 ⎕NDELETE name
  1. When this error is hacked around, the resulting spreadsheet has data in it (now that the "worksheet" typo is fixed), but still is corrupted somehow. Excel gives a warning error and apparently repairs it on startup.

  2. Test1 does not return a zero or a one or anything at all.

@PaulMansour PaulMansour reopened this Jan 2, 2020
@PaulMansour
Copy link
Contributor Author

Does this error only happen for me on my machine?

RANK ERROR: Invalid file or directory name
CreateXLSXDirectory[8] 3 ⎕NDELETE name

@peterblair1
Copy link

In my test of this, I can write one sheet by assigning wb.Sheets←s1 but not multiple sheets with wb.Sheets←s1 s2 s3. What would cause that?

@PaulMansour
Copy link
Contributor Author

In my test of this, I can write one sheet by assigning wb.Sheets←s1 but not multiple sheets with wb.Sheets←s1 s2 s3. What would cause that?

Unfortunately I am not in a position to answer this -- I have not looked at it in a long time. The original author is not working on it. I intend to substantially review, document and rewrite this project in the coming year.

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

3 participants