Giter Site home page Giter Site logo

atom-color-highlight's People

Contributors

abe33 avatar rschiang 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

Watchers

 avatar  avatar  avatar  avatar

atom-color-highlight's Issues

less imports

base.less

@black: black;

other.less

import 'base.less';
* {
  color: @black;
}

other.less @black is colored

Issues Installing Atom Color Highlight

Hi,

I'm having issues installing this package in Atom 0.120.0. Could someone please look into this for me? Please let me know if you need any other information.

Thanks.

Installing “[email protected]” failed."

[email protected] install /private/var/folders/xq/rzb3jp_s22v307fsqdsjs8vw0000gn/T/apm-install-dir-114631-35812-12ls4er/node_modules/atom-color-highlight/node_modules/oniguruma
node-gyp rebuild

CC(target) Release/obj.target/oniguruma/deps/onig/regcomp.o
CC(target) Release/obj.target/oniguruma/deps/onig/regenc.o
CC(target) Release/obj.target/oniguruma/deps/onig/regerror.o
CC(target) Release/obj.target/oniguruma/deps/onig/regexec.o
CC(target) Release/obj.target/oniguruma/deps/onig/regext.o
CC(target) Release/obj.target/oniguruma/deps/onig/reggnu.o
CC(target) Release/obj.target/oniguruma/deps/onig/regparse.o
CC(target) Release/obj.target/oniguruma/deps/onig/regposerr.o
CC(target) Release/obj.target/oniguruma/deps/onig/regposix.o
CC(target) Release/obj.target/oniguruma/deps/onig/regsyntax.o
CC(target) Release/obj.target/oniguruma/deps/onig/regtrav.o
CC(target) Release/obj.target/oniguruma/deps/onig/regversion.o
CC(target) Release/obj.target/oniguruma/deps/onig/st.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/ascii.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/big5.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/cp1251.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_jp.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_kr.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_tw.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/gb18030.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_1.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_2.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_3.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_4.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_5.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_6.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_7.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_8.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_9.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_10.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_11.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_13.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_14.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_15.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_16.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8_r.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/mktable.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/sjis.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/unicode.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_be.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_le.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_be.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_le.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf8.o
LIBTOOL-STATIC Release/oniguruma.a
CXX(target) Release/obj.target/onig_scanner/src/onig-cache.o

