Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Range error? Not enough lines of code?? #997

Closed
EGM opened this issue Oct 7, 2017 · 1 comment

Comments

@EGM
Copy link

commented Oct 7, 2017

node node_modules/standard/bin/cmd --fix && node node_modules/mocha/bin/mocha

standard: Unexpected linter output:

RangeError: Line number out of range (line 79 requested, but only 78 lines present).
at SourceCode.getIndexFromLoc (/storage/emulated/0/AppProjects/dsalt/node_modules/eslint/lib/util/source-code.js:389:19)
at Object.fix (/storage/emulated/0/AppProjects/dsalt/node_modules/eslint/lib/rules/no-multiple-empty-lines.js:116:52)
at RuleContext.report (/storage/emulated/0/AppProjects/dsalt/node_modules/eslint/lib/rule-context.js:127:34)
at Program:exit.allLines.reduce.concat.reduce (/storage/emulated/0/AppProjects/dsalt/node_modules/eslint/lib/rules/no-multiple-empty-lines.js:108:37)
at Array.reduce (native)
at EventEmitter.Program:exit (/storage/emulated/0/AppProjects/dsalt/node_modules/eslint/lib/rules/no-multiple-empty-lines.js:93:22)
at emitOne (events.js:101:20)
at EventEmitter.emit (events.js:188:7)
at NodeEventGenerator.applySelector (/storage/emulated/0/AppProjects/dsalt/node_modules/eslint/lib/util/node-event-generator.js:265:26)
at NodeEventGenerator.applySelectors (/storage/emulated/0/AppProjects/dsalt/node_modules/eslint/lib/util/node-event-generator.js:294:22)

If you think this is a bug in standard, open an issue: https://github.com/standard/standard/issues
npm ERR! Test failed. See above for more details.
code : 1 / signal : 0

@dein0s

This comment has been minimized.

Copy link

commented Oct 24, 2017

Just got the same exception. The reason was in extra spaces in the ending line.

@EGM EGM closed this Nov 25, 2017

@lock lock bot locked as resolved and limited conversation to collaborators May 24, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
You can’t perform that action at this time.