-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python-language-server: remove #209586
python-language-server: remove #209586
Conversation
You should probably add a change log entry about removing a package, same in the other 2 PRs |
it's just an aliases entry, not really the changelog/release notes @mdarocha. but yes, please add that. although you can obviously wait until the other two are merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
diff LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hang on, this looks confused.
On the one hand the PR description mentions a couple packages related to the old Palantir language server, while the package you're removing here is the Microsoft one.
The addition to aliases.nix
appears to represent a similar confusion.
The Microsoft language server is still maintained and used, so please don't remove it. If it needs to be updated to use a later dotnet version we can deal with that in connection to #202572.
@thomasjm let me try and address your concerns. First, the confusion between the Palantir Second, I don't think the Microsoft Are you thinking of Pylance? It is the successor to the Microsoft Footnotes |
Naturally not, since it's not written in Python :P
"Interchangeable" would be a very strong word when you consider the different behaviors and feature sets of LSP implementations.
Incorrect, python-lsp-server is a fork of the Palantir one, written in Python, and not related to the Microsoft one. (See for example python-lsp/python-lsp-server#4) You are right that Microsoft's Python Language Server has reached EOL. But I'd encourage you to completely separate any PR affecting it from any of the Palantir stuff. I also believe that it still has users in Nixpkgs, and remains a perfectly good language server, so I wouldn't be in a rush to remove it. |
Clearly I need to improve my git searching 😅
This PR only affects the Microsoft language server. I only mentioned the Palantir language server in #209582 and #209585 because I wondered why they had a dependency on the wrong language server implementation.
It's an unmaintained package built with an unmaintained SDK and running on an unmaintained runtime. I think that is a pretty good reason to remove it. There is a maintained alternative, |
I don't disagree about the unmaintainedness, and if we're trying to get rid of the old dotnet in Nixpkgs then sounds fine to me. But it's worth pointing out that the two are not interchangeable, and the Microsoft one presents a superior experience in some ways. You should definitely remove the alias from this PR, not least because there are implementation-specific configuration options you can pass and it would be very confusing to any users who are doing that if the backend implementation was completely swapped out. |
The alias in this PR is a However, we can obviously rephrase the text of the Personally, I'm just here because of #210452, which is related, because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also don't see any issue with the message in the throw
. In my experience using deprecated packages, it was never a drop in.
As a user, you should always evaluate the new package to see if it fits your needs and if it is a drop in replacement or not.
How about changing from
to
( |
I feel like that's a bit too long, I'd use the alias 2 lines below as a reference and do something like this instead: |
c7ed91e
to
947f969
Compare
I've rebased and updated the alias message. |
947f969
to
a0f8ef4
Compare
Description of changes
Depends on #209582 and #209585
Related to #202572
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes