Skip to content

Conversation

@hugithordarson
Copy link
Member

@hugithordarson hugithordarson commented Nov 3, 2025

As seen in #1025. The error occurred because NSBundle.Classpath was null in the check I disabled, meaning mainBundle() skipped bundle initialization and returned null. If the check is disabled, a simple test maven application seemingly runs fine using bundleless builds. Why this check is there, I don't know, why it specifically fails with maven builds I have no idea. Added in this commit:

c4d9ccf

My initial guess is that it's meant to check if the main bundle has been successfully initialized, so I initially thought bypassing it like this might mean we end up with an incompletely initialized bundle. But I don't see anything wrong with the main bundle when the application is up and running.

Since I don't have any actual complex-ish Wonder apps to do further testing on, someone more capable should probably review this and try it out.

@hugithordarson
Copy link
Member Author

hugithordarson commented Nov 3, 2025

Encountering odd behaviour after doing some more testing. Closing this pull request for now.

@hugithordarson hugithordarson deleted the fix_bundleless_builds_in_maven branch November 3, 2025 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant