Open ozozozd opened 4 months ago
Zed 0.130.6 MacOs 14.0 (23A344)
pyrightconfig.json
{
"venvPath": ".",
"venv": "venv"
}
Zed is still not good for django and django rest framework as like VS code
@ozozozd, have you added a pyrightconfig.json
file at your project's root, like @hbilal9 mentioned?
@JosephTLyons yes it is at project root. when remove pyrightconfig.json
then django other modules also through error. after adding pyrightconfig
now just warning of what I mentioned above
Just checking in to see if this is still occurring.
@ozozozd Were you able to add pyrightconfig.json
as suggested? Did this change anything?
@hbilal9 This may be an area where we need to add some additional configuration documentation or tweak our pyright integration. Would you be willing to work with me to develop a minimal project that demonstrates the issue?
@notpeter yeah sure we can
Once we have venv detection, it seems like we could automatically generate the config file after the user picks their venv in Zed.
I worked on a branch that pulled up the discovered venvs in a modal popup that the user could pick from, but the work was put to the side for various reasons - probably for the best because there {is, will be} better tooling for venv discovery once some PRs land in uv
- much better than rolling our own.
@JosephTLyons even when we generate manually pyrightconfig.json
it solve venv problem but still type missing in django or maybe can miss in other frameworks also.
I've also mentioned here
Check for existing issues
Describe the bug / provide steps to reproduce it
editor: go to diagnostic
command highlights the error.diagnostics: deploy
pane.Example code:
Environment
Zed: v0.130.6 (Zed) OS: macOS 13.6.6 Memory: 16 GiB Architecture: aarch64
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response