Git Product home page Git Product logo

coloration's People

Contributors

gavinlaking avatar ku1ik avatar pthrasher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

coloration's Issues

color scheme convertor - vim to jedit

colorscheme guy: ok, you convinced me, i'll put that in my todo list

Just a reminder from our chat. Make it convert from Vim to jEdit.
Also maybe you can make it convert Vim to Komodo Edit.
Heck, convert between them all and everyone on the internet on the
whole planet will come to your site! I will make a donation if you can
do this.

Error on conversion

Hi,

I am trying to convert the Mac Classic theme from TextMate to vim. However I get the following error:

LA-DEV-IM-MM:Themes david$ tm2vim Theme.xml
Ignoring ffi-1.9.25 because its extensions are not built.  Try: gem pristine ffi --version 1.9.25
Ignoring hitimes-1.3.0 because its extensions are not built.  Try: gem pristine hitimes --version 1.3.0
/Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/style.rb:29:in `block in initialize_from_hash': undefined method `caret=' for #<Coloration::Style:0x00007fb1de87aef0> (NoMethodError)
	from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/style.rb:19:in `each'
	from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/style.rb:19:in `initialize_from_hash'
	from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/style.rb:13:in `initialize'
	from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:45:in `new'
	from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:45:in `block in parse_input'
	from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:31:in `each'
	from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:31:in `parse_input'
	from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/converters/abstract_converter.rb:26:in `process'
	from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/lib/coloration/converters/abstract_converter.rb:14:in `process_cmd_line'
	from /Library/Ruby/Gems/2.3.0/gems/coloration-0.4.0/bin/tm2vim:8:in `<top (required)>'
	from /usr/local/bin/tm2vim:22:in `load'
	from /usr/local/bin/tm2vim:22:in `<main>'

Any idea on how I can fix it? Attached is the xml file I'm trying to convert.

Theme.xml.zip

Fails on GitHub.tmtheme

tm2vim ./GitHub.tmTheme
/Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/color-tools-1.3.0/lib/color/rgb.rb:53:in from_html': ArgumentError (ArgumentError) from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/color_rgba.rb:5:infrom_html'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/style.rb:20:in block in initialize_from_hash' from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/style.rb:18:ineach'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/style.rb:18:in initialize_from_hash' from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/style.rb:12:ininitialize'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/readers/textmate_theme_reader.rb:37:in new' from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/readers/textmate_theme_reader.rb:37:inblock in parse_input'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/readers/textmate_theme_reader.rb:23:in each' from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/readers/textmate_theme_reader.rb:23:inparse_input'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/abstract_converter.rb:24:in convert!' from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/lib/coloration/abstract_converter.rb:12:inprocess_cmd_line'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/gems/coloration-0.2.1/bin/tm2vim:5:in <top (required)>' from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/bin/tm2vim:19:inload'
from /Users/rovalent/.rvm/gems/ruby-1.9.2-rc2/bin/tm2vim:19:in `

'

tm2katepart fails at stylus syntax

this file doesn’t get parsed.

/var/lib/gems/1.9.1/gems/coloration-0.3.2/lib/coloration/readers/textmate_theme_reader.rb:19:in `parse_input': undefined method `delete_at' for nil:NilClass (NoMethodError)
        from /var/lib/gems/1.9.1/gems/coloration-0.3.2/lib/coloration/abstract_converter.rb:28:in `convert!'
        from /var/lib/gems/1.9.1/gems/coloration-0.3.2/lib/coloration/abstract_converter.rb:13:in `process_cmd_line'
        from /var/lib/gems/1.9.1/gems/coloration-0.3.2/bin/tm2katepart:5:in `<top (required)>'
        from /usr/local/bin/tm2katepart:19:in `load'
        from /usr/local/bin/tm2katepart:19:in `<main>'

Fails on Brilliance Black

It fails on Brilliance Black. Github master and latest TextMate.

% tm2vim Brilliance\ Black.tmTheme 
/Users/harry/.rvm/gems/ruby-1.9.1-p378/gems/coloration-0.2/lib/coloration/readers/textmate_theme_reader.rb:10:in `gsub': invalid byte sequence in UTF-8 (ArgumentError)
        from /Users/harry/.rvm/gems/ruby-1.9.1-p378/gems/coloration-0.2/lib/coloration/readers/textmate_theme_reader.rb:10:in `parse_input'
        from /Users/harry/.rvm/gems/ruby-1.9.1-p378/gems/coloration-0.2/lib/coloration/abstract_converter.rb:24:in `convert!'
        from /Users/harry/.rvm/gems/ruby-1.9.1-p378/gems/coloration-0.2/lib/coloration/abstract_converter.rb:12:in `process_cmd_line'
        from /Users/harry/.rvm/gems/ruby-1.9.1-p378/gems/coloration-0.2/bin/tm2vim:5:in `<top (required)>'
        from /Users/harry/.rvm/gems/ruby-1.9.1-p378/bin/tm2vim:19:in `load'
        from /Users/harry/.rvm/gems/ruby-1.9.1-p378/bin/tm2vim:19:in `<main>'

