Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Lot of errors showing up in atom #17

Closed
Roviluca opened this issue Dec 14, 2015 · 8 comments
Closed

Lot of errors showing up in atom #17

Roviluca opened this issue Dec 14, 2015 · 8 comments
Labels

Comments

@Roviluca
Copy link

Since some day, after an update in linter-foodcritic and linter (as far as i remember), lot of error boxes started to show up in atom.

Error: Line number (219) greater than maximum line (49)
Error: Line number (219) greater than maximum line (49)
at Object.rangeFromLineNumber (C:\Users\username.atom\packages\linter-foodcritic\node_modules\atom-linter\lib\helpers.js:153:11)
at file:///C:/Users/username/.atom/packages/linter-foodcritic/lib/main.coffee:54:30
at process._tickCallback (node.js:368:9)

and another one:

Error: Line number (255) greater than maximum line (49)
Error: Line number (255) greater than maximum line (49)
at Object.rangeFromLineNumber (C:\Users\username.atom\packages\linter-foodcritic\node_modules\atom-linter\lib\helpers.js:153:11)
at file:///C:/Users/username
/.atom/packages/linter-foodcritic/lib/main.coffee:54:30
at process._tickCallback (node.js:368:9)

and here the screenshot:
untitled

@ndobson
Copy link
Contributor

ndobson commented Dec 14, 2015

Yeah I've notice that, I believe linter-foodcritic is trying to markup all files with each finding instead of only marking up the file with the finding.

I'm working on a fix.

@Roviluca
Copy link
Author

ok, thank you.
And, by the way, thank you very much for this plugin.

@ndobson
Copy link
Contributor

ndobson commented Dec 16, 2015

@Roviluca try release 0.5.1, should be fixed.

@vegardx
Copy link

vegardx commented Jan 14, 2016

I'm still seeing this, tried both 0.5.1 and 0.5.2 using the latest version of linter and language-chef.

@Arcanemagus
Copy link
Member

@vegardx Do you have an example file/project to run this on? This should have been fixed in v0.5.1.

@vegardx
Copy link

vegardx commented Jan 15, 2016

This recipe triggers the error for me. The "Line number" can change to anywhere around the total amount of lines.

https://gist.github.com/vegardx/cc93d664ae5227190fa3

@miguelaferreira
Copy link

I'm seeing the same issue as @vegardx

linter, linter-foodcritic and language-chef all installed today at latest release versions.

@mrx88
Copy link

mrx88 commented Mar 19, 2016

I have similar issue:

Error: Line number (43) greater than maximum line (22)
Error: Line number (43) greater than maximum line (22)
at Object.rangeFromLineNumber (/home/username/.atom/packages/linter-foodcritic/node_modules/atom-linter/lib/index.js:179:11)
at /home/username/.atom/packages/linter-foodcritic/lib/main.coffee:54:30
at process._tickCallback (node.js:368:9)

Installed versions:
linter-foodcritic 0.5.2
linter 1.11.3
language-chef 0.8.0
foodcritic 6.0.0 (installed using ChefDK)

I'm using linux (Debian Wheezy).
Any ideas?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants