Skip to content
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 xtend.lib dependency #1630

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Feb 19, 2024

Currently there are some small leftovers to xtext/xtend that seem no longer needed. This currently ties lemminx unnecessarily to xtext

FYI @szarnekow

@laeubi
Copy link
Contributor Author

laeubi commented Nov 10, 2024

@szarnekow as you are more familiar with xtext/xtend could you probably help out to resolve this?

@angelozerr
Copy link
Contributor

angelozerr commented Nov 10, 2024

If I remember we have this dependecy only for ToStringBuilder.

I would like to avoid bumping lsp4ij because we need to take care of binary lemminx support and our team have no time for the moment to do that.

I suggest that you copy paste the xtend ToStribgBuilder in the lemminx utils package.

@laeubi
Copy link
Contributor Author

laeubi commented Nov 10, 2024

I suggest that you copy paste the xtend ToStribgBuilder in the lemminx utils package.

Yes that's what I think @szarnekow recommended, but maybe thats a better task for someone familiar with xtext / lemminx.

@angelozerr
Copy link
Contributor

I suggest that you copy paste the xtend ToStribgBuilder in the lemminx utils package.

Yes that's what I think @szarnekow recommended, but maybe thats a better task for someone familiar with xtext / lemminx.

We will not have time to do that.

@laeubi
Copy link
Contributor Author

laeubi commented Nov 10, 2024

I suggest that you copy paste the xtend ToStribgBuilder in the lemminx utils package.

Yes that's what I think @szarnekow recommended, but maybe thats a better task for someone familiar with xtext / lemminx.

We will not have time to do that.

Can you give some insights about "we"? How can one help with bring lemminx forward in terms of maintenance, maybe @tfroment can help out and make this project get more resources (of whatever kind required), because XML is an important part in the IDE, especially for m2e is also dependent on this.

@laeubi
Copy link
Contributor Author

laeubi commented Nov 10, 2024

@angelozerr I now copied this from lsp4j and adjusted for java 1.8 compatibility (some vars to actual type and a missing generic).

@laeubi
Copy link
Contributor Author

laeubi commented Nov 10, 2024

I verified this by

				<exclusion>
					<groupId>org.eclipse.xtend</groupId>
					<artifactId>org.eclipse.xtend.lib</artifactId>
				</exclusion>

then the build succeeds as well, I think we just need to keep the dependency so it show up in the uber-jar

Signed-off-by: Sebastian Zarnekow <[email protected]>
@szarnekow
Copy link
Contributor

Certainly an interesting case, since we worked hard to remove the Xbase dependency from lsp4j in the past. According to maven central, it's not part used by lsp4 0.21.1 and newer. Maybe upgrade the lsp version, instead?

@laeubi
Copy link
Contributor Author

laeubi commented Nov 10, 2024

Maybe upgrade the lsp version, instead?

See

it seems Java 1.8 compatibility is still a concern.

@angelozerr
Copy link
Contributor

I suggest that you copy paste the xtend ToStribgBuilder in the lemminx utils package.

Yes that's what I think @szarnekow recommended, but maybe thats a better task for someone familiar with xtext / lemminx.

We will not have time to do that.

Can you give some insights about "we"?

@fbricon @rgrunber @datho7561 and me, but badly we are very busy with other projects since lemminx is enough stable and provide features expected for vscode xml

How can one help with bring lemminx forward in terms of maintenance, maybe @tfroment can help out and make this project get more resources (of whatever kind required), because XML is an important part in the IDE, especially for m2e is also dependent on this.

Any contribution are welcome and we will try our best to review prs

@tfroment
Copy link

Hi @angelozerr, thank you @laeubi
The Eclipse IDE working group depends on the planning council to prioritize funded development efforts (outlined at https://eclipseide.org/working-group/development-funding-initiative/) and listed on this board https://gitlab.eclipse.org/eclipse-wg/ide-wg/ide-wg-dev-funded-efforts/ide-wg-dev-funded-program-planning-council-top-issues/-/boards/1208. If the planning council deems it a high priority, it can then be considered through this process. I will share it with them.

@laeubi
Copy link
Contributor Author

laeubi commented Nov 12, 2024

Build failures seem to be the usual instabilities, so this is ready to be merged from my side.

@angelozerr
Copy link
Contributor

LGTM. Thanks @laeubi !

@angelozerr angelozerr merged commit 5421ff5 into eclipse-lemminx:main Nov 12, 2024
4 of 6 checks passed
@angelozerr angelozerr added this to the 0.29.0 milestone Nov 12, 2024
@rgrunber
Copy link
Contributor

FWIW the same was done on eclipse-jdtls/eclipse.jdt.ls#2416 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants