atom-pigments icon indicating copy to clipboard operation
atom-pigments copied to clipboard

Doesn't work at all on Atom 1.21.1 on Sierra

Open marnen opened this issue 7 years ago • 7 comments

I just upgraded Atom to 1.21.1 and Pigments to 0.40.2 on MacOS 10.12.6, and now I'm getting no functionality whatsoever from Pigments: no colors are highlighted or found in my project, and if I run Pigments: Reload, I see that it found lots of variables (in SCSS) but no colors. I've tried uninstalling and reinstalling Pigments several times. Help?

Pigments report, if it's useful...
{
  "atom": "1.21.1",
  "pigments": "0.40.2",
  "platform": "darwin",
  "config": {
    "sortPaletteColors": "by name",
    "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,
    "maxDecorationsInGutter": 100,
    "markerType": "native-background",
    "sassShadeAndTintImplementation": "compass",
    "groupPaletteColors": "none",
    "mergeColorDuplicates": false,
    "delayBeforeScan": 500,
    "ignoreVcsIgnoredPaths": true,
    "notifyReloads": true,
    "dismissableReloadNotifications": true
  },
  "project": {
    "config": {
      "sourceNames": [],
      "searchNames": [],
      "ignoredNames": [],
      "ignoredScopes": []
    },
    "paths": [(omitted)],
    "variables": {
      "colors": 0,
      "total": 67
    }
  }
}

marnen avatar Oct 30 '17 03:10 marnen

Maybe a stupid question, but did you try restarting Atom, reopening your project, opening another project?

Cxarli avatar Oct 30 '17 20:10 Cxarli

Yes, I've relaunched Atom several times and apparently I neglected to mention that. :P

marnen avatar Oct 30 '17 20:10 marnen

I'm on macOS 10.12.6 with Atom 1.22.1 and Pigments 0.40.2 as well and just came accross the following: colors will be parsed up until line number 48, any line beyond line number 48 pigments will not detect any color.

@marnen can you confirm this behaviour from your end?

socialmedialabs avatar Nov 25 '17 13:11 socialmedialabs

@socialmedialabs Nope, it just plain doesn't work at all, even before line 48. Pigments is installed—I can see its commands in the command palette—but as far as the appearance in the editor is concerned, it might as well not be there (see screenshot). image

marnen avatar Dec 11 '17 07:12 marnen

Update (now on 1.23.3): I removed all traces of Pigments from my .atom directory (including from .apm and compile-cache) and reinstalled. Now it finds colors, but doesn't highlight them. This isn't an interaction with another package: it happens even when no other packages are enabled. How can I help troubleshoot and fix this?

marnen avatar Jan 22 '18 18:01 marnen

...and it started working again, seemingly of its own accord, shortly after I last posted.

I'm leaving this issue open, though: the trouble and unreliable behavior I had strongly suggests an underlying problem in the package.

marnen avatar Jan 23 '18 16:01 marnen

facing same issue having same versions of atom, mac and pigments package any static solution to this problem, or it will start working miraculously again someday?

anshulsahni avatar Feb 09 '18 09:02 anshulsahni