bassjobsen / less-plugin-csscomb

CSScomb plugin for less.js
Apache License 2.0
7 stars 2 forks source link

Failed to run #2

Open koddsson opened 9 years ago

koddsson commented 9 years ago

I might be doing something wrong but the plugin doesn't seem to work for me when following the README instructions :<

☁  styles [develop-ui-new-file-filters] ⚡ npm install -g less-plugin-csscomb; lessc --csscomb main.less
less-plugin-csscomb@0.0.2 /usr/local/lib/node_modules/less-plugin-csscomb
├── csscomb@3.0.4 (commander@2.0.0, vow@0.4.4, gonzales-pe@3.0.0-10)
└── csscomb-core@2.0.4 (vow@0.4.4, gonzales-pe@3.0.0-10, minimatch@0.2.12, vow-fs@0.3.2)
usage: lessc [option option=parameter ...] <source> [destination]

If source is set to `-' (dash or hyphen-minus), input is read from stdin.

options:
  -h, --help               Print help (this message) and exit.
  --include-path=PATHS     Set include paths. Separated by `:'. Use `;' on Windows.
  -M, --depends            Output a makefile import dependency list to stdout
  --no-color               Disable colorized output.
  --no-ie-compat           Disable IE compatibility checks.
  --no-js                  Disable JavaScript in less files
  -l, --lint               Syntax check only (lint).
  -s, --silent             Suppress output of error messages.
  --strict-imports         Force evaluation of imports.
  --insecure               Allow imports from insecure https hosts.
  -v, --version            Print version number and exit.
  -x, --compress           Compress output by removing some whitespaces.
  --clean-css              Compress output using clean-css
  --clean-option=opt:val   Pass an option to clean css, using CLI arguments from
                           https://github.com/GoalSmashers/clean-css e.g.
                           --clean-option=--selectors-merge-mode:ie8
                           and to switch on advanced use --clean-option=--advanced
  --source-map[=FILENAME]  Outputs a v3 sourcemap to the filename (or output filename.map)
  --source-map-rootpath=X  adds this path onto the sourcemap filename and less file paths
  --source-map-basepath=X  Sets sourcemap base path, defaults to current working directory.
  --source-map-less-inline puts the less files into the map instead of referencing them
  --source-map-map-inline  puts the map (and any less files) into the output css file
  --source-map-url=URL     the complete url and filename put in the less file
  -rp, --rootpath=URL      Set rootpath for url rewriting in relative imports and urls.
                           Works with or without the relative-urls option.
  -ru, --relative-urls     re-write relative urls to the base less file.
  -sm=on|off               Turn on or off strict math, where in strict mode, math
  --strict-math=on|off     requires brackets. This option may default to on and then
                           be removed in the future.
  -su=on|off               Allow mixed units, e.g. 1px+1em or 1px*1px which have units
  --strict-units=on|off    that cannot be represented.
  --global-var='VAR=VALUE' Defines a variable that can be referenced by the file.
  --modify-var='VAR=VALUE' Modifies a variable already declared in the file.
  --url-args='QUERYSTRING' Adds params into url tokens (e.g. 42, cb=42 or 'a=1&b=2')

-------------------------- Deprecated ----------------
  -O0, -O1, -O2            Set the parser's optimization level. The lower
                           the number, the less nodes it will create in the
                           tree. This could matter for debugging, or if you
                           want to access the individual nodes in the tree.
  --line-numbers=TYPE      Outputs filename and line numbers.
                           TYPE can be either 'comments', which will output
                           the debug info within comments, 'mediaquery'
                           that will output the information within a fake
                           media query which is compatible with the SASS
                           format, and 'all' which will do both.
  --verbose                Be verbose.

Report bugs to: http://github.com/less/less.js/issues
Home page: <http://lesscss.org/>
☁  styles [develop-ui-new-file-filters] ⚡
bassjobsen commented 9 years ago

when you install with the -g (--global) flag you should run npm install as superuser by using sudo

koddsson commented 9 years ago

I just retried with sudo but no change :weary:

bassjobsen commented 9 years ago

well i tried:

bass@bass-HP-Pavilion-dm1-Notebook-PC:~/Dropbox/testomgeving$ sudo npm install -g less-plugin-csscomb [sudo] password for bass: less-plugin-csscomb@0.0.2 /usr/local/lib/node_modules/less-plugin-csscomb ├── csscomb@3.0.4 (commander@2.0.0, vow@0.4.4, gonzales-pe@3.0.0-10) └── csscomb-core@2.0.4 (vow@0.4.4, minimatch@0.2.12, gonzales-pe@3.0.0-10, vow-fs@0.3.2) bass@bass-HP-Pavilion-dm1-Notebook-PC:~/Dropbox/testomgeving$ cd tt bass@bass-HP-Pavilion-dm1-Notebook-PC:~/Dropbox/testomgeving/tt$ lessc --csscomb t.less test { color: green;

p: first;
p: last;

}

So i'm not sure what happens in your situation. I will try to find out...

2015-04-09 15:18 GMT+02:00 Kristján Oddsson notifications@github.com:

I just retried with sudo but no change [image: :weary:]

— Reply to this email directly or view it on GitHub https://github.com/bassjobsen/less-plugin-csscomb/issues/2#issuecomment-91229244 .