-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
x/tools/gopls: replace the internal/lsp/diff library #32586
Comments
Change https://golang.org/cl/191018 mentions this issue: |
I know this "hooks" thing is being used to control which diff engine is used, but that means that if I want to use the binary with the new diff engine, I have to use This doesn't work too well for me personally (at least at the moment), as I use a shared Note also that the users of |
cmd/gopls is going to be deleted fairly soon and is already not supported as a use case. We can and do submit breaking changes to the gopls master at the moment, you must not rely on it. |
I will try and modify my setup to deal with it, then. (Though hopefully you can understand that if this were another tool, like a code generator, it'd be really frustrating to deal with as a happy |
I do understand, and I apologize that we are having to kill cmd/gopls, but we are at least doing it before we have even reached the first stable version that we recommend people use :) I will reiterate though that I think the recommendation to use a tools.go for anything at all was wrong in all cases. It produces a fragile solution to the problem, pollutes your modules with dependancies they should not have, incidentally polluting anything that depends on you as well. It causes your tools dependencies to bleed into each other needlessly, and means your tools may change behavior when you don't expect it because they are affected by your modules dependency graph too, which also means you are no longer able to report any problems with those tools because you are not using a supported version of them. |
Now that
gopls
will be a submodule ofx/tools
, we are able to add external dependencies. We should replace that diff library with a more sophisticated one.The text was updated successfully, but these errors were encountered: