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

Theme Install Fails on Windows due to Permissions Error #46

Closed
vattay opened this issue Feb 23, 2012 · 1 comment
Closed

Theme Install Fails on Windows due to Permissions Error #46

vattay opened this issue Feb 23, 2012 · 1 comment

Comments

@vattay
Copy link
Contributor

vattay commented Feb 23, 2012

OS: Windows 7
Environment: Msys / MinGW

The root problem might actually be a ruby on msys bug but just in case anyone has the same issue I am posting this here for fellow windows hackers.

The rake theme:install task refuses to work for me, when it tries to move "_theme_packages/_tmp" to a named folder, it invariably fails. The exact command is:

mv(tmp_path, new_path)

After much testing it appears that the yaml manifest file of the theme is not being closed after manifest = YAML.load_file(manifest) is called. Thus the "_tmp" directory cannot be deleted.

The workaround is to first open the file using Ruby IO and then use YAML.load(<somefile>)

Pull request will be provided soon.

@plusjade
Copy link
Owner

plusjade commented Mar 1, 2012

@3martini has provided his fix in pull request #40

@plusjade plusjade closed this as completed Mar 1, 2012
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