Comments (13)
Thanks for all the great feedback! I'll try incorporating some of them soon.
from csscss.
Hi Zach,
I get a whole bunch of syntax errors when running this:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require': /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:29: syntax error, unexpected tSYMBEG, expecting kDO or '{' or '(' (SyntaxError) sass_options = {cache:false} ^ /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:45: syntax error, unexpected ':', expecting ')' ...ontents).redundancies(minimum: @minimum, ^ /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:46: syntax error, unexpected ':', expecting '=' ... ignored_properties: @ignored_properties, ^ /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:47: syntax error, unexpected ':', expecting '=' ... ignored_selectors: @ignored_selectors) ^ /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:63: syntax error, unexpected tSYMBEG, expecting kDO or '{' or '(' ...eport(verbose:@verbose, color:true) ^ /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:67: syntax error, unexpected kRESCUE, expecting kEND rescue Parslet::ParseFailed => e ^ /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:67: syntax error, unexpected tASSOC rescue Parslet::ParseFailed => e ^ /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:79: syntax error, unexpected kDO_BLOCK, expecting kEND opts = OptionParser.new do |opts| ^ /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:83: syntax error, unexpected kDO_BLOCK, expecting kEND opts.on("-v", "--[no-]verbose", "Display each rule") do |v| ^ /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:87: syntax error, unexpected kDO_BLOCK, expecting kEND opts.on("--[no-]color", "Colorizes output") do |c| ^ /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:91: syntax error, unexpected kDO_BLOCK, expecting kEND ...many rules. Defaults to 3") do |n| ^ /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:95: syntax error, unexpected kDO_BLOCK, expecting kEND ...ties when finding matches") do |ignored_properties| ^ /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:99: syntax error, unexpected kDO_BLOCK, expecting $end ...tors when finding matches") do |ignored_selectors| ^ from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
require'
from /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss.rb:11
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require' from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
require'
from /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/bin/csscss:3
from /usr/bin/csscss:19:in `load'
from /usr/bin/csscss:19
Any help appreciated - thanks.
from csscss.
@beesman Your issue sounds the same as #11
from csscss.
@beesman @zmoazeni I'm getting exactly the same thing..
Mountain Lion, Ruby 1.8.7
from csscss.
@nilsborchers Yeah 1.8.7 isn't supported only 1.9.x+
from csscss.
hmm ok i updated to 1.9.3 now and am getting similar stuff:
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require': /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:29: syntax error, unexpected tSYMBEG, expecting kDO or '{' or '(' (SyntaxError)
sass_options = {cache:false}
^
/Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:45: syntax error, unexpected ':', expecting ')'
...ontents).redundancies(minimum: @minimum,
^
/Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:46: syntax error, unexpected ':', expecting '='
... ignored_properties: @ignored_properties,
^
/Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:47: syntax error, unexpected ':', expecting '='
... ignored_selectors: @ignored_selectors)
^
/Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:63: syntax error, unexpected tSYMBEG, expecting kDO or '{' or '('
...eport(verbose:@verbose, color:true)
^
/Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:67: syntax error, unexpected kRESCUE, expecting kEND
rescue Parslet::ParseFailed => e
^
/Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:67: syntax error, unexpected tASSOC
rescue Parslet::ParseFailed => e
^
/Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:79: syntax error, unexpected kDO_BLOCK, expecting kEND
opts = OptionParser.new do |opts|
^
/Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:83: syntax error, unexpected kDO_BLOCK, expecting kEND
opts.on("-v", "--[no-]verbose", "Display each rule") do |v|
^
/Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:87: syntax error, unexpected kDO_BLOCK, expecting kEND
opts.on("--[no-]color", "Colorizes output") do |c|
^
/Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:91: syntax error, unexpected kDO_BLOCK, expecting kEND
...many rules. Defaults to 3") do |n|
^
/Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:95: syntax error, unexpected kDO_BLOCK, expecting kEND
...ties when finding matches") do |ignored_properties|
^
/Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss/cli.rb:99: syntax error, unexpected kDO_BLOCK, expecting $end
...tors when finding matches") do |ignored_selectors|
^
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require'
from /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/lib/csscss.rb:11
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in `require'
from /Library/Ruby/Gems/1.8/gems/csscss-1.0.0/bin/csscss:3
from /usr/bin/csscss:23:in `load'
from /usr/bin/csscss:23
from csscss.
@nilsborchers Let's move this conversation to #11. In fact this comment might be helpful to you.
from csscss.
@zmoazeni ahh thx you're right i had to uninstall the 1.8 gem and reinstall with the new gem bin :)
thx! 👏
from csscss.
@nilsborchers How did you uninstall the 1.8 gem after installing 1.9?
from csscss.
@kevboutin Can we keep 1.8 vs 1.9 issues in #11? You can tag him in that thread as well.
from csscss.
@ahmedelgabri Ok a couple fixes just hit master and will be released in the next version (after v1.0.0)
I would prefer if the debug feature is a flag something like --debug or --debug=true instead cause when I wrote this csscss --help it didn't say anything about how can I turn debug on.
This is now --show-parser-errors
Had a problem parsing the css at line: 1, column: 1 ...The problem actually was at line 1964.
This is fixed in master too. I can't be 100% accurate but at least it's closer than the useless "line: 1, column: 1" all the time.
I'm going to close this issue and reopen a different one that is solely about line numbers.
from csscss.
@zmoazeni This is great, Looking forward for the new release.
On Fri, Apr 12, 2013 at 7:52, Zach Moazeni <[email protected]="mailto:[email protected]">> wrote:
@ahmedelgabri Ok a couple fixes just hit master and will be released in the next version (after v1.0.0)
I would prefer if the debug feature is a flag something like --debug or --debug=true instead cause when I wrote this csscss --help it didn't say anything about how can I turn debug on.
This is now --show-parser-errors
Had a problem parsing the css at line: 1, column: 1 ...The problem actually was at line 1964.
This is fixed in master too. I can't be 100% accurate but at least it's closer than the useless "line: 1, column: 1" all the time.
I'm going to close this issue and reopen a different one that is solely about line numbers.
—
Reply to this email directly or view it on GitHub.
from csscss.
All set in v1.1.0.
Sent from my iPhone
On Apr 12, 2013, at 2:15 AM, Ahmed El Gabri [email protected] wrote:
@zmoazeni This is great, Looking forward for the new release.
On Fri, Apr 12, 2013 at 7:52, Zach Moazeni <[email protected]="mailto:[email protected]">> wrote:
@ahmedelgabri Ok a couple fixes just hit master and will be released in the next version (after v1.0.0)I would prefer if the debug feature is a flag something like --debug or --debug=true instead cause when I wrote this csscss --help it didn't say anything about how can I turn debug on.
This is now --show-parser-errors
Had a problem parsing the css at line: 1, column: 1 ...The problem actually was at line 1964.
This is fixed in master too. I can't be 100% accurate but at least it's closer than the useless "line: 1, column: 1" all the time.
I'm going to close this issue and reopen a different one that is solely about line numbers.
—
Reply to this email directly or view it on GitHub.
—
Reply to this email directly or view it on GitHub.
from csscss.
Related Issues (20)
- Terminology HOT 4
- Unable to install HOT 4
- "command not found: csscss" HOT 3
- Include SASS files from the cli HOT 7
- fail on import of Compass plugin HOT 3
- Don't know what to do with "@keyframes" HOT 2
- Line numbers HOT 1
- less @import statements with relative paths fail HOT 1
- undefined method `downcase' HOT 8
- csscss has problems with unicode even when ruby version is 2.0 HOT 1
- Add Gulp extension to community extensions HOT 1
- http://connectionrequired.com/ is down HOT 1
- csscss hanging/giving no output HOT 2
- No check for duplicate selector HOT 1
- Duplicate CSS selectors not returned int result HOT 1
- Multiple Rulesets with exact same Selector HOT 1
- Community extension: csscssbeauty
- Comments/charset declarations are included in selectors
- charset followed by comment with code inside raises error
- Requirement of saas Gem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from csscss.