InSyncWithFoo / pyright-for-pycharm

Pyright integration for PyCharm
https://insyncwithfoo.github.io/pyright-for-pycharm/
MIT License
41 stars 0 forks source link

Run PyRight with a Docker environment #50

Open jlucasp25 opened 3 weeks ago

jlucasp25 commented 3 weeks ago

Is it possible to run PyRight using this plugin for a interpreter running inside a Docker container?

InSyncWithFoo commented 3 weeks ago

I don't know Docker, so I'll tell you what I do know.

Here's how this plugin works: It takes a path from you, then use Java's Path to find the file located at that path. If it exists (checked using Kotlin's Path.exists()), the plugin runs it, giving it the current file's path, and reroutes the output back to the IDE in the form of visual annotations.

In other words, it relies on a few assumptions:

Since I'm using built-in APIs to handle most of these, I have no direct information about the file system or even what shell.

I just overcame a nightmare to add support for WSL (which I use myself) to the sister plugin. Supporting Docker would be even harder, considering that I have exactly zero experience with it.

Ideally, this plugin should "just work", but that would require more than what I could offer right now.

jlucasp25 commented 3 weeks ago

Thank you for the quick response. I'll look into it.