npm http GET https://registry.npmjs.org/pigments
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/oniguruma
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/oniguruma
npm http 304 https://registry.npmjs.org/pigments
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/css-color-function
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/css-color-function
npm http GET https://registry.npmjs.org/rgb/0.0.1
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/color
npm http GET https://registry.npmjs.org/balanced-match/0.0.0
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/rgb/0.0.1
npm http 304 https://registry.npmjs.org/balanced-match/0.0.0
npm http 304 https://registry.npmjs.org/color
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/color-convert
npm http GET https://registry.npmjs.org/color-string
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings
cc1plus: error: unrecognized command line option "-std=c++11"
cc1plus: error: unrecognized command line option "-stdlib=libc++"
make: *** [Release/obj.target/onig_scanner/src/onig-cache.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Darwin 13.3.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/xq/rzb3jp_s22v307fsqdsjs8vw0000gn/T/apm-install-dir-114631-35812-12ls4er/node_modules/atom-color-highlight/node_modules/oniguruma
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/color-convert
npm http 304 https://registry.npmjs.org/color-string
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.3.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/Users/Commando80/.atom/.apmrc" "install" "/Users/Commando80/.atom/.node-gyp/.atom/.apm/atom-color-highlight/0.19.4/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/xq/rzb3jp_s22v307fsqdsjs8vw0000gn/T/apm-install-dir-114631-35812-12ls4er
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/xq/rzb3jp_s22v307fsqdsjs8vw0000gn/T/apm-install-dir-114631-35812-12ls4er/npm-debug.log
npm ERR! not ok code 0

Colors don't go back to grandparent.

Given the following example, @three: @two; wont be colored

@one: #fff;
@two: @one;
@three: @two;

It seems to think @two isn't a color, when in fact it should be #fff. A "real world" example could be

@brand-primary: #428bca;
@link-color: @color-primary;
@link-hover-color: lighten(@link-color, 10%);

The lighten won't highlight to be the color specified.

Causing crashes on load

See Atom crashes at load.

Basically, I could use this in Atom earlier versions up to 0.125.0, and since 0.126.0 went Chrome 37, this would cause it to be crashing, and if I started with a fresh Atom install, I could install any other package that was compatible with the version I was using (i.e. the latest) but for this package, it would not install.

Installing “[email protected]” failed.

I've symlinked my ~/.atom like so:

lrwxr-xr-x  /Users/pblyth/.atom -> /Users/pblyth/Google Drive/Syncing/Atom/atom

and installing packages there via the Settings View works fine.

Except for atom-color-highlight, which give me the following error, leading me to believe it's failing to properly parse the space in Google Drive?

> [email protected] install /private/var/folders/4f/556sc0215sb4r59bjl0j7hfcjrmmv5/T/apm-install-dir-11459-39931-uoh2zh/node_modules/atom-color-highlight/node_modules/oniguruma
> node-gyp rebuild


npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/oniguruma
npm http GET https://registry.npmjs.org/pigments
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/pigments
npm http 304 https://registry.npmjs.org/oniguruma
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/nan
make: *** No rule to make target `../../../../../../../../../../../../Users/pblyth/Google', needed by `Makefile'.  Stop.
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Darwin 13.2.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/4f/556sc0215sb4r59bjl0j7hfcjrmmv5/T/apm-install-dir-11459-39931-uoh2zh/node_modules/atom-color-highlight/node_modules/oniguruma
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.2.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/Users/pblyth/.atom/.apmrc" "install" "/Users/pblyth/.atom/.node-gyp/.atom/.apm/atom-color-highlight/0.14.1/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/4f/556sc0215sb4r59bjl0j7hfcjrmmv5/T/apm-install-dir-11459-39931-uoh2zh
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/4f/556sc0215sb4r59bjl0j7hfcjrmmv5/T/apm-install-dir-11459-39931-uoh2zh/npm-debug.log
npm ERR! not ok code 0

Variable definitions partially highlighted

Variable definitions gain a color highlight when part of the variable name matches another defined variable.

screen shot 2014-10-15 at 09 12 15

Here, @gray-dark and @gray-light have been matched in the definitions for @gray-darker and @gray-lighter.

Editing a file outside atom instance causes issues when reopening

Steps to reproduce:

  1. open atom with atom .
  2. open styles.less
  3. quit atom
  4. move directory
  5. open atom with atom .
  6. delete parts of styles.less
  7. quit atom again
  8. return to the first directory
  9. reopen atom with atom ., causing styles.less to be opened automatically
  10. Colours are highlighted in the wrong places.

image

Slow startup time

Since kevinsawicki is currently optimizing the startup time of all packages, i noticed that atom-color-highlight currently has the highest startup time (after tree-view).

When i have no Editors open the startup time is ok (under 5ms), but as soon as i have one editor open it jumps up to about 242ms and thats pretty long i think. If i split it in two panes, i get a startup time of 309ms.

The activation time is 50ms.

You think there is some way of optimization possible?

Sass and missing closing parenthesis

When opening a scss or sass file I receive an error:

Uncaught SyntaxError: Missing closing parentheses /home/me/.atom/packages/atom-color-highlight/node_modules/pigments/node_modules/css-color-functi…:168
fn /home/me/.atom/packages/atom-color-highlight/node_modules/pigments/node_modules/css-color-functi…:168
parse /home/me/.atom/packages/atom-color-highlight/node_modules/pigments/node_modules/css-color-functi…:177
convert /home/me/.atom/packages/atom-color-highlight/node_modules/pigments/node_modules/css-color-functi…:27
(anonymous function) /home/me/.atom/packages/atom-color-highlight/node_modules/pigments/lib/color-operations.js:170
module.exports.ColorParsing.parseExpression /home/me/.atom/packages/atom-color-highlight/node_modules/pigments/lib/color-parsing.js:199
Color /home/me/.atom/packages/atom-color-highlight/node_modules/pigments/lib/color-model.js:175
iterator /home/me/.atom/packages/atom-color-highlight/node_modules/pigments/lib/color-parsing.js:105
(anonymous function) /home/me/.atom/packages/atom-color-highlight/node_modules/pigments/lib/color-parsing.js:187
(anonymous function) /home/me/.atom/packages/atom-color-highlight/node_modules/oniguruma/lib/onig-reg-exp.js:45
(anonymous function) /home/me/.atom/packages/atom-color-highlight/node_modules/oniguruma/lib/oniguruma.js:21

And on scss files I also get:

Uncaught Error: spawn ENOENT
ChildProcess._handle.onexit child_process.js:857
(anonymous function) child_process.js:1005

And the color highlighting does not work. Maybe an upstream bug.

Installing “[email protected]” failed.

I've tried installing this on a fresh install of Ubuntu 14.04 64-bit. I've installed 10+ atom packages before this without any errors. My atom version is 0.116.0-262ba6b

> [email protected] install /tmp/apm-install-dir-114620-2856-1pz5ow8/node_modules/atom-color-highlight/node_modules/oniguruma
> node-gyp rebuild

make: Entering directory `/tmp/apm-install-dir-114620-2856-1pz5ow8/node_modules/atom-color-highlight/node_modules/oniguruma/build'
  CC(target) Release/obj.target/oniguruma/deps/onig/regcomp.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regenc.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regerror.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regexec.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regext.o
  CC(target) Release/obj.target/oniguruma/deps/onig/reggnu.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regparse.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regposerr.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regposix.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regsyntax.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regtrav.o
  CC(target) Release/obj.target/oniguruma/deps/onig/regversion.o
  CC(target) Release/obj.target/oniguruma/deps/onig/st.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/ascii.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/big5.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/cp1251.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_jp.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_kr.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_tw.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/gb18030.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_1.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_2.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_3.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_4.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_5.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_6.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_7.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_8.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_9.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_10.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_11.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_13.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_14.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_15.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_16.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8_r.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/mktable.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/sjis.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/unicode.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_be.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_le.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_be.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_le.o
  CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf8.o
  AR(target) Release/obj.target/oniguruma.a
  COPY Release/oniguruma.a
  CXX(target) Release/obj.target/onig_scanner/src/onig-cache.o
make: Leaving directory `/tmp/apm-install-dir-114620-2856-1pz5ow8/node_modules/atom-color-highlight/node_modules/oniguruma/build'

npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/pigments
npm http GET https://registry.npmjs.org/oniguruma
npm http GET https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/pigments
npm http 304 https://registry.npmjs.org/oniguruma
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/css-color-function
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/bindings
npm http GET https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/css-color-function
npm http GET https://registry.npmjs.org/rgb/0.0.1
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/color
npm http GET https://registry.npmjs.org/balanced-match/0.0.0
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings
make: g++: Command not found
make: *** [Release/obj.target/onig_scanner/src/onig-cache.o] Error 127
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/opt/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-32-generic
gyp ERR! command "node" "/opt/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-114620-2856-1pz5ow8/node_modules/atom-color-highlight/node_modules/oniguruma
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/rgb/0.0.1
npm http 304 https://registry.npmjs.org/color
npm http 304 https://registry.npmjs.org/balanced-match/0.0.0
npm http GET https://registry.npmjs.org/color-convert
npm http GET https://registry.npmjs.org/color-string
npm http 304 https://registry.npmjs.org/color-string
npm http 304 https://registry.npmjs.org/color-convert
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.13.0-32-generic
npm ERR! command "/opt/atom/resources/app/apm/node_modules/atom-package-manager/bin/node" "/opt/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/opt/atom/resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/home/serkandurusoy/.atom/.apmrc" "install" "/home/serkandurusoy/.atom/.node-gyp/.atom/.apm/atom-color-highlight/0.18.0/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /tmp/apm-install-dir-114620-2856-1pz5ow8
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /tmp/apm-install-dir-114620-2856-1pz5ow8/npm-debug.log
npm ERR! not ok code 0

Enable to install

It appears there is an install issue with Atom (0.85.0) and Atom Color Highlight (0.9.1). If you need more information please let me know. Thanks! Log below.

Installing “[email protected]” failed.

[email protected] install /private/var/folders/0r/67gk3m5s16vd5wbln6s_f9ww0000gp/T/apm-install-dir-114315-8597-nhinj7/node_modules/atom-color-highlight/node_modules/oniguruma
node-gyp rebuild

npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/oniguruma
npm http 304 https://registry.npmjs.org/oniguruma
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/nan/0.7.0
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/nan/0.7.0
npm http 304 https://registry.npmjs.org/bindings
/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/Users/robertjohnson/.atom/.node-gyp/.atom/.apm/atom-color-highlight/0.9.1/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/0r/67gk3m5s16vd5wbln6s_f9ww0000gp/T/apm-install-dir-114315-8597-nhinj7
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/0r/67gk3m5s16vd5wbln6s_f9ww0000gp/T/apm-install-dir-114315-8597-nhinj7/npm-debug.log
npm ERR! not ok code 0

Atom reports problem with [email protected]

The following packages could not be loaded because they contain native modules that aren't compatible with this version of Atom.

Previous Atom versions shipped with Chrome 31 and Node 0.11.10 but Atom now ships with Chrome 36 and Node 0.11.13.

The packages listed should now ship versions of these native modules that are compatible with Node 0.11.13.

Updates for these packages may already be available that resolve this issue.

If no update is available you may want to notify the package author that their package isn't supported in Atom 0.123.0 because of the Chrome 36 and Node 0.11.13 upgrade.

[email protected]
Error message: Module did not self-register.

html coloring is broken

like I am supposed to know if this is even correct repo to report this. looks like it is, but maybe not. any way:

screen shot 2014-04-02 at 3 39 09 pm

screen shot 2014-04-02 at 3 43 47 pm

also, FYI

[enhacement wish] Color at the end of the line

Would be really nice to have a feature like "color at the end of the line" or even cooler, "color popup".

By "color at the end of the line" I'm referring to this: https://github.com/webBoxio/atom-color. Sadly it doesn't work like your code, and doesn't recognize the colors individually like your extension, but associated to css forms (https://github.com/webBoxio/atom-color/issues/1)... so probably you can add this feature of the little circle in atom-color-highlight instead.

By "color popup" I mean the Abode Brackets feature of showing colors on code. Really cool. :) But clearly more "wish" than other.

Thanks!

Installing “[email protected]” failed.

[email protected] install /private/var/folders/qb/hjrkkrl55wvd6k0rs8x444dhxf272_/T/apm-install-dir-114621-4459-ac2f8e/node_modules/atom-color-highlight/node_modules/oniguruma
node-gyp rebuild

CC(target) Release/obj.target/oniguruma/deps/onig/regcomp.o
CC(target) Release/obj.target/oniguruma/deps/onig/regenc.o
CC(target) Release/obj.target/oniguruma/deps/onig/regerror.o
CC(target) Release/obj.target/oniguruma/deps/onig/regexec.o
CC(target) Release/obj.target/oniguruma/deps/onig/regext.o
CC(target) Release/obj.target/oniguruma/deps/onig/reggnu.o
CC(target) Release/obj.target/oniguruma/deps/onig/regparse.o
CC(target) Release/obj.target/oniguruma/deps/onig/regposerr.o
CC(target) Release/obj.target/oniguruma/deps/onig/regposix.o
CC(target) Release/obj.target/oniguruma/deps/onig/regsyntax.o
CC(target) Release/obj.target/oniguruma/deps/onig/regtrav.o
CC(target) Release/obj.target/oniguruma/deps/onig/regversion.o
CC(target) Release/obj.target/oniguruma/deps/onig/st.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/ascii.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/big5.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/cp1251.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_jp.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_kr.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_tw.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/gb18030.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_1.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_2.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_3.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_4.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_5.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_6.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_7.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_8.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_9.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_10.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_11.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_13.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_14.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_15.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_16.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8_r.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/mktable.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/sjis.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/unicode.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_be.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_le.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_be.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_le.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf8.o
LIBTOOL-STATIC Release/oniguruma.a
CXX(target) Release/obj.target/onig_scanner/src/onig-cache.o
CXX(target) Release/obj.target/onig_scanner/src/onig-result.o
CXX(target) Release/obj.target/onig_scanner/src/onig-reg-exp.o
CXX(target) Release/obj.target/onig_scanner/src/onig-scanner.o
CXX(target) Release/obj.target/onig_scanner/src/onig-scanner-worker.o
CXX(target) Release/obj.target/onig_scanner/src/onig-searcher.o
CXX(target) Release/obj.target/onig_scanner/src/unicode-utils-posix.o
SOLINK_MODULE(target) Release/onig_scanner.node
SOLINK_MODULE(target) Release/onig_scanner.node: Finished
DSYMUTIL(onig_scanner)

npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/pigments
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/oniguruma
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/pigments
npm http 304 https://registry.npmjs.org/oniguruma
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/property-accessors
npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! System Darwin 13.3.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/Users/ahall/.atom/.apmrc" "install" "/Users/ahall/.atom/.node-gyp/.atom/.apm/atom-color-highlight/0.19.2/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/qb/hjrkkrl55wvd6k0rs8x444dhxf272_/T/apm-install-dir-114621-4459-ac2f8e
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ENOGIT
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/css-color-function
npm http 304 https://registry.npmjs.org/css-color-function
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/nan
npm http 304 https://registry.npmjs.org/bindings
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/qb/hjrkkrl55wvd6k0rs8x444dhxf272_/T/apm-install-dir-114621-4459-ac2f8e/npm-debug.log
npm ERR! not ok code 0

Setting to disable coloring within comments

Coloring in the comments

So far I'm loving this but every instance of a color descriptor in a comment (used prior to your plugin) also colors.

Would be nice if we had the option to "disable coloring within comments".

I'm not suggesting removing it outright as I can see where a comment that is colored could be helpful, but having the option could be nice.

Bug upgrading 0.19.3 to 1.0.0

Hi, here is the log :

[email protected] install /private/var/folders/4s/8xq6w22j1zzd_nzyg250z9wh0000gn/T/apm-install-dir-11474-16613-lub765/node_modules/atom-color-highlight/node_modules/oniguruma
node-gyp rebuild

CC(target) Release/obj.target/oniguruma/deps/onig/regcomp.o
CC(target) Release/obj.target/oniguruma/deps/onig/regenc.o
CC(target) Release/obj.target/oniguruma/deps/onig/regerror.o
CC(target) Release/obj.target/oniguruma/deps/onig/regexec.o
CC(target) Release/obj.target/oniguruma/deps/onig/regext.o
CC(target) Release/obj.target/oniguruma/deps/onig/reggnu.o
CC(target) Release/obj.target/oniguruma/deps/onig/regparse.o
CC(target) Release/obj.target/oniguruma/deps/onig/regposerr.o
CC(target) Release/obj.target/oniguruma/deps/onig/regposix.o
CC(target) Release/obj.target/oniguruma/deps/onig/regsyntax.o
CC(target) Release/obj.target/oniguruma/deps/onig/regtrav.o
CC(target) Release/obj.target/oniguruma/deps/onig/regversion.o
CC(target) Release/obj.target/oniguruma/deps/onig/st.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/ascii.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/big5.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/cp1251.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_jp.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_kr.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_tw.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/gb18030.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_1.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_2.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_3.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_4.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_5.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_6.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_7.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_8.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_9.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_10.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_11.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_13.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_14.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_15.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_16.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8_r.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/mktable.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/sjis.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/unicode.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_be.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_le.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_be.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_le.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf8.o
LIBTOOL-STATIC Release/oniguruma.a
CXX(target) Release/obj.target/onig_scanner/src/onig-cache.o
CXX(target) Release/obj.target/onig_scanner/src/onig-result.o
CXX(target) Release/obj.target/onig_scanner/src/onig-reg-exp.o

npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/pigments
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/oniguruma
npm http GET https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/oniguruma
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/pigments
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/css-color-function
npm http GET https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/nan/1.2.0
npm http 304 https://registry.npmjs.org/css-color-function
npm http GET https://registry.npmjs.org/rgb/0.0.1
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/color
npm http GET https://registry.npmjs.org/balanced-match/0.0.0
npm http 304 https://registry.npmjs.org/nan/1.2.0
In file included from ../src/onig-reg-exp.cc:1:
../node_modules/nan/nan.h:342:74: error: too many arguments to function call, expected at most 3, have 4
return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
~~~~~~~~~~~~~~~~~~ ^~~~
/Users/razy/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:3550:3: note: 'New' declared here
static Local New(Handle receiver =
^
In file included from ../src/onig-reg-exp.cc:1:
../node_modules/nan/nan.h:370:27: error: cannot initialize a parameter of type 'int' with an rvalue of type 'v8::Isolate *'
return v8::Array::New(v8::Isolate::GetCurrent());
^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/razy/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2307:31: note: passing argument to parameter 'length' here
static Local New(int length = 0);
^
In file included from ../src/onig-reg-exp.cc:1:
../node_modules/nan/nan.h:375:54: error: too many arguments to function call, expected at most single argument 'length', have 2 arguments
return v8::Array::New(v8::Isolate::GetCurrent(), length);
~~~~~~~~~~~~~~ ^~~~~~
/Users/razy/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2307:3: note: 'New' declared here
static Local New(int length = 0);
^
In file included from ../src/onig-reg-exp.cc:1:
../node_modules/nan/nan.h:380:53: error: too many arguments to function call, expected single argument 'time', have 2 arguments
return v8::Date::New(v8::Isolate::GetCurrent(), time).Asv8::Date();
~~~~~~~~~~~~~ ^~~~
/Users/razy/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2831:3: note: 'New' declared here
static Local New(double time);
^
In file included from ../src/onig-reg-exp.cc:1:
../node_modules/nan/nan.h:380:70: error: expected '(' for function-style cast or type construction
return v8::Date::New(v8::Isolate::GetCurrent(), time).Asv8::Date();
~~~~~~~~^
../node_modules/nan/nan.h:380:72: error: expected expression
return v8::Date::New(v8::Isolate::GetCurrent(), time).Asv8::Date();
^
../node_modules/nan/nan.h:385:53: error: too many arguments to function call, expected single argument 'time', have 2 arguments
return v8::Date::New(v8::Isolate::GetCurrent(), time).Asv8::Date();
~~~~~~~~~~~~~ ^~~~
/Users/razy/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2831:3: note: 'New' declared here
static Local New(double time);
^
In file included from ../src/onig-reg-exp.cc:1:
../node_modules/nan/nan.h:385:70: error: expected '(' for function-style cast or type construction
return v8::Date::New(v8::Isolate::GetCurrent(), time).Asv8::Date();
~~~~~~~~^
../node_modules/nan/nan.h:385:72: error: expected expression
return v8::Date::New(v8::Isolate::GetCurrent(), time).Asv8::Date();
^
../node_modules/nan/nan.h:388:15: error: no type named 'UnboundScript' in namespace 'v8'
typedef v8::UnboundScript NanUnboundScript;
~~~~^

../node_modules/nan/nan.h:396:9: error: no member named 'ScriptCompiler' in namespace 'v8'
v8::ScriptCompiler::Source source(s, origin);
~~~~^
../node_modules/nan/nan.h:397:16: error: no member named 'ScriptCompiler' in namespace 'v8'
return v8::ScriptCompiler::CompileUnbound(
~~~~^
../node_modules/nan/nan.h:398:37: error: use of undeclared identifier 'source'; did you mean 'v8::Extension::source'?
v8::Isolate::GetCurrent(), &source);
^~~~~~
v8::Extension::source
/Users/razy/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:3677:46: note: 'v8::Extension::source' declared here
const String::ExternalAsciiStringResource* source() const {
^
In file included from ../src/onig-reg-exp.cc:1:
../node_modules/nan/nan.h:398:36: error: must explicitly qualify name of member function when taking its address
v8::Isolate::GetCurrent(), &source);
^~~~~~~
Extension::
../node_modules/nan/nan.h:405:9: error: no member named 'ScriptCompiler' in namespace 'v8'
v8::ScriptCompiler::Source source(s);
~~~~^
../node_modules/nan/nan.h:406:16: error: no member named 'ScriptCompiler' in namespace 'v8'
return v8::ScriptCompiler::CompileUnbound(
~~~~^
../node_modules/nan/nan.h:407:37: error: use of undeclared identifier 'source'; did you mean 'v8::Extension::source'?
v8::Isolate::GetCurrent(), &source);
^~~~~~
v8::Extension::source
/Users/razy/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:3677:46: note: 'v8::Extension::source' declared here
const String::ExternalAsciiStringResource* source() const {
^
In file included from ../src/onig-reg-exp.cc:1:
../node_modules/nan/nan.h:407:36: error: must explicitly qualify name of member function when taking its address
v8::Isolate::GetCurrent(), &source);
^~~~~~~
Extension::
../node_modules/nan/nan.h:432:36: error: too many arguments to function call, expected single argument 'value', have 2 arguments
v8::Isolate::GetCurrent(), val).Asv8::NumberObject();
^~~
/Users/razy/.atom/.node-gyp/.node-gyp/0.11.10/deps/v8/include/v8.h:2869:3: note: 'New' declared here
static Local New(double value);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/onig_scanner/src/onig-reg-exp.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Darwin 14.0.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/4s/8xq6w22j1zzd_nzyg250z9wh0000gn/T/apm-install-dir-11474-16613-lub765/node_modules/atom-color-highlight/node_modules/oniguruma
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/rgb/0.0.1
npm http 304 https://registry.npmjs.org/color
npm http 304 https://registry.npmjs.org/balanced-match/0.0.0
npm http GET https://registry.npmjs.org/color-convert
npm http GET https://registry.npmjs.org/color-string
npm http 304 https://registry.npmjs.org/color-string
npm http 304 https://registry.npmjs.org/color-convert
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 14.0.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/Users/razy/.atom/.apmrc" "install" "/Users/razy/.atom/.node-gyp/.atom/.apm/atom-color-highlight/1.0.0/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/4s/8xq6w22j1zzd_nzyg250z9wh0000gn/T/apm-install-dir-11474-16613-lub765
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/4s/8xq6w22j1zzd_nzyg250z9wh0000gn/T/apm-install-dir-11474-16613-lub765/npm-debug.log
npm ERR! not ok code 0

