Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Crash during parsing #93

Open
shimaore opened this issue May 16, 2018 · 2 comments
Open

Crash during parsing #93

shimaore opened this issue May 16, 2018 · 2 comments

Comments

@shimaore
Copy link

I tried to follow the instructions in the howto for nyc but I'm getting parsing errors (full Travis-CI report):

TypeError: Cannot read property 'first_line' of undefined
    at compile (/home/travis/build/shimaore/black-metal/node_modules/coffee-coverage/lib/NodeWrapper.js:236:30)
@shimaore
Copy link
Author

FWIW it appears the data structure for node in function compile is in this case:

Block {
  expressions: 
   [ Value {
       base: [StringWithInterpolations],
       properties: [],
       isDefaultValue: false,
       locationData: [Object] } ] }

@lepouletsuisse
Copy link

I got the same error. I think the problem is that coffeescript version 2.2.0 changed the way lists comprehension are compiled and coffee-coverage doesn't handle it correctly. For exemple, when i write the line test = [action.description for action in actions] coffee-coverage crash. If i remove it, it work perfectly. It's really not convenient to write all the code without list comprehension.

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

Successfully merging a pull request may close this issue.

2 participants