Compass/Sass writing files with “No Access” permissions for Everyone group on OSX

梦想的初衷 提交于 2019-12-05 19:01:42

Although not a solution, the test for whether Compass, Sass, directory permissions were at fault was to create a new directory entirely outside of the project structure and run the following in the terminal for that project

compass create
compass watch

I then checked whether the css files produced had Read permissions.

In my case, they had the expected Read permissions (Everyone: read) so I concluded that it was something related to the directory permission of the original project. As a fix I recreated the directory structure in another location, copied over the files unrelated to CSS/SASS and then began again with compass create, compass watch to generate the css.

I don't believe this was related to the current Sass issue

Apparently this is a known issue with a Sass utility as of Compass 0.12.4: https://github.com/chriseppstein/compass/issues/1615#issuecomment-38332287

The Sass fixes are present in the most recent version, but I think we're going to have to wait for Compass 0.12.5.

RVM worked as a solution for me.

I was having the same exact problem using the native Ruby install on OS X Mavericks. Like you, I tried the method of creating an independent test compass project outside of the working project directory where I originally encountered this same issue. Compass still generated css files inaccessible to all others.

The solution for me was to install RVM and Ruby v.2.1.1. Then I installed Compass the normal way and didn't even need to do so with sudo.

This is just an uneducated guess but maybe installing and running gems through the native Ruby either just doesn't jive with the non-system user, or version 2.0.0 has permissions issues with Compass 0.12.4.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!