Skip to content
New issue

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

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

Already on GitHub? # to your account

Yaml parser crashes on missing indentation #40

Open
DirtyF opened this issue Feb 17, 2017 · 3 comments
Open

Yaml parser crashes on missing indentation #40

DirtyF opened this issue Feb 17, 2017 · 3 comments
Labels

Comments

@DirtyF
Copy link

DirtyF commented Feb 17, 2017

❯ node -v
v7.5.0

❯ more .travis.yml
language: node_js
node_js:
- 7
- 6
cache:
  directories:
  - node_modules
install:
- npm install
script:
- npm test

❯ travis lint
Hooray, .travis.yml looks valid :)

❯ trevor

/usr/local/lib/node_modules/trevor/node_modules/yamljs/lib/Parser.js:268
        throw new ParseException('Unable to parse.', this.getRealCurrentLineNb() + 1, this.currentLine);
        ^
Error: Unable to parse.
@vadimdemedes
Copy link
Owner

Looks like the yaml parser Trevor uses (yamljs) doesn't like the lack of indentation for - items. Thanks for reporting this!

@vadimdemedes vadimdemedes changed the title Can't get trevor to run locally Yaml parser crashes on missing indentation Feb 17, 2017
@vadimdemedes
Copy link
Owner

Hm, I was unable to reproduce the error with your .travis.yml. Could you upload your exact .travis.yml?

@DirtyF
Copy link
Author

DirtyF commented Feb 19, 2017

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants