Repository navigation
chore: ignore the polyglot placeholder Eclipse creates - #1613
Merged
Merged
Conversation
While the workspace is open in Eclipse with m2e, an empty com.avaloq.tools.ddk.workflow/.polyglot.META-INF can appear as an untracked file, where it's easy to commit by accident. When a project has no pom.xml, m2e asks Maven's ModelProcessor to locate one. The tycho-build extension in .mvn/extensions.xml brings in Tycho's pomless support, which is built on Maven polyglot, and polyglot's TeslaModelProcessor creates an empty placeholder with deleteOnExit. In Eclipse that JVM is the IDE, so the file stays until the IDE exits and can come back in the next session. The workflow bundle is the only one this affects, because it's the only bundle without a pom.xml. #1371 removed its pom.xml because the bundle isn't in ddk-parent's <modules>. Restoring it would stop the placeholder, but CI wouldn't build it, so its versions could go stale again. Ignoring .polyglot.* matches other Eclipse projects, including eclipse.platform, eclipse.pde, m2e-core and tycho. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
joaodinissf
force-pushed
the
chore/ignore-polyglot-placeholder
branch
from
November 5, 2026 22:49
b79ebb6 to
907d9bf
Compare
rubenporras
approved these changes
Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
.polyglot.*to.gitignore, so the emptycom.avaloq.tools.ddk.workflow/.polyglot.META-INFno longer shows up as an untracked file while the workspace is open in Eclipse.The problem
With m2e installed, this empty file can appear in Git Staging and
git status, where it's easy to commit by accident. Nobody has committed it tomasterso far.Cause
pom.xml, m2e asks Maven'sModelProcessorto locate one (IMavenToolbox.locatePom). m2e'sProjectRegistryManagernotes that "the file might be created by the locate call".tycho-buildextension in.mvn/extensions.xmlbrings in Tycho's pomless support, which is built on Maven polyglot. Polyglot'sTeslaModelProcessorcreates an empty placeholder and marks itdeleteOnExit.Only
com.avaloq.tools.ddk.workflowis affected, because it's the only bundle without apom.xml. #1371 removed it because the bundle isn't inddk-parent's<modules>, and the bundle is still used from Eclipse to regenerate the DDK languages.I haven't pinned down exactly which IDE action triggers the lookup, and the file doesn't appear every time.
Why ignore it instead of restoring the
pom.xmlRestoring the
pom.xmlwould stop the placeholder, because m2e checks for that file first. But CI wouldn't build it, so its parent and bundle versions could go stale again, which is what prompted its removal in #1371.Ignoring the file matches other Eclipse projects.
.polyglot.*is in the root.gitignoreofeclipse.platform,eclipse.pde,eclipse.jdt.core,equinox,lsp4e,cdtandtycho, andm2e-coreignores.polyglot*.Testing
git check-ignoreconfirms the new rule matchescom.avaloq.tools.ddk.workflow/.polyglot.META-INF. Only.gitignorechanges, so build output is unaffected.🤖 Generated with Claude Code