Giter Site home page Giter Site logo

Comments (14)

uriyyo avatar uriyyo commented on June 14, 2024

Hi @Addovej,
Looks like there is a bug with the new version of the plugin.

Can you try to use version 1.2?

Today I will upload a new version of the plugin but it requires several days to be validated by JetBrains.

from pycharm-evaluate-async-code.

Addovej avatar Addovej commented on June 14, 2024

I'm not sure how to install not latest plugin version.
This repo has not any tags or releases.

from pycharm-evaluate-async-code.

uriyyo avatar uriyyo commented on June 14, 2024

You can use this link to download version 1.2

from pycharm-evaluate-async-code.

Addovej avatar Addovej commented on June 14, 2024

Still not working. There a few questions:
Should I install an additional libs? (in the first issue you has mentioned nest-asyncio lib)
Should I use virtual env? (Currently I use docker-compose interpreter)

from pycharm-evaluate-async-code.

uriyyo avatar uriyyo commented on June 14, 2024

You should not install any additional library (nest-asyncio embedded inside plugin).
It must work with and without a virtual env.

Can you please screenshot of error which you are getting?

from pycharm-evaluate-async-code.

Addovej avatar Addovej commented on June 14, 2024

I've created the simple async function:

async def test():
    return 123

and try it evaluate as expression:
image

from pycharm-evaluate-async-code.

uriyyo avatar uriyyo commented on June 14, 2024

Hmmm, strange.

I have just checked with 1.2 version and everything works as expected.

image

Can you show information about evaluate async code plugin?
In my case:
image

from pycharm-evaluate-async-code.

Addovej avatar Addovej commented on June 14, 2024

I just try it out on a new test project and it works fine.
Seems like it does not working when I'm using a docker-compose.

What I've do:
Added a simple Dockerfile:

FROM python:3.9-alpine

COPY ./main.py /app/main.py
WORKDIR /app

docker-compose.yaml:

version: '3.8'

services:
  web:
    build:
      context: .
    volumes:
      - .:/app

Specified a project interpreter Docker Compose (web service)
And then I'm getting the error:
image

from pycharm-evaluate-async-code.

uriyyo avatar uriyyo commented on June 14, 2024

Very interesting, I will try yo add support to docker-compose interpeteters.

from pycharm-evaluate-async-code.

Addovej avatar Addovej commented on June 14, 2024

It will be fine. Thanks!

from pycharm-evaluate-async-code.

uriyyo avatar uriyyo commented on June 14, 2024

Hi @Addovej,

It's currently not possible to add such integration between docker-compose and this plugin.
Sorry about that, I can't do anything to fix that.

from pycharm-evaluate-async-code.

Addovej avatar Addovej commented on June 14, 2024

Hi @uriyyo. Got it, thanks! I guess that need some association with pycharm helpers in a docker inside.
Anyway your plugin is great, hope you make it better in a future.

from pycharm-evaluate-async-code.

uriyyo avatar uriyyo commented on June 14, 2024

Thanks, It will be great if PyCharm will add official support for async/await because it's a little bit tricky to add such integration without changing the source code of PyCharm

from pycharm-evaluate-async-code.

uriyyo avatar uriyyo commented on June 14, 2024

Hi @Addovej,

docker and docker-compose integration are available under version 1.20.

from pycharm-evaluate-async-code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.