Error message on convert.

Hi! I'm trying to convert my TM themes to vim variants and I'm running into the following error :

/Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/color-tools-1.3.0/lib/color/rgb.rb:53:in `from_html': ArgumentError (ArgumentError)
    from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/lib/coloration/color_rgba.rb:5:in `from_html'
    from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/lib/coloration/readers/textmate_theme_reader.rb:22:in `block in parse_input'
    from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/lib/coloration/readers/textmate_theme_reader.rb:21:in `each'
    from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/lib/coloration/readers/textmate_theme_reader.rb:21:in `parse_input'
    from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/lib/coloration/abstract_converter.rb:28:in `convert!'
    from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/lib/coloration/abstract_converter.rb:13:in `process_cmd_line'
    from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/gems/coloration-0.3.2/bin/tm2vim:5:in `<top (required)>'
    from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/bin/tm2vim:19:in `load'
    from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/bin/tm2vim:19:in `<main>'
    from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `eval'
    from /Users/dayle/.rvm/gems/ruby-1.9.3-p374/bin/ruby_noexec_wrapper:14:in `<main>'

Sorry if this is something obvious, I'm not a ruby dev!

Thanks!

Error message on convert

I'm getting an error trying to convert a tmTheme using the latest version of coloration:

duncan@duncan-desktop:~/dev$ tm2vim MadeToCode.tmTheme
/var/lib/gems/1.9.1/gems/color-tools-1.3.0/lib/color/rgb.rb:53:in `from_html': ArgumentError (ArgumentError)
    from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/color_rgba.rb:8:in `from_html'
    from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/style.rb:26:in `block in initialize_from_hash'
    from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/style.rb:18:in `each'
    from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/style.rb:18:in `initialize_from_hash'
    from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/style.rb:12:in `initialize'
    from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/readers/textmate_theme_reader.rb:43:in `new'
    from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/readers/textmate_theme_reader.rb:43:in `block in parse_input'
    from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/readers/textmate_theme_reader.rb:29:in `each'
    from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/readers/textmate_theme_reader.rb:29:in `parse_input'
    from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/abstract_converter.rb:28:in `convert!'
    from /var/lib/gems/1.9.1/gems/coloration-0.3.3/lib/coloration/abstract_converter.rb:13:in `process_cmd_line'
    from /var/lib/gems/1.9.1/gems/coloration-0.3.3/bin/tm2vim:5:in `<top (required)>'
    from /usr/local/bin/tm2vim:23:in `load'
    from /usr/local/bin/tm2vim:23:in `<main>'

The tmTheme file in question can be found here: https://raw.github.com/dflock/MadeToCode/master/MadeToCode.tmTheme

I'm not a ruby dev, so I have no idea how to fix this, sorry!

Error when converting my own tmTheme

Not sure why but I can't seem to convert this theme.

It works correctly on TextMate and SublimeText:

monokay.tmTheme.zip

Traceback (most recent call last):
	14: from /usr/local/bin/tm2jedit:23:in '<main>'
	13: from /usr/local/bin/tm2jedit:23:in 'load'
	12: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/bin/tm2jedit:8:in '<top (required)>'
	11: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/converters/abstract_converter.rb:14:in 'process_cmd_line'
	10: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/converters/abstract_converter.rb:26:in 'process'
	 9: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:31:in 'parse_input'
	 8: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:31:in 'each'
	 7: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:45:in 'block in parse_input'
	 6: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/readers/textmate_theme_reader.rb:45:in 
'new'
	 5: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/style.rb:13:in 'initialize'
	 4: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/style.rb:19:in 'initialize_from_hash'
	 3: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/style.rb:19:in 'each'
	 2: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/style.rb:27:in 'block in initialize_from_hash'
	 1: from /Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/color_rgba.rb:10:in 'from_html'
/Library/Ruby/Gems/2.6.0/gems/coloration-0.4.0/lib/coloration/color/rgb.rb:56:in 'from_html': ArgumentError (ArgumentError)

Error installing coloration: coloration requires Ruby version ~> 1.9.

Environment

Mac OS X 10.10.3

$ uname -a
Darwin Sam.local 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64

Problem

I have a current ruby version installed:

$ ruby -v
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]

But coloration refuses to install:

$ gem install coloration
ERROR:  Error installing coloration:
    coloration requires Ruby version ~> 1.9.

I have checked other gems requiring ruby > 1.9 — they work. Any ideas?

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.