Skip to content

Massive updat to IJ Aspects #515

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

Merged
merged 7 commits into from
Apr 28, 2025
Merged

Massive updat to IJ Aspects #515

merged 7 commits into from
Apr 28, 2025

Conversation

guw
Copy link
Contributor

@guw guw commented Apr 9, 2025

The IJ Aspects progressed quite a bit. A new templating system was
introduced to create aspects with different behavior depending on the
Bazel version.

Additional the design was modified so that aspects are no longer added
as a repository but become part of the workspace, i.e. they are copied
into the workspace during sync. This seems to work better with Bazel
caching (according to the IJ Aspects commit history).

When importing aspects we no longer consume them as a repository.
Instead we build them directly in the IJ repository and then copy &
extract into our zip archive. The zip archive is later extracted into a
temp location for better working with multiple Bazel workspaces.

guw added 5 commits April 9, 2025 09:41
The transitives cause issues in self-hosted Eclipse with duplicate
bundles. We should be a good citizen and not contribute duplicate
bundles to the target platform.
The lifetime of the cache is tightly coupled to the model manager. Thus,
it makes sense to move this into the model manager class, which forces
better design.
Copy link

github-actions bot commented Apr 9, 2025

Test Results

 38 files  ±0   38 suites  ±0   15s ⏱️ -7s
 55 tests ±0   54 ✅ ±0   1 💤 ±0  0 ❌ ±0 
110 runs  ±0  100 ✅ ±0  10 💤 ±0  0 ❌ ±0 

Results for commit 90177da. ± Comparison against base commit ba9f253.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@plaird plaird left a comment

Choose a reason for hiding this comment

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

Nice upgrade.

guw added 2 commits April 10, 2025 09:20
The IJ Aspects progressed quite a bit. A new templating system was
introduced to create aspects with different behavior depending on the
Bazel version.

Additional the design was modified so that aspects are no longer added
as a repository but become part of the workspace, i.e. they are copied
into the workspace during sync. This seems to work better with Bazel
caching (according to the IJ Aspects commit history).

When importing aspects we no longer consume them as a repository.
Instead we build them directly in the IJ repository and then copy &
extract into our zip archive. The zip archive is later extracted into a
temp location for better working with multiple Bazel workspaces.
@AnqiHuangQiQi
Copy link

Thanks for the upgrade!!!

Got into this error while ./mvnw clean verify
[Fatal Error] :144586:2087: JAXP00010003: The length of entity "[xml]" is "100,001" that exceeds the "100,000" limit set by "jdk.xml.maxGeneralEntitySizeLimit".

Added these 2 lines solved it.
-Djdk.xml.maxGeneralEntitySizeLimit=0
-Djdk.xml.totalEntitySizeLimit=0
Screenshot 2025-04-10 at 4 27 32 PM

@guw
Copy link
Contributor Author

guw commented Apr 11, 2025

@AnqiHuangQiQi These seem to be specific problems with the JDK you are using. Please make sure you are using Eclipse Temurin JDK 21.

@AnqiHuangQiQi
Copy link

Hi. Qq when will this PR get checked-in?

@plaird plaird merged commit 8e717d1 into salesforce:main Apr 28, 2025
5 checks passed
@AnqiHuangQiQi
Copy link

Thank you!

I'm actually curious when will this change be ready on Bazel-vscode-java extension pre-release version.
So I could upgrade the extension.

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

Successfully merging this pull request may close these issues.

5 participants