refresh_compile_commands.py has SyntaxError
liuli-neko opened this issue · comments
Hey @liuli-neko! Thanks for your interest in this tool and for writing in.
It looks like you're trying to run this with Python 2--but we require 3.7 or greater. Could you install the latest Python and see if things work for you then?
[Sorry there wasn't a better error message; we print out a nice reminder if people are using too old a version of Python 3, but the syntax changes between languages mean that we crash before we get to that message in Python2. I couldn't quickly figure out how to get a better error message for Python 2 from either Python or Bazel, but if you or someone reading this have a better idea, I'd be delighted to take a PR.]
Hey @liuli-neko, since I haven't heard from you in a week, I'm going to close this down. But, if you read this, I'd still love it if you'd reply whether that worked.
It's valuable to know if it was the right fix, so I can help the next guy. And if you're still having trouble, then I'd be happy to open this issue right back up and help.