question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error parsing type '--no-color'

See original GitHub issue

I’m not specifying any options, but I’m getting this error on esw

Node version: v5.10.1 eslint version: v2.9.0

Logs: (ran DEBUG=* esw)

  esw:eslint-cli Loaded +0ms
  esw:eslint-cli EsLint path: /Users/ben/frontend/node_modules/.bin/eslint +3ms
  esw:eslint-help Loaded +33ms
  esw:options Loaded +18ms
  esw:success-formatter loaded +226ms
  esw:simple-detail loaded +2ms
  esw:watcher Loaded +0ms
  esw:arg-parser Loaded +0ms
  esw:esw-cli Loaded +1ms
  esw:esw-cli Eslint-Watch: 2.1.10 +0ms
  esw:eslint-help Executing help +0ms
  esw:eslint-cli eslint: [ '--help' ] +0ms
  esw:eslint-help Help text received +254ms
  esw:eslint-help noAlias +1ms false
  esw:eslint-help Alias found: -c +0ms
  esw:eslint-help Parsing --config +0ms
  esw:eslint-help noAlias +1ms true
  esw:eslint-help Parsing --no-eslintrc +0ms
  esw:eslint-help Parsing no option +0ms --no-eslintrc
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --env +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --ext +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --global +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --parser +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --parser-options +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --cache +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --cache-file +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --cache-location +1ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --rulesdir +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --plugin +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --rule +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --ignore-path +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --no-ignore +0ms
  esw:eslint-help Parsing no option +0ms --no-ignore
  esw:eslint-help noAlias +1ms true
  esw:eslint-help Parsing --ignore-pattern +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --stdin +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --stdin-filename +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --quiet +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --max-warnings +0ms
  esw:eslint-help noAlias +0ms false
  esw:eslint-help Alias found: -o +0ms
  esw:eslint-help Parsing --output-file +0ms
  esw:eslint-help noAlias +1ms false
  esw:eslint-help Alias found: -f +0ms
  esw:eslint-help Parsing --format +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --color +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --init +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --fix +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --debug +0ms
  esw:eslint-help noAlias +0ms false
  esw:eslint-help Alias found: -h +0ms
  esw:eslint-help Parsing --help +0ms
  esw:eslint-help noAlias +0ms false
  esw:eslint-help Alias found: -v +0ms
  esw:eslint-help Parsing --version +0ms
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --no-inline-config +0ms
  esw:eslint-help Parsing no option +0ms --no-inline-config
  esw:eslint-help noAlias +0ms true
  esw:eslint-help Parsing --print-config +0ms
[Error: Option 'color': Error parsing type '--no-color': Unexpected character: - - Remaining tokens: ["-","-","no","-","color"] - Initial input: '--no-color']

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
rizowskicommented, May 3, 2016

Cool, I am going to pull this in and publish 2.1.11

1reaction
rizowskicommented, May 2, 2016

This issue most likely resides in the help parser. Formatting or spaces might have changed. It will be the first thing to break since it needs to run before anything else can occur.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Terraform cannot handle a CLI option on the command line ...
Options set in TF_CLI_ARGS do not prevent terraform from parsing command line options. $ TF_CLI_ARGS='-no-color' tf fmt -no-color ...
Read more >
Error parsing Colors from String - android - Stack Overflow
parseColor()` error is thrown from your MadAdapter.java Class on line 60. ... Assuming: while parsing the color from string object "item" is ...
Read more >
CLI Reference — SQLFluff 1.4.5 documentation
No color - output will be without ANSI color codes. ... For example –ignore parsing would mean that any parsing errors are ignored...
Read more >
Command: plan | Terraform - HashiCorp Developer
The terraform plan command creates an execution plan with a preview of the changes that Terraform will make to your infrastructure.
Read more >
Command Line Interface - ESLint - Pluggable JavaScript Linter
Without this option, ESLint reports fatal parsing errors as rule violations. Argument Type: No argument. --exit-on-fatal-error example. npx eslint --exit-on ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found