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

ENOENT error with xsd files referenced in lib/axlsx/util/constants.rb and repair warning #21

Closed
phongsi opened this issue Jan 30, 2012 · 3 comments

Comments

@phongsi
Copy link

phongsi commented Jan 30, 2012

I'm not sure if this is a bug or if it's just me. I required axlsx in my rails 3 project, and Package::validate method did not work giving me the enoent error saying lib/schema/#{somefile}.xsd was not a file or directory. I went into the gem in .rvm and manually added the absolute dir path to each of these xsd constants. That fixed my error and validate worked.

So I think there is a bug when setting the xsd constants to relative paths.

Also, I'm using Mac excel 2011 and the latest axlsx gem 1.0.15. Everytime I create an xls file, it needs to be repaired. I looked into an earlier bug submission #1 about this. At least for me, the bug is still persisting.

randym pushed a commit that referenced this issue Feb 1, 2012
…ile relative to the package as reported by Phong in #21.

#21
@randym
Copy link
Owner

randym commented Feb 1, 2012

Hi Phong

Thank you very much for your message.
You are quite right that the gem should not assume that the current directory is the gem's directory.
I've made some changes for release in .16

Ill need a bit more time to test the excel repair. Would it be possible to get a copy of an un-repaired xlsx file for testing?

@randym randym closed this as completed Feb 1, 2012
@randym randym reopened this Feb 1, 2012
@randym
Copy link
Owner

randym commented Feb 1, 2012

patched with green specs

@randym randym closed this as completed Feb 1, 2012
@randym
Copy link
Owner

randym commented Feb 17, 2012

Hi Phong

If you have a few minutes, would you please get back to me on excel 2011 repairs? I'd really like to get that sorted out.

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