-
Notifications
You must be signed in to change notification settings - Fork 145
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
Remove dependency on xtext's @Pure and ToStringBuilder #494
Comments
@spoenemann any thoughts on removing use of Thanks for your insights. |
I think this can be changed in the JsonRpcDataProcessor, that is what generates the getters and setters as well as toString. |
@lemmy I think we have as much approval as we need for this. Would you like to provide a PR? |
Remove dependency on xtext's @pure and ToStringBuilder This commit removes @pure. The next commit is going to remove ToStringBuilder. lsp4j.debug depends on xtext base at runtime, because the generated POJOs import org.eclipse.xtext.xbase.lib.Pure and org.eclipse.xtext.xbase.lib.util.ToStringBuilder. Neither @pure nor ToStringBuilder are required by lsp4j.debug's functionality. Removes the xtext dependency to shrink the set of lsp4j.debug's dependencies.
I can do that. To confirm, though, we have an agreement to remove all |
these other pures are generated by |
Thanks, I guess adding |
Yes! removing all use of I hope that removes all dependencies on xbase (I believe it will for DAP side, it may not for LSP). |
Any suggestions how to remove As a last resort, I can add a post-gen step to gradle to remove |
I don't know. There are a few xtend/xtext experts in lsp4j, but you may get better answers from their specific channels? |
The simplest is to copy&paste the original code. |
Remove dependency on xtext's @pure and ToStringBuilder This commit removes @pure. The next commit is going to remove ToStringBuilder. lsp4j.debug depends on xtext base at runtime, because the generated POJOs import org.eclipse.xtext.xbase.lib.Pure and org.eclipse.xtext.xbase.lib.util.ToStringBuilder. Neither @pure nor ToStringBuilder are required by lsp4j.debug's functionality. Removes the xtext dependency to shrink the set of lsp4j.debug's dependencies.
Remove dependency on xtext's @pure and ToStringBuilder This commit removes ToStringBuilder. lsp4j.debug depends on xtext base at runtime, because the generated POJOs import org.eclipse.xtext.xbase.lib.Pure and org.eclipse.xtext.xbase.lib.util.ToStringBuilder. Neither @pure nor ToStringBuilder are required by lsp4j.debug's functionality. Removes the xtext dependency to shrink the set of lsp4j.debug's dependencies.
I appreciate your time but this PR has gone beyond my time budget (I will simply create dummies for Thanks again! |
Thanks for having a look. Please let us know if you have other ideas for improvement. |
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug]
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug]
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug]
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug]
I think the correct code that @lemmy started in should be impl.getDeclaredMethods.forEach [ method |
val purified = method.findAnnotation(Pure.findTypeGlobally)
if (purified !== null) {
method.removeAnnotation(purified)
}
] In addition, a new implementation of I leave the above in case someone wants to pick up the work. |
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug]
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug][Debugger]
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug][Debugger]
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug][Debugger]
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug][Debugger]
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug][Debugger]
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug][Debugger]
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug][Debugger]
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug][Debugger]
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug][Debugger]
I think that @cdietrich changes in #529 will fix this. |
ClassNotFoundExceptions while debugging. See eclipse-lsp4j/lsp4j#494 for context. [Bug][Debugger]
lsp4j.debug
depends on xtext base at runtime, because the generated POJOs importorg.eclipse.xtext.xbase.lib.Pure
andorg.eclipse.xtext.xbase.lib.util.ToStringBuilder
. Neither@Pure
norToStringBuilder
are required bylsp4j.debug
's functionality. Please consider removing the xtext dependency to shrink the set oflsp4j.debug
's dependencies.Related: https://twitter.com/lemmster/status/1346543929299140610
The text was updated successfully, but these errors were encountered: