prettier / plugin-python

Prettier Python Plugin
MIT License
517 stars 41 forks source link

TypeError: Cannot read property 'toString' of null #98

Closed FezVrasta closed 6 years ago

FezVrasta commented 6 years ago

Hi, if I try to prettier this code I get the error in the title.

https://github.com/mariusmotea/diyHue/blob/master/BridgeEmulator/HueEmulator3.py

ryanashcraft commented 6 years ago

@FezVrasta This is likely because you don't have python3 in your PATH or you're not running prettier with --python-version=3.

We should check for this and provide a better error message when this happens.

FezVrasta commented 6 years ago

I do have python3 in PATH, but I didn't use the flag you mentioned, thanks