Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Rakefile does not run on Windows #371

Open
paulodamaso opened this issue Jul 10, 2018 · 3 comments
Open

Rakefile does not run on Windows #371

paulodamaso opened this issue Jul 10, 2018 · 3 comments

Comments

@paulodamaso
Copy link
Contributor

I'm having problems running Rakefile script in Windows:

  • it fails when using temp dirs with`Dir.mktmpdir:
$ rake
rake aborted!
Errno::ENOTEMPTY: Directory not empty @ dir_s_rmdir - C:/git/zerocracy-datum/d20180710-10160-er9dol
C:/git/zerocracy-datum/Rakefile:45:in `block in <top (required)>'
Errno::ENOTEMPTY: Directory not empty @ dir_s_rmdir - C:/git/zerocracy-datum/d20180710-10160-er9dol/xsd
C:/git/zerocracy-datum/Rakefile:45:in `block in <top (required)>'
Errno::ENOTEMPTY: Directory not empty @ dir_s_rmdir - C:/git/zerocracy-datum/d20180710-10160-er9dol/xsd/pm
C:/git/zerocracy-datum/Rakefile:45:in `block in <top (required)>'
Errno::EACCES: Permission denied @ unlink_internal - C:/git/zerocracy-datum/d20180710-10160-er9dol/xsd/pm/claims.xsd
C:/git/zerocracy-datum/Rakefile:45:in `block in <top (required)>'
Errno::ENOENT: No such file or directory @ rb_sysopen - /tmp/x20180710-10160-5i3e0o.xml
C:/git/zerocracy-datum/Rakefile:75:in `write'
C:/git/zerocracy-datum/Rakefile:75:in `block (4 levels) in <top (required)>'
C:/git/zerocracy-datum/Rakefile:70:in `each'
C:/git/zerocracy-datum/Rakefile:70:in `block (3 levels) in <top (required)>'
C:/git/zerocracy-datum/Rakefile:57:in `each'
C:/git/zerocracy-datum/Rakefile:57:in `block (2 levels) in <top (required)>'
C:/git/zerocracy-datum/Rakefile:45:in `block in <top (required)>'
Tasks: TOP => default => xsd
(See full trace by running task with --trace)
Checking XML files for XSD validity...

-it fails when mapping SAXON libs in ~/.m2 directory:

$ rake
Error: Unable to access jarfile ~/.m2/repository/net/sf/saxon/Saxon-HE/9.8.0-8/Saxon-HE-9.8.0-8.jar
rake aborted!
HTML <section> absent in HTML from xml/pm/claims/simple.xml
C:/git/zerocracy-datum/Rakefile:153:in `block (2 levels) in <top (required)>'
C:/git/zerocracy-datum/Rakefile:141:in `each'
C:/git/zerocracy-datum/Rakefile:141:in `block in <top (required)>'
Tasks: TOP => default => xsl
(See full trace by running task with --trace)
Checking XML files for XSD validity...
Checking versions of XSL files...
Checking XML and XSL files...
<?xml version="1.0"?>

-it fails when using /tmp/ directory:

$ rake
Warning
  XTDE0540: Ambiguous rule match for /resumes/resume[1]
Matches both "element(Q{}resume)" on line 62 of file:/C:/git/zerocracy-datum/xsl/pmo/resumes.xsl
and "element(Q{}resume)" on line 30 of file:/C:/git/zerocracy-datum/xsl/pmo/resumes.xsl
rake aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - /tmp/empty20180710-5404-69we4z.xml
C:/git/zerocracy-datum/Rakefile:170:in `write'
C:/git/zerocracy-datum/Rakefile:170:in `block (2 levels) in <top (required)>'
C:/git/zerocracy-datum/Rakefile:168:in `each'
C:/git/zerocracy-datum/Rakefile:168:in `block in <top (required)>'
Tasks: TOP => default => xsltest
(See full trace by running task with --trace)
Checking XML files for XSD validity...
Checking versions of XSL files...
Checking XML and XSL files...
..................................
All 35 XML/XSL files are clean

Running XSL tests...
@0crat
Copy link
Collaborator

0crat commented Jul 10, 2018

@g4s8/z please, pay attention to this issue

@g4s8
Copy link
Contributor

g4s8 commented Jul 10, 2018

@proshin-roman do you want to contribute here?

@g4s8
Copy link
Contributor

g4s8 commented Jul 26, 2018

@0crat in

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

No branches or pull requests

3 participants