pycharm-evaluate-async-code icon indicating copy to clipboard operation
pycharm-evaluate-async-code copied to clipboard

Don't work with docker-compose interpreter.

Open CHuKeR opened this issue 4 years ago • 2 comments

When start app using docker interpreter and stop in somebreakpoint there is SyntaxError "await outside function"

Project configuration: image

Code for test:

import uvicorn
from fastapi import FastAPI

app = FastAPI()


@app.get("/test2/")
async def test_async():
    return {}


if __name__ == '__main__':
    uvicorn.run(app, port=5000, host='0.0.0.0')

CHuKeR avatar Aug 19 '21 12:08 CHuKeR

Hi @CHuKeR,

This issue is related to #2.

I will try to look again, maybe I will find a way how to make integration with PyCharm docker debugging.

Thanks for submitting an issue.

uriyyo avatar Aug 23 '21 09:08 uriyyo

any movement on this? or known workarounds?

cmflynn avatar Jun 17 '22 14:06 cmflynn

Hi @CHuKeR, @cmflynn

This issue should be fixed in version 1.20. Please, reopen this issue in the case when issue is still present.

uriyyo avatar Aug 10 '22 07:08 uriyyo