insyncwithfoo / pyright-for-pycharm Goto Github PK
View Code? Open in Web Editor NEWPyright integration for PyCharm
Home Page: https://insyncwithfoo.github.io/pyright-for-pycharm/
License: MIT License
Pyright integration for PyCharm
Home Page: https://insyncwithfoo.github.io/pyright-for-pycharm/
License: MIT License
Hey, so I followed the docs to install Pyright for PyCharm (community version), but I don't see any warnings/errors on this code:
I'm not sure if I didn't install it correctly or there is a bug...
pypoetry/virtualenvs/project-name/bin/pyright-python-langserver
(I tried all 3 pyright executables)pyproject.toml
Prefix with "Pyright: "
Incorrect type
in the inspections tabPyright diagnostics
No response
Linux
This is presumably due to the UI overhaul in 6e4f8c7, which introduced bind*()
calls:
makeGlobalExecutableInput {
// ...
bindText(state::globalExecutable)
}
row(NO_LABEL) {
makeAlwaysUseGlobalInput().bindSelected(state::alwaysUseGlobal)
}
Apparently, this behaviour is "documented":
The property is applied only when
DialogPanel.apply()
is invoked.
I'm not sure what that means exactly (am I supposed to call that method or what?) but I'm working on a fix. v0.1.0-mvp.5 is hereby yanked and should not be used.
Things to do:
release.yaml
works.On Linux:
venv/bin/
On Windows:
venv\Scripts\
.exe
It would be nice if project configurations can be shared among colleagues who use different OSes.
A new configuration should be added as a checkbox in the project-level panel. The path resolving algorithm also needs modifications:
The hard part of this is to make the UI hint react when the checkbox changes its state.
See sister #41.
See #31.
I've downloaded and installed plugin version 0.1.0-mvp.5
into intelliJ IDEA 2023.3.5
When editing the global or local settings, they simply won't save. When I add the path to the executable or config file, I see the 'file found' tick, but the 'Apply' button never enables, and click 'OK' simply closes the Settings dialog, but the values are not saved/
No response
macOS
From this review:
The one thing I find hard with this plugin is the way in which these errors are reported. Instead of the nice, yellowish warnings you usually see, they will be reported as full on errors (with red underlines).
By default:
Pyright | IDE |
---|---|
Errors | Errors |
Warnings | Warnings |
Info | Weak warnings |
CLI previously had lower levels, but it was changed to match LSP. I still think this is a sane default and thus it will likely not change.
However, considering that many Python users have come to it due to its dynamicity, they probably don't want to see type errors highlighted as bona fide errors.
Maybe it expired? I think I have the tooling setup to build this on my own but wanted to check and see if you have a release zip handy?
I wonder if you could integrate the language server like you did with jetbrains lsp support with https://github.com/redhat-developer/lsp4ij which is a free lsp client for intellij
See sister #15.
https://github.com/InSyncWithFoo/pyright-for-pycharm/blob/master/gradle.properties#L15
See https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html and https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-migration.html
n/a
No response
None
Excited about this project. I typically have my source code and interpreter running in WSL and my pycharm instance running in windows. Pycharm supports this nicely and I am able to run/debug/edit the source code based in WSL. I have pyright installed in WSL and tried to configure the plugin to use the pyright executable with a WSL based path (\wsl.ubuntu\...) and the configuration dialog says the executable is 'Not Found'. I confirmed it does find a version of the executable installed in windows directly (e.g. c:..), but I don't expect that to work with a WSL based project (and it did not).
I am not sure why the executable I am suggesting is showing up as not found by the configuration UI. It is possible that the validation just needs to be adjusted to handle these UNC paths and then it would work? It also may require downstream logic to support paths of this type.
As I mentioned I tried using a local executable and it did not work with a WSL based project.
Happy to provide any further information. Excited to be able to use this project.
Either the link is broken or the repository is not public.
The LSP version is the one I'm most interested in testing/helping with :)
ProgressManager.progressIndicator
is obsolete.
Is it possible to run PyRight using this plugin for a interpreter running inside a Docker container?
The plugin is constantly performing save, and too fast. For who use formatter triggered on save it becomes hard to work.
Is it possible to avoid that?
I totally understand if this is the only way that the plugin can work.
No response
Use some formatter on save.
None
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.