Update from 1.0.3 to 1.0.4 always fails

Output in settings on update:

> [email protected] install /private/var/folders/_7/3fpmw2l10tj6f1xvwkd49rb00000gn/T/apm-install-dir-114822-6073-12a57f5/node_modules/atom-color-highlight/node_modules/oniguruma
> node-gyp rebuild


npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/pigments
npm http GET https://registry.npmjs.org/oniguruma
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/event-kit
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/event-kit
npm http 304 https://registry.npmjs.org/pigments
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 304 https://registry.npmjs.org/oniguruma
npm http 304 https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/grim
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/css-color-function
npm http 304 https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/grim
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/css-color-function
npm http GET https://registry.npmjs.org/rgb/0.0.1
npm http GET https://registry.npmjs.org/color
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/balanced-match/0.0.0
npm http GET https://registry.npmjs.org/nan/1.2.0
npm http 304 https://registry.npmjs.org/debug
npm http 304 https://registry.npmjs.org/rgb/0.0.1
npm http 304 https://registry.npmjs.org/color
npm http 304 https://registry.npmjs.org/balanced-match/0.0.0
npm http 304 https://registry.npmjs.org/nan/1.2.0
npm http GET https://registry.npmjs.org/color-convert
npm http GET https://registry.npmjs.org/color-string


Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.





Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.


gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 69
gyp ERR! stack     at ChildProcess.onExit (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /private/var/folders/_7/3fpmw2l10tj6f1xvwkd49rb00000gn/T/apm-install-dir-114822-6073-12a57f5/node_modules/atom-color-highlight/node_modules/oniguruma
gyp ERR! node -v v0.10.30
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok 
npm http 304 https://registry.npmjs.org/color-string
npm http 304 https://registry.npmjs.org/color-convert
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.4.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/Users/garyfung/.atom/.apmrc" "install" "/Users/garyfung/.atom/.node-gyp/.atom/.apm/atom-color-highlight/1.0.4/package.tgz" "--target=0.16.0" "--arch=x64"
npm ERR! cwd /private/var/folders/_7/3fpmw2l10tj6f1xvwkd49rb00000gn/T/apm-install-dir-114822-6073-12a57f5
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/_7/3fpmw2l10tj6f1xvwkd49rb00000gn/T/apm-install-dir-114822-6073-12a57f5/npm-debug.log
npm ERR! not ok code 0

Ability to pick up color variables from imported files?

Colors are not displayed for variables in a SCSS file when the variables are defined in a different file.

In other words, I have colors defined in variables.scss, and the plugin shows those fine. But in my main SCSS file (where I import variables.scss) and the colors in this file are not highlighted.

Can this be done?

Some colors have black text instead of white

screen shot 2014-05-09 at 5 20 52 pm

Looks like the algorithm for deciding whether to use white or black text needs some tweaking at the edge cases.

For reference, the two colors in the screenshot are:

  • #2f33ab
  • #900

Lighten on dark colors

I've noticed lighten produces unexpected colors the closer it is to #000. This applies to both scss and less files.

Here is a sample for reproduction

$black: #000;

$lighten-black: lighten($black, 50%);
$lighten-black: lighten($black, 100%);
$lighten-black: lighten($black, 1000%);

$almost-black: #111;

$lighten-almost-black: lighten($almost-black, 50%);
$lighten-almost-black: lighten($almost-black, 100%);
$lighten-almost-black: lighten($almost-black, 1000%);

$white: #fff;

$darken-white: darken($white, 50%);
$darken-white: darken($white, 100%);
$darken-white: darken($white, 1000%);

produces

image

I found the issue when I noticed bootstrap colors weren't matching up.

image

I'm currently using Atom Color Highlight v0.19.2

Love the tool btw!

class names are colored

a name like "#addUser" will be colored because it'll find #add in it. Would be good to have a look if the name is longer and then ignore the coloring of the first half

cannot upgrade from 1.0.3 to 1.0.4

Here's what I get:

npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/pigments
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/event-kit
npm http GET https://registry.npmjs.org/oniguruma
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/event-kit
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/oniguruma
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 200 https://registry.npmjs.org/pigments
npm http GET https://registry.npmjs.org/pigments/-/pigments-2.1.0.tgz
npm http 200 https://registry.npmjs.org/pigments/-/pigments-2.1.0.tgz
npm ERR! Error: shasum check failed for /home/serkandurusoy/.atom/.node-gyp/tmp/npm-4476-oP4CTrck/1411060067142-0.7424225069116801/tmp.tgz
npm ERR! Expected: 293254345dcc3354d9cb48c3bb40cb357e12084d
npm ERR! Actual:   da39a3ee5e6b4b0d3255bfef95601890afd80709
npm ERR! From:     https://registry.npmjs.org/pigments/-/pigments-2.1.0.tgz
npm ERR!     at /usr/local/share/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/sha/index.js:38:8
npm ERR!     at ReadStream.<anonymous> (/usr/local/share/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/sha/index.js:85:7)
npm ERR!     at ReadStream.emit (events.js:117:20)
npm ERR!     at _stream_readable.js:938:16
npm ERR!     at process._tickCallback (node.js:419:13)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.13.0-36-generic
npm ERR! command "/usr/local/share/atom/resources/app/apm/node_modules/atom-package-manager/bin/node" "/usr/local/share/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/usr/local/share/atom/resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/home/serkandurusoy/.atom/.apmrc" "install" "/tmp/d-114818-4403-1kfg0ks/package.tgz" "--target=0.16.0" "--arch=x64"
npm ERR! cwd /tmp/apm-install-dir-114818-4403-180vw5k
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.4
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /tmp/apm-install-dir-114818-4403-180vw5k/npm-debug.log
npm ERR! not ok code 0

Here are my versions:

$ atom -version
0.130.0-ad17b2d
$ apm -version
apm  0.94.0
npm  1.4.4
node 0.10.30
python 2.7.6
git 1.9.1

Updating to "[email protected]" failed.

On trying to update from 0.8.0 to 0.9.1 from the settings tab, it says update failed, with this log:

> [email protected] install /private/var/folders/p3/10pq7c057_78mspxyrbj8yg00000gn/T/apm-install-dir-114314-6692-1afdva9/node_modules/atom-color-highlight/node_modules/oniguruma
> node-gyp rebuild


npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/oniguruma
npm http GET https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/mixto
npm http 304 https://registry.npmjs.org/oniguruma
npm http 304 https://registry.npmjs.org/emissary
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/nan/0.7.0
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/nan/0.7.0
npm http 304 https://registry.npmjs.org/bindings
/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/node-gyp-bin/node-gyp: line 2: node: command not found
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get their info via:
npm ERR!     npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! System Darwin 13.1.0
npm ERR! command "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node_darwin_x64" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--userconfig" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc" "install" "/Users/idris/.atom/.node-gyp/.atom/.apm/atom-color-highlight/0.9.1/package.tgz" "--target=0.11.10" "--arch=x64"
npm ERR! cwd /private/var/folders/p3/10pq7c057_78mspxyrbj8yg00000gn/T/apm-install-dir-114314-6692-1afdva9
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /private/var/folders/p3/10pq7c057_78mspxyrbj8yg00000gn/T/apm-install-dir-114314-6692-1afdva9/npm-debug.log
npm ERR! not ok code 0

Oh, and I'm on Atom version 0.85.0

Error while updating to 0.19.4 from 0.19.3

[email protected] install /tmp/apm-install-dir-114630-24025-h4psj7/node_modules/atom-color-highlight/node_modules/oniguruma
node-gyp rebuild

make: Entering directory '/tmp/apm-install-dir-114630-24025-h4psj7/node_modules/atom-color-highlight/node_modules/oniguruma/build'
CC(target) Release/obj.target/oniguruma/deps/onig/regcomp.o
CC(target) Release/obj.target/oniguruma/deps/onig/regenc.o
CC(target) Release/obj.target/oniguruma/deps/onig/regerror.o
CC(target) Release/obj.target/oniguruma/deps/onig/regexec.o
CC(target) Release/obj.target/oniguruma/deps/onig/regext.o
CC(target) Release/obj.target/oniguruma/deps/onig/reggnu.o
CC(target) Release/obj.target/oniguruma/deps/onig/regparse.o
CC(target) Release/obj.target/oniguruma/deps/onig/regposerr.o
CC(target) Release/obj.target/oniguruma/deps/onig/regposix.o
CC(target) Release/obj.target/oniguruma/deps/onig/regsyntax.o
CC(target) Release/obj.target/oniguruma/deps/onig/regtrav.o
CC(target) Release/obj.target/oniguruma/deps/onig/regversion.o
CC(target) Release/obj.target/oniguruma/deps/onig/st.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/ascii.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/big5.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/cp1251.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_jp.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_kr.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/euc_tw.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/gb18030.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_1.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_2.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_3.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_4.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_5.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_6.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_7.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_8.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_9.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_10.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_11.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_13.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_14.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_15.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/iso8859_16.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/koi8_r.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/mktable.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/sjis.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/unicode.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_be.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf16_le.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_be.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf32_le.o
CC(target) Release/obj.target/oniguruma/deps/onig/enc/utf8.o
AR(target) Release/obj.target/oniguruma.a
COPY Release/oniguruma.a
CXX(target) Release/obj.target/onig_scanner/src/onig-cache.o
CXX(target) Release/obj.target/onig_scanner/src/onig-result.o
CXX(target) Release/obj.target/onig_scanner/src/onig-reg-exp.o
onig_scanner.target.mk:99: recipe for target 'Release/obj.target/onig_scanner/src/onig-reg-exp.o' failed
make: Leaving directory '/tmp/apm-install-dir-114630-24025-h4psj7/node_modules/atom-color-highlight/node_modules/oniguruma/build'

npm http GET https://registry.npmjs.org/q
npm http GET https://registry.npmjs.org/emissary
npm http GET https://registry.npmjs.org/underscore-plus
npm http GET https://registry.npmjs.org/pigments
npm http GET https://registry.npmjs.org/mixto
npm http GET https://registry.npmjs.org/oniguruma
npm http 304 https://registry.npmjs.org/underscore-plus
npm http 200 https://registry.npmjs.org/q
npm http 304 https://registry.npmjs.org/mixto
npm http 200 https://registry.npmjs.org/pigments
npm http GET https://registry.npmjs.org/pigments/-/pigments-1.11.3.tgz
npm http 304 https://registry.npmjs.org/emissary
npm http 200 https://registry.npmjs.org/oniguruma
npm http 200 https://registry.npmjs.org/pigments/-/pigments-1.11.3.tgz
npm http GET https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/property-accessors
npm http GET https://registry.npmjs.org/css-color-function
npm http 304 https://registry.npmjs.org/underscore
npm http GET https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/css-color-function
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/property-accessors
npm http 304 https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/rgb/0.0.1
npm http GET https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/color
npm http GET https://registry.npmjs.org/balanced-match/0.0.0
npm http 304 https://registry.npmjs.org/bindings
npm http 200 https://registry.npmjs.org/debug
In file included from ../src/onig-reg-exp.cc:1:0:
../node_modules/nan/nan.h: In function ‘v8::Handlev8::Value NanError(const char_)’:
../node_modules/nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                  ^

../node_modules/nan/nan.h:339:13: note: in expansion of macro ‘_NAN_ERROR’
return NAN_ERROR(v8::Exception::Error, errmsg);
^
../node_modules/nan/nan.h: In function ‘void NanThrowError(const char
)’:
../node_modules/nan/nan.h:324:7: error: ‘ThrowException’ is not a member of ‘v8’
v8::ThrowException(_NAN_ERROR(fun, errmsg));
^
../node_modules/nan/nan.h:343:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
_NAN_THROW_ERROR(v8::Exception::Error, errmsg);
^
../node_modules/nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                  ^

../node_modules/nan/nan.h:324:26: note: in expansion of macro ‘_NAN_ERROR’
v8::ThrowException(NAN_ERROR(fun, errmsg));
^
../node_modules/nan/nan.h:343:5: note: in expansion of macro ‘NAN_THROW_ERROR’
NAN_THROW_ERROR(v8::Exception::Error, errmsg);
^
../node_modules/nan/nan.h: In function ‘void NanThrowError(v8::Handlev8::Value)’:
../node_modules/nan/nan.h:348:5: error: ‘ThrowException’ is not a member of ‘v8’
v8::ThrowException(error);
^
../node_modules/nan/nan.h: In function ‘v8::Handlev8::Value NanError(const char
, int)’:
../node_modules/nan/nan.h:355:53: error: ‘New’ is not a member of ‘v8::String’
v8::Localv8::Value err = v8::Exception::Error(v8::String::New(msg));
^
../node_modules/nan/nan.h:357:14: error: ‘New’ is not a member of ‘v8::String’
obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
^
../node_modules/nan/nan.h:357:65: error: no matching function for call to ‘v8::Int32::New(const int&)’
obj->Set(v8::String::New("code"), v8::Int32::New(errorNumber));
^
../node_modules/nan/nan.h:357:65: note: candidate is:
In file included from /home/bk/.atom/.node-gyp/.node-gyp/0.11.13/src/node.h:61:0,
from ../node_modules/nan/nan.h:134,
from ../src/onig-reg-exp.cc:1:
/home/bk/.atom/.node-gyp/.node-gyp/0.11.13/deps/v8/include/v8.h:1989:25: note: static v8::Localv8::Integer v8::Integer::New(v8::Isolate
, int32_t)
static Local New(Isolate* isolate, int32_t value);
^
/home/bk/.atom/.node-gyp/.node-gyp/0.11.13/deps/v8/include/v8.h:1989:25: note: candidate expects 2 arguments, 1 provided
In file included from ../src/onig-reg-exp.cc:1:0:
../node_modules/nan/nan.h: In function ‘v8::Handlev8::Value NanTypeError(const char
)’:
../node_modules/nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                  ^

../node_modules/nan/nan.h:369:12: note: in expansion of macro ‘_NAN_ERROR’
return NAN_ERROR(v8::Exception::TypeError, errmsg);
^
../node_modules/nan/nan.h: In function ‘void NanThrowTypeError(const char
)’:
../node_modules/nan/nan.h:324:7: error: ‘ThrowException’ is not a member of ‘v8’
v8::ThrowException(_NAN_ERROR(fun, errmsg));
^
../node_modules/nan/nan.h:373:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
_NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
^
../node_modules/nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                  ^

../node_modules/nan/nan.h:324:26: note: in expansion of macro ‘_NAN_ERROR’
v8::ThrowException(_NAN_ERROR(fun, errmsg));
^
../node_modules/nan/nan.h:373:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
NAN_THROW_ERROR(v8::Exception::TypeError, errmsg);
^
../node_modules/nan/nan.h: In function ‘v8::Handlev8::Value NanRangeError(const char
)’:
../node_modules/nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                  ^

../node_modules/nan/nan.h:377:12: note: in expansion of macro ‘_NAN_ERROR’
return NAN_ERROR(v8::Exception::RangeError, errmsg);
^
../node_modules/nan/nan.h: In function ‘void NanThrowRangeError(const char
)’:
../node_modules/nan/nan.h:324:7: error: ‘ThrowException’ is not a member of ‘v8’
v8::ThrowException(_NAN_ERROR(fun, errmsg));
^
../node_modules/nan/nan.h:381:5: note: in expansion of macro ‘_NAN_THROW_ERROR’
_NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
^
../node_modules/nan/nan.h:319:38: error: ‘New’ is not a member of ‘v8::String’

define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))

                                  ^

