Coder Social home page Coder Social logo

Comments (8)

aaronbushnell avatar aaronbushnell commented on June 3, 2024

Got the same deal:

Running cd ; compass watch
Traceback (most recent call last):
  File "./sublime_plugin.py", line 337, in run_
  File "./exec.py", line 146, in run
OSError: [Errno 2] No such file or directory: '/Users/username/Library/Application Support/Sublime Text 2/Packages/Compass'

from sublime-text-compass.

renestalder avatar renestalder commented on June 3, 2024

Hey guys. Sorry for the error. Can you give me some more informations? How did you install it: With Sublime Package Control, GIT Clone or manually?

In case of @aaronbushnell It seems it wasn't installed/extracted in a Folder called Compass. Can you check whether there is a Folder named "Compass" in your Sublime Text 2/Packages/ Folder? When not, is there a Sublime-Text-2-Compass-Build-System Folder?

Please check there is a Folder named Compass. If the Folder is called "Sublime-Text-2-Compass-Build-System", you have to rename it to Compass.

from sublime-text-compass.

halian-vilela avatar halian-vilela commented on June 3, 2024

Hey @Nachtmeister , I have figured this folder issue and tryed to rename it with no sucess at all. Now I'm having a stupid problem where my .sublime-workspace file keeps reappearing no matter what... And every time it reappears the name of the folder in the build system is still Compass Build System and because of this the build system always try to find files in the incorrect location!!

I've installed by Package Control.

Actually, none of my build systems work. I don't know what the heck is that! I've tryied python as well, with no success too...

from sublime-text-compass.

renestalder avatar renestalder commented on June 3, 2024

@lianzinho Sorry for that. I'm going to make some tests with the Package in the Package Control. Maybe something went wrong.

from sublime-text-compass.

halian-vilela avatar halian-vilela commented on June 3, 2024

After renaming the folder and solving the issue with the reappering workspace file, the error message changed.

Traceback (most recent call last):
  File ".\sublime_plugin.py", line 337, in run_
  File ".\exec.py", line 154, in run
  File ".\exec.py", line 45, in __init__
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe1 in position 1081: ordinal not in range(128)

I've even made some tests with a fresh install, and got the same message after that. Maybe it's an issue with Windows and encoding.

I've spotted that the .build file should also cover source.scss, now there is only source.sass listed. Should I open another issue?

from sublime-text-compass.

halian-vilela avatar halian-vilela commented on June 3, 2024

Well, I solved the problem partially.

My builds were not working because of an encoding problem. I found the solution in sublime text forum itself: http://www.sublimetext.com/forum/viewtopic.php?f=3&t=2441&p=11152&hilit=getfilesystemencoding#p11152

The solution was to substitute line 45 of exec.py with this code:

proc_env[k] = os.path.expandvars(v.decode(sys.getfilesystemencoding())).encode(sys.getfilesystemencoding())

Doing this the message disapears and the build systems works!

Unfortunately compass build is still not fully functional to me, but as the problem is fairly different I'll close this issue and open another one.

Consider this solved for the UnicodeDecodeError.

@aaronbushnell , my issue changed through time as I fooled around here trying to solve it. You may change your Package folder to Compass or edit line 3 of Compass.sublime-build to match the original folder name:

 "working_dir": "$packages/Compass Build System",

This solved my first error (which is also yours).

Thanks!

from sublime-text-compass.

renestalder avatar renestalder commented on June 3, 2024

Thanks @lianzinho. It seems that I took a wrong setting for the Control Package which causes that it does not name the folder correctly. I'm sorry for this error. I'm going to fix it. Thanks for your patience.

from sublime-text-compass.

Grawl avatar Grawl commented on June 3, 2024

Editing of 45 line of exec.py doesn't help me with UnicodeEncodeError on ST2b2221. What can I do?

from sublime-text-compass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.