abe33 / atom-pigments

An Atom package to display colors in project and files.
MIT License
524 stars 68 forks source link

It does not work pigments #227

Open ray-zard opened 7 years ago

ray-zard commented 7 years ago

After installation, without any signs of life...

Windows 10 x64 bit

``` json { "atom": "1.10.2", "pigments": "0.35.0", "platform": "win32", "config": { "traverseIntoSymlinkDirectories": false, "sourceNames": [ "**/*.css", "**/*.styl", "**/*.stylus", "**/*.less", "**/*.sass", "**/*.scss" ], "ignoredNames": [ "vendor/*", "node_modules/*", "spec/*", "test/*" ], "ignoredBufferNames": [], "extendedSearchNames": [ "**/*.css" ], "supportedFiletypes": [ "*" ], "filetypesForColorWords": [ "css", "less", "styl", "stylus", "sass", "scss" ], "ignoredScopes": [], "autocompleteScopes": [ ".source.css", ".source.css.less", ".source.sass", ".source.css.scss", ".source.stylus" ], "extendAutocompleteToVariables": false, "extendAutocompleteToColorValue": false, "autocompleteSuggestionsFromValue": false, "markerType": "background", "sassShadeAndTintImplementation": "compass", "sortPaletteColors": "none", "groupPaletteColors": "none", "mergeColorDuplicates": false, "delayBeforeScan": 500, "ignoreVcsIgnoredPaths": true }, "project": { "config": {}, "variables": { "colors": 0, "total": 0 } } } ```
Pavlina1979 commented 7 years ago

Same for me, after upgrade to pigments 0.35.0. Atom 1.10.2 on Linux Mint 18 XFCE x64Bit

RodideBoer commented 7 years ago

Nevermind. It started working somehow. Reopening the file did the trick this time. Hope it will keep working in the future for new files.

I haven't seen it working. Just started using it though. pigments 0.35.1 Atom 1.10.2 on Mac OS X 10.11.6

Pigments: Find colors does find the color I have in a test file. But in the test file it will not highlight.

I did a reinstall just to be sure, but still nothing.

test file: test.less

@my-color: #33ff55;

This is my Pigments: report:

{
  "atom": "1.10.2",
  "pigments": "0.35.1",
  "platform": "darwin",
  "config": {
    "autocompleteScopes": [
      ".source.css",
      ".source.css.less",
      ".source.sass",
      ".source.css.scss",
      ".source.stylus",
      ".source.less"
    ],
    "autocompleteSuggestionsFromValue": true,
    "extendAutocompleteToColorValue": true,
    "extendAutocompleteToVariables": true,
    "traverseIntoSymlinkDirectories": false,
    "sourceNames": [
      "**/*.css",
      "**/*.styl",
      "**/*.stylus",
      "**/*.less",
      "**/*.sass",
      "**/*.scss"
    ],
    "ignoredNames": [
      "vendor/*",
      "node_modules/*",
      "spec/*",
      "test/*"
    ],
    "ignoredBufferNames": [],
    "extendedSearchNames": [
      "**/*.css"
    ],
    "supportedFiletypes": [
      "*"
    ],
    "filetypesForColorWords": [
      "css",
      "less",
      "styl",
      "stylus",
      "sass",
      "scss"
    ],
    "ignoredScopes": [],
    "markerType": "background",
    "sassShadeAndTintImplementation": "compass",
    "sortPaletteColors": "none",
    "groupPaletteColors": "none",
    "mergeColorDuplicates": false,
    "delayBeforeScan": 500,
    "ignoreVcsIgnoredPaths": true
  },
  "project": {
    "config": {},
    "paths": [
      "<root>/chapter3/style.less"
    ],
    "variables": {
      "colors": 1,
      "total": 1
    }
  }
}
ghost commented 7 years ago

I believe I just experienced the same issue. To outline the steps:

  1. Open a CSS file in Atom (w/o Pigments installed)
  2. Install Pigments
  3. Note that the CSS file has no color information displayed

Tried reloading Pigments, restarting Atom: no success. Closing and reopening the CSS file did the trick, as with OP.

(Am on Ubuntu 16.04, Atom 1.10.0, Pigments 0.35.1)

TonySpegel commented 7 years ago

@erwinactionplanner is correct. I am on Atom 1.10.2 and pigments 0.35.3 (windows / ubuntu)

abe33 commented 7 years ago

Hi there, I may have missed one scenario, I'm not sure how I can simulate this post-install scenario but I'll see what I can do.

ray-zard commented 7 years ago

The problem was solved only by installing a different version of Windows....

zz98 commented 7 years ago

I may meet the same problem.

Atom 1.11.2 on Mac OS X 10.11.6 with pigments 0.38.0

ismailuddin commented 7 years ago

So any solution on the horizon? Can't get it to work either after the recent update, plus the gutter name issue still persists whose respective thread is closed.

AmusedNetwork commented 7 years ago

I too, have the same problem, Mac OS 10.12.1.

Cxarli commented 7 years ago

Pigments is currently (afaik) only called when a file is opened, so this case is not included. @abe33 What about a one-time post-install check of open files?