Giter Site home page Giter Site logo

Errors about csscss HOT 13 CLOSED

zmoazeni avatar zmoazeni commented on June 2, 2024
Errors

from csscss.

Comments (13)

zmoazeni avatar zmoazeni commented on June 2, 2024

Thanks for all the great feedback! I'll try incorporating some of them soon.

from csscss.

beesman avatar beesman commented on June 2, 2024

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:inrequire'
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:inrequire'
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.

zmoazeni avatar zmoazeni commented on June 2, 2024

@beesman Your issue sounds the same as #11

from csscss.

nilsborg avatar nilsborg commented on June 2, 2024

@beesman @zmoazeni I'm getting exactly the same thing..
Mountain Lion, Ruby 1.8.7

from csscss.

zmoazeni avatar zmoazeni commented on June 2, 2024

@nilsborchers Yeah 1.8.7 isn't supported only 1.9.x+

from csscss.

nilsborg avatar nilsborg commented on June 2, 2024

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.

zmoazeni avatar zmoazeni commented on June 2, 2024

@nilsborchers Let's move this conversation to #11. In fact this comment might be helpful to you.

from csscss.

nilsborg avatar nilsborg commented on June 2, 2024

@zmoazeni ahh thx you're right i had to uninstall the 1.8 gem and reinstall with the new gem bin :)
thx! 👏

from csscss.

kevboutin avatar kevboutin commented on June 2, 2024

@nilsborchers How did you uninstall the 1.8 gem after installing 1.9?

from csscss.

zmoazeni avatar zmoazeni commented on June 2, 2024

@kevboutin Can we keep 1.8 vs 1.9 issues in #11? You can tag him in that thread as well.

from csscss.

zmoazeni avatar zmoazeni commented on June 2, 2024

@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.

ahmedelgabri avatar ahmedelgabri commented on June 2, 2024

@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.

zmoazeni avatar zmoazeni commented on June 2, 2024

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)

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.