ElectronVector / ravioli

For calculating metrics on C source code.
MIT License
50 stars 12 forks source link

ParsingError #19

Open axbusch opened 3 years ago

axbusch commented 3 years ago
Traceback (most recent call last):
  File "/home/tunstall/.local/bin/ravioli", line 8, in <module>
    sys.exit(main())
  File "/home/tunstall/.local/lib/python3.8/site-packages/ravioli/ravioli.py", line 171, in main
    run(args.source, args)
  File "/home/tunstall/.local/lib/python3.8/site-packages/ravioli/ravioli.py", line 18, in run
    report_ksf_for_all_modules(results, errors, args)
  File "/home/tunstall/.local/lib/python3.8/site-packages/ravioli/ravioli.py", line 89, in report_ksf_for_all_modules
    results = sorted(results, key=itemgetter('ksf'), reverse=True)
TypeError: 'ParsingError' object is not subscriptable

Installed Pytho3 and i have files i can parse without any problem and others produce this error. Any idea where this can come from?

As the code is closed source i try to fabricate an example