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

Error: Line number greater than maximum line #63

Closed
philip-bl opened this issue Apr 26, 2016 · 7 comments
Closed

Error: Line number greater than maximum line #63

philip-bl opened this issue Apr 26, 2016 · 7 comments
Labels

Comments

@philip-bl
Copy link

Error: Line number (8) greater than maximum line (6)
    at Object.rangeFromLineNumber (/home/crabman/.atom/packages/linter-elixirc/node_modules/atom-linter/lib/index.js:179:11)
    at parseError (/home/crabman/.atom/packages/linter-elixirc/lib/init.coffee:105:28)
    at /home/crabman/.atom/packages/linter-elixirc/lib/init.coffee:130:22

2016-04-27 01-05-01

This happens when I press Ctrl+S to save in this file.

@Arcanemagus
Copy link
Member

If you run the linter manually on the file in the CLI do you see it reporting an error message on line 8?

@philip-bl
Copy link
Author

@Arcanemagus how do I run it?

@Arcanemagus
Copy link
Member

Something along these lines:

elixirc --ignore-module-conflict --app mix --app ex_unit -o /tmp test/tests.exs

To find out exactly how it is being ran you would need to set a breakpoint here and here, and then if the breakpoint on line 162 was triggered, check the contents of elixircArgs.

@jessejanderson
Copy link

Having the same issue. :(

@Arcanemagus
Copy link
Member

@jessejanderson Then the same questions apply to you 😛.

Can you file a new issue though? It's unlikely you are seeing this for the same reason @B-Filip is.

@bbugh
Copy link

bbugh commented Aug 28, 2016

This happens in several places but it is most easily reproduced with .exguard.exs. I made a very basic sample repository for you to reproduce the issue. It works 100% of the time, so that should make it easy to test. 😄

https://github.com/bbugh/linter-elixirc-issue-63

image

This has also happened on files that don't end in .exs, but I can't figure out those cases. For example, it happened once was when I was messing around with namespacing my modules in an .ex file (like Namespace.Module).

@remiq
Copy link
Contributor

remiq commented Sep 6, 2016

@bbugh Version 1.1.11 suppresses this message.

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

5 participants