FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Resolve homedir references in Jedi environment path by odiroot · Pull Request #394 · python-lsp/python-lsp-server · GitHub

Resolve homedir references in Jedi environment path - #394

Merged
ccordoba12 merged 2 commits into
python-lsp:developfrom
odiroot:mo/homedir-env
Jun 29, 2023
Merged

Resolve homedir references in Jedi environment path#394
ccordoba12 merged 2 commits into
python-lsp:developfrom
odiroot:mo/homedir-env

Conversation

odiroot commented Jun 13, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Resolves: #393

Allows easier use with virtualenvwrapper and portability of LSP configuration.

odiroot commented Jun 13, 2023

Copy link
Copy Markdown
Contributor Author

@ccordoba12 I struggled to come up with a test for it.

I can use the doc fixture and go with

script = doc.jedi_script()
path = script._inference_state.environment.path
assert ...

But I have no idea how to inject my custom Jedi plugin configuration to that doc. It just follows my global settings.

ccordoba12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Small suggestion, the rest looks good to me.

Also, don't worry about adding a test for this. I think it's a very simple addition that doesn't merit a test.

Comment thread pylsp/workspace.py Outdated
ccordoba12 added this to the v1.7.4 milestone Jun 13, 2023
Removed debugging cruft.

Co-authored-by: Carlos Cordoba <ccordoba12@gmail.com>

ccordoba12 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks @odiroot!

ccordoba12 merged commit 05ecbdc into python-lsp:develop Jun 29, 2023
odiroot deleted the mo/homedir-env branch June 29, 2023 15:42
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Jul 5, 2023
## Version 1.7.4 (2023/06/29)

### Issues Closed

* [Issue 393](python-lsp/python-lsp-server#393) - Environment path doesn't expand user directory

In this release 1 issue was closed.

### Pull Requests Merged

* [PR 394](python-lsp/python-lsp-server#394) - Resolve homedir references in Jedi environment path, by [@odiroot](https://github.com/odiroot)
* [PR 381](python-lsp/python-lsp-server#381) - Report progress even when initialization fails, by [@syphar](https://github.com/syphar)
* [PR 380](python-lsp/python-lsp-server#380) - Fix pylint hang on file with many errors, by [@hetmankp](https://github.com/hetmankp)

In this release 3 pull requests were closed.
msk pushed a commit to msk/pkgsrc that referenced this pull request May 11, 2026
## Version 1.7.4 (2023/06/29)

### Issues Closed

* [Issue 393](python-lsp/python-lsp-server#393) - Environment path doesn't expand user directory

In this release 1 issue was closed.

### Pull Requests Merged

* [PR 394](python-lsp/python-lsp-server#394) - Resolve homedir references in Jedi environment path, by [@odiroot](https://github.com/odiroot)
* [PR 381](python-lsp/python-lsp-server#381) - Report progress even when initialization fails, by [@syphar](https://github.com/syphar)
* [PR 380](python-lsp/python-lsp-server#380) - Fix pylint hang on file with many errors, by [@hetmankp](https://github.com/hetmankp)

In this release 3 pull requests were closed.
jperkin pushed a commit to TritonDataCenter/pkgsrc that referenced this pull request May 14, 2026
## Version 1.7.4 (2023/06/29)

### Issues Closed

* [Issue 393](python-lsp/python-lsp-server#393) - Environment path doesn't expand user directory

In this release 1 issue was closed.

### Pull Requests Merged

* [PR 394](python-lsp/python-lsp-server#394) - Resolve homedir references in Jedi environment path, by [@odiroot](https://github.com/odiroot)
* [PR 381](python-lsp/python-lsp-server#381) - Report progress even when initialization fails, by [@syphar](https://github.com/syphar)
* [PR 380](python-lsp/python-lsp-server#380) - Fix pylint hang on file with many errors, by [@hetmankp](https://github.com/hetmankp)

In this release 3 pull requests were closed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Environment path doesn't expand user directory

2 participants


Back | FazBrowse Home | New Git URL