dragos / typesafe-config-eclipse

An Eclipse plugin for Typesafe Config files
Apache License 2.0
23 stars 6 forks source link

no viable alternative at input '\n' - Window Line endings #8

Closed LupusUmbrae closed 8 years ago

LupusUmbrae commented 8 years ago

Just added this to my Eclipse (4.5.1) and when i open a config file more or less every line have this error no viable alternative at input '\n', however if i change line endings from windows (CR + LF) to linux (LF) they disappear (instead i get no viable alternative at input '<EOF>' on the last line)

In the below example snippet the only line without the error would be loglevel = "DEBUG", even the blank line has this error

akka {
  loglevel = "DEBUG"
  actor {
    # comment line

    # comment after blank line
mkurz commented 8 years ago

Same as #7?

LupusUmbrae commented 8 years ago

The <EOF> issue is the same as #7 but there is also an issue with Windows line endings what ever is parsing the file doesn't handle them thus the no viable alternative at input '\n'

dragos commented 8 years ago

Yes, the problem is most likely at this line. I am extremely busy for the next couple of weeks, but if you could help (seems like a simple one), I'd be more than happy to cut a new release.

dragos commented 8 years ago

Closed via #9