Bug 412936 - No inbuilt support for virtual environments
Summary: No inbuilt support for virtual environments
Status: RESOLVED WORKSFORME
Alias: None
Product: kdev-python
Classification: Developer tools
Component: Language support (show other bugs)
Version: unspecified
Platform: Other All
: NOR wishlist
Target Milestone: ---
Assignee: Sven Brauch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-10-14 11:03 UTC by melodyogonna
Modified: 2019-12-12 04:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description melodyogonna 2019-10-14 11:03:15 UTC
It'll really be nice if there's inbuilt support for virtual environments like in Vs Code.
Comment 1 Juraj 2019-10-14 11:05:05 UTC
You can set custom path for Python interpreter in
Project Configuration > Python Settings
Comment 2 melodyogonna 2019-10-14 11:16:46 UTC
Yeah, but there is no autocompletion support for modules in the virtual environment after setting the Python path.
Comment 3 Francis Herne 2019-10-14 23:12:42 UTC
There should be; you might have to reload files after changing the path.

It would be better if we autodetected virtualenvs, of course.
Comment 4 Francis Herne 2019-11-12 15:21:57 UTC
As above, kdev-python does already have support for virtualenvs.

Without more information there's no way to tell why things aren't working in your case (it might not be related to virtualenvs at all; there are many other ways in which resolving and fully parsing an imported module could fail).

If you have a specific example of a module that isn't imported/parsed properly from a virtualenv then I can test that; otherwise I shall close this report at some point.
Comment 5 Bug Janitor Service 2019-11-27 04:33:08 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2019-12-12 04:33:08 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!