[JVM] What's causing "required (...)+ loop did not match anything at input '<EOF>'" error

4,688 views
Skip to first unread message

Phil Nguyen

unread,
Nov 6, 2013, 3:27:55 PM11/6/13
to cu...@googlegroups.com
Hi,

I'm using rlogiacco / Natural eclipse plugin and ran into this error:

required (...)+ loop did not match anything at input '<EOF>'

when creating new feature file.  Does anyone run into similar issues? Or know how to fix it?


Thanks,

~Phil


Roberto Lo Giacco

unread,
Nov 12, 2013, 8:04:29 AM11/12/13
to cu...@googlegroups.com
Hi Phil,
the message reports a token is missing from your source code and the parser reached the end of file ("EOF") without finding a required repeatable token ("(...)+"): I know error reporting is poorly implemented in the plugin and I'm working on that.

With regards to your specific issue I can't say much about a fix without seeing your feature file, but usually it is due to either a Scenario Outline section missing an Examples section followed by a table.

If this is not your case please provide the offending feature file and if there's a bug we'll identify the solution.

 

Roberto Lo Giacco

unread,
Nov 12, 2013, 8:07:39 AM11/12/13
to cu...@googlegroups.com
Il giorno mercoledì 6 novembre 2013 21:27:55 UTC+1, Phil Nguyen ha scritto:
Phil,
After re-reading your post I understand you were just starting with a blank feature file: in this case the error is just saying the feature file doesn't represent a correct Gherkin feature file.

Just start typing in your feature file or use the available feature template (CTRL+space to get a prompt of available templates): as soon as the file starts to represent a valid feature file the error goes away.

Hope this helps,
   Roberto 
Reply all
Reply to author
Forward
0 new messages