tomi / vscode-js-complexity-analysis

Produce a complexity analysis report of your JS project
MIT License
16 stars 4 forks source link

Error - Failed to analyse file. Error: Line 1: Unexpected token #7

Closed bitbay closed 8 years ago

bitbay commented 8 years ago

Running JS Complexity Analysis 1.01 with vscode version 1.4.0 on Windows. To reproduce:

  1. open a file in the editor
  2. hit F1 + type "file complexity analysis" + hit enter
tomi commented 8 years ago

@bitbay Parsing of the file seems to fail. Can you post the file in question, or the first line of the file if you don't want to show the entire file?

tomi commented 8 years ago

I assume your file contained some ES6 code that didn't parse before. Version 1.0.3 brings support for ES6 modules, so I assume this fixes your issue as well. Please provide more details if the issue persists.