Hello again.
I tried your suggestion and made some progress, but haven’t solved the issue.
Using the Terminal, I first tested building a simple .scss file and then tried with my normal files. The build ran normally and produced the .css files correctly. I placed my files is on a folder on my Desktop, so there are no folders with special characters in the file path. In this case, the build works every time, both in Terminal and in Sublime Text 3.
However, when there are special characters in the file path - I changed the folder on my Desktop to “vivó” -, then the build still works correctly in Terminal every time, but in Sublime it works only if the output file does not exist. If it does exist, the build fails.
The command I used was:
sass --update /Users/joaosilva/Desktop/vivó/style.scss:/Users/joaosilva/Desktop/vivó/style.css --stop-on-error --no-cache
The complete error I got on the Sublime console when the build failed was:
/Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/importers/filesystem.rb:87:in index': incompatible character encodings: ASCII-8BIT and US-ASCII (Encoding::CompatibilityError) from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/importers/filesystem.rb:87:in
remove_root’
from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/importers/filesystem.rb:146:in find_real_file' from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/importers/filesystem.rb:32:in
mtime’
from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/plugin/staleness_checker.rb:134:in mtime' from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/plugin/staleness_checker.rb:163:in
block in dependency_updated?’
from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/plugin/staleness_checker.rb:81:in stylesheet_modified_since?' from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/plugin/staleness_checker.rb:69:in
stylesheet_needs_update?’
from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:211:in block in update_stylesheets' from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:209:in
each’
from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/plugin/compiler.rb:209:in update_stylesheets' from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/plugin.rb:82:in
update_stylesheets’
from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/exec/sass_scss.rb:338:in watch_or_update' from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/exec/sass_scss.rb:51:in
process_result’
from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/exec/base.rb:50:in parse' from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/lib/sass/exec/base.rb:18:in
parse!’
from /Users/joaosilva/.rvm/gems/ruby-2.4.1@global/gems/sass-3.7.2/bin/sass:13:in <top (required)>' from /usr/local/bin/sass:23:in
load’
from /usr/local/bin/sass:23:in <main>' from /Users/joaosilva/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in
eval’
from /Users/joaosilva/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `’
[Finished in 0.3s with exit code 1]
[cmd: [‘sass’, ‘–update’, ‘/Users/joaosilva/Desktop/vivó/style.scss:/Users/joaosilva/Desktop/vivó/style.css’, ‘–stop-on-error’, ‘–no-cache’, ‘–trace’]]
[dir: /Users/joaosilva/Desktop/vivó]
[path: /usr/local/bin:/Users/joaosilva/.rvm/gems/ruby-2.4.1/bin:/Users/joaosilva/.rvm/gems/ruby-2.4.1@global/bin:/Users/joaosilva/.rvm/rubies/ruby-2.4.1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/joaosilva/.rvm/bin]
Any ideas about what might be happening and why? I’m really stumped here.
I would like to keep the folders with whatever names they have, regardless of special characters, because I work with different teams of various sizes and that call is not always mine to make. Also, it works fine on Terminal, so it should be solvable, right?
Thank you.