Search code examples
pycharmjetbrains-ide

Unresolved reference async/await in PyCharm


Sometimes in PyCharm 2017.1.4 with python3.6 async/await statements show as unresolved, although there aren't any errors and in next tab async/await not underlined as an error.

Restarting fix this issue. How to fix that?

image


Solution

  • I just hit the same problem. It was because the project interpreter was set to python2.7, the await/async keys are new as of python3, and not backward compatible.

    preferences>project>project-interpreter is where I could select the correction version.