../node_modules/nan/nan.h:324:26: note: in expansion of macro ‘NAN_ERROR’
v8::ThrowException(NAN_ERROR(fun, errmsg));
^
../node_modules/nan/nan.h:381:5: note: in expansion of macro ‘NAN_THROW_ERROR’
NAN_THROW_ERROR(v8::Exception::RangeError, errmsg);
^
../node_modules/nan/nan.h: In constructor ‘NanCallback::NanCallback()’:
../node_modules/nan/nan.h:727:49: error: no matching function for call to ‘v8::Object::New()’
v8::Localv8::Object obj = v8::Object::New();
^
../node_modules/nan/nan.h:727:49: note: candidate is:
In file included from /home/bk/.atom/.node-gyp/.node-gyp/0.11.13/src/node.h:61:0,
from ../node_modules/nan/nan.h:134,
from ../src/onig-reg-exp.cc:1:
/home/bk/.atom/.node-gyp/.node-gyp/0.11.13/deps/v8/include/v8.h:2372:24: note: static v8::Localv8::Object v8::Object::New(v8::Isolate
)
static Local New(Isolate isolate);
^
/home/bk/.atom/.node-gyp/.node-gyp/0.11.13/deps/v8/include/v8.h:2372:24: note: candidate expects 1 argument, 0 provided
In file included from ../src/onig-reg-exp.cc:1:0:
../node_modules/nan/nan.h: In constructor ‘NanCallback::NanCallback(const v8::Handlev8::Function&)’:
../node_modules/nan/nan.h:733:49: error: no matching function for call to ‘v8::Object::New()’
v8::Localv8::Object obj = v8::Object::New();
^
../node_modules/nan/nan.h:733:49: note: candidate is:
In file included from /home/bk/.atom/.node-gyp/.node-gyp/0.11.13/src/node.h:61:0,
from ../node_modules/nan/nan.h:134,
from ../src/onig-reg-exp.cc:1:
/home/bk/.atom/.node-gyp/.node-gyp/0.11.13/deps/v8/include/v8.h:2372:24: note: static v8::Localv8::Object v8::Object::New(v8::Isolate)
static Local New(Isolate isolate);
^
/home/bk/.atom/.node-gyp/.node-gyp/0.11.13/deps/v8/include/v8.h:2372:24: note: candidate expects 1 argument, 0 provided
In file included from ../src/onig-reg-exp.cc:1:0:
../node_modules/nan/nan.h: In destructor ‘NanCallback::~NanCallback()’:
../node_modules/nan/nan.h:740:12: error: ‘class v8::Persistentv8::Object’ has no member named ‘Dispose’
handle.Dispose();
^
../node_modules/nan/nan.h:741:12: error: ‘class v8::Persistentv8::Object’ has no member named ‘Clear’
handle.Clear();
^
../node_modules/nan/nan.h: In member function ‘void NanCallback::SetFunction(const v8::Handlev8::Function&)’:
../node_modules/nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
#define NanSymbol(value) v8::String::NewSymbol(value)
^
../node_modules/nan/nan.h:746:39: note: in expansion of macro ‘NanSymbol’
NanPersistentToLocal(handle)->Set(NanSymbol("callback"), fn);
^
../node_modules/nan/nan.h: In member function ‘v8::Localv8::Function NanCallback::GetFunction()’:
../node_modules/nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
#define NanSymbol(value) v8::String::NewSymbol(value)
^
../node_modules/nan/nan.h:750:46: note: in expansion of macro ‘NanSymbol’
return NanPersistentToLocal(handle)->Get(NanSymbol("callback"))
^
../node_modules/nan/nan.h:751:25: error: expected primary-expression before ‘>’ token
.Asv8::Function();
^
../node_modules/nan/nan.h:751:27: error: expected primary-expression before ‘)’ token
.Asv8::Function();
^
../node_modules/nan/nan.h: In member function ‘void NanCallback::Call(int, v8::Handlev8::Value_)’:
../node_modules/nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
#define NanSymbol(value) v8::String::NewSymbol(value)
^
../node_modules/nan/nan.h:759:13: note: in expansion of macro ‘NanSymbol’
Get(NanSymbol("callback")).Asv8::Function();
^
../node_modules/nan/nan.h:759:51: error: expected primary-expression before ‘>’ token
Get(NanSymbol("callback")).Asv8::Function();
^
../node_modules/nan/nan.h:759:53: error: expected primary-expression before ‘)’ token
Get(NanSymbol("callback")).Asv8::Function();
^
../node_modules/nan/nan.h:761:9: error: ‘GetCurrent’ is not a member of ‘v8::Context’
v8::Context::GetCurrent()->Global()
^
../node_modules/nan/nan.h: In member function ‘void NanAsyncWorker::SavePersistent(const char_, v8::Localv8::Object&)’:
../node_modules/nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
#define NanSymbol(value) v8::String::NewSymbol(value)
^
../node_modules/nan/nan.h:808:17: note: in expansion of macro ‘NanSymbol’
handle->Set(NanSymbol(key), obj);
^
../node_modules/nan/nan.h: In member function ‘v8::Localv8::Object NanAsyncWorker::GetFromPersistent(const char_)’:
../node_modules/nan/nan.h:181:26: error: ‘NewSymbol’ is not a member of ‘v8::String’
#define NanSymbol(value) v8::String::NewSymbol(value)
^
../node_modules/nan/nan.h:815:24: note: in expansion of macro ‘NanSymbol’
return handle->Get(NanSymbol(key)).Asv8::Object();
^
../node_modules/nan/nan.h:815:53: error: expected primary-expression before ‘>’ token
return handle->Get(NanSymbol(key)).Asv8::Object();
^
../node_modules/nan/nan.h:815:55: error: expected primary-expression before ‘)’ token
return handle->Get(NanSymbol(key)).Asv8::Object();
^
../node_modules/nan/nan.h: In member function ‘virtual void NanAsyncWorker::HandleErrorCallback()’:
../node_modules/nan/nan.h:837:30: error: ‘New’ is not a member of ‘v8::String’
v8::Exception::Error(v8::String::New(errmsg))
^
../src/onig-reg-exp.cc: In constructor ‘OnigRegExp::OnigRegExp(const string&, int)’:
../src/onig-reg-exp.cc:22:37: error: ‘New’ is not a member of ‘v8::String’
ThrowException(Exception::Error(String::New(reinterpret_cast<char_>(errorString))));
^
../src/onig-reg-exp.cc:22:87: error: ‘ThrowException’ was not declared in this scope
ThrowException(Exception::Error(String::New(reinterpret_cast<char*>(errorString))));
^
../src/onig-reg-exp.cc: In member function ‘std::shared_ptr OnigRegExp::Search(const string&, size_t)’:
../src/onig-reg-exp.cc:37:37: error: ‘New’ is not a member of ‘v8::String’
ThrowException(Exception::Error(String::New("RegExp is not valid")));
^
../src/onig-reg-exp.cc:37:72: error: ‘ThrowException’ was not declared in this scope
ThrowException(Exception::Error(String::New("RegExp is not valid")));
^
In file included from ../src/onig-reg-exp.cc:1:0:
../node_modules/nan/nan.h: In instantiation of ‘void NanDisposePersistent(v8::Persistent<T, v8::NonCopyablePersistentTraits >&) [with T = v8::Object]’:
../node_modules/nan/nan.h:786:44: required from here
../node_modules/nan/nan.h:394:5: error: ‘class v8::Persistentv8::Object’ has no member named ‘Clear’
handle.Clear();
^
make: *** [Release/obj.target/onig_scanner/src/onig-reg-exp.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.15.7-1-ARCH
gyp ERR! command "node" "/usr/share/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/apm-install-dir-114630-24025-h4psj7/node_modules/atom-color-highlight/node_modules/oniguruma
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm http 304 https://registry.npmjs.org/rgb/0.0.1
npm http 304 https://registry.npmjs.org/color
npm http 304 https://registry.npmjs.org/balanced-match/0.0.0
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the oniguruma package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls oniguruma
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.15.7-1-ARCH
npm ERR! command "/usr/share/atom/resources/app/apm/node_modules/atom-package-manager/bin/node" "/usr/share/atom/resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/usr/share/atom/resources/app/apm/node_modules/atom-package-manager/.apmrc" "--userconfig" "/home/bk/.atom/.apmrc" "install" "/tmp/d-114630-24025-kee1ja/package.tgz" "--target=0.11.13" "--arch=x64"
npm ERR! cwd /tmp/apm-install-dir-114630-24025-h4psj7
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /tmp/apm-install-dir-114630-24025-h4psj7/npm-debug.log
npm ERR! not ok code 0

Readable font color when highlighted

Can we please get a font color that is readable while the color code is highlighted? Your example shows things can get quite difficult to read.

Rendering conflict with autocomplete-plus

image

I've noticed this as a conflict with autocomplete-plus, which applies a z-index of 1 to it's popup. Increasing the z-index of the popup to 101 was enough to ensure it overrides.

I'm not sure if this is an issue with this or with autocomplete-plus.

P.S. to anyone having the same issue, the temporary fix code for styles.less is:

.select-list.popover-list.autocomplete-plus {
  // There is a clash between autocomplete-plus and atom-color-highlight
  z-index: 101 !important
}

Tab not focused anymore after opening it from the tree-view

After clicking on a file in the tree-view, the tab doesn't gets focused. Seems to be caused by the atom-color-highlight. The bug occured after updating atom from 0.133 to 0.134.

bug

Can somebody confirm? After disabling the plugin, you have to restart atom to see that its working now.

Install Error

Installing “[email protected]” failed.

I had 0.19.4 installed, but kept getting an error with this update. I removed 0.19.4 but now I can't get it back :| (same with the project palette finder).

Do you have any suggestions? I can post the output for the error if you'd like.

BTW: Thanks for making this and the palette finder... these are so helpful!

Edit: I saw the other install issues, but none referenced 1.0.2.

Atom v0.121.0 compatibility

Previous Atom versions shipped with Chrome 31 and Node 0.11.10 but Atom now ships with Chrome 36 and Node 0.11.13.

The packages listed should now ship versions of these native modules that are compatible with Node 0.11.13.

Listed below are the incompatible native modules that this package depends on.

[email protected]
Error message: Module did not self-register.

RangeError when opening files, v1.0.4

So far, this specifically affects JS and CS files. I haven't checked anything else yet...

Uncaught RangeError: Maximum call stack size exceeded 
/Users/brian/.atom/packages/atom-color-highlight/node_modules/pigments/lib/color-model.js:36

(It probably shouldn't even be running on these files, but that's neither here nor there.)

Respect line-height

When you have a line height different from the default the background color representation gets clipped:

screenshot 2014-04-24 20 08 51

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.