老师提供的软件不会用啊,koala软件老报错
1、第一次包这个错,百度一下,说是有中文解释在win7下就会报错
F:\wamp\www\toolbar\css\index.scss20:45:49
Error: Invalid GBK character "\xE4"
on line 1 of F:\wamp\www\toolbar\css\index.scss
Use --trace for backtrace.
百度解决方法如下:
解决办法:
1.koala可视化编译工具,
找到安装目录里面sass-3.3.7模块下面的engine.rb文件,例如下面路径:
C:\Program Files (x86)\Koala\rubygems\gems\sass-3.3.7\lib\sass
在这个文件里面engine.rb,添加一行代码
Encoding.default_external = Encoding.find('utf-8')
放在所有的require XXXX 之后即可。
2.命令行工具同理
找到ruby的安装目录,里面也有sass模块,如这个路径:
C:\Ruby\lib\ruby\gems\1.9.1\gems\sass-3.3.14\lib\sass
在这个文件里面engine.rb,添加一行代码(同方法1)
Encoding.default_external = Encoding.find('utf-8')
2、写完后包下面这个错
F:\wamp\www\toolbar\css\index.scss21:07:19
F:/Koala/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': F:/Koala/rubygems/gems/sass-3.4.9/lib/sass/engine.rb:53: syntax error, unexpected tCONSTANT, expecting end-of-input (SyntaxError)
...require 'sass/supports'Encoding.default_external = Encoding....
... ^
from F:/Koala/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from F:/Koala/rubygems/gems/sass-3.4.9/lib/sass.rb:99:in `'
from F:/Koala/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from F:/Koala/ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require'
from F:/Koala/rubygems/gems/sass-3.4.9/bin/sass:6:in `'
from F:/Koala/bin/sass:18:in `load'
from F:/Koala/bin/sass:18:in `
不知道为啥啊,老师能不能考虑一下初学者啦,不想学些基础的知识还因为其他软件的问题纠结那么多啦
@Alex Wang