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

Unable to edit target platform source file if text starts with < #1617

Open
laeubi opened this issue Feb 14, 2025 · 2 comments
Open

Unable to edit target platform source file if text starts with < #1617

laeubi opened this issue Feb 14, 2025 · 2 comments
Labels
bug Something isn't working regression Regression defect

Comments

@laeubi
Copy link
Contributor

laeubi commented Feb 14, 2025

Typing some text that starts with < or even pasting some (incomplete) text-fragments make the source editor going completely wild and at best deleting the inserted text, at worst it delete some other content as well, see video.

Peek.2025-02-14.10-27.mp4

@mickaelistria I'm not sure if it is a PDE issue, a Generic Editor issue or a lemminx issue (or feature?) or a combination of both but it makes the target editor hardly usable at the moment.

Eclipse SDK

Version: 2025-03 (4.35)
Build id: I20250210-1800

but I also noticed that in M2 release!

@laeubi laeubi added bug Something isn't working regression Regression defect labels Feb 14, 2025
@laeubi
Copy link
Contributor Author

laeubi commented Feb 14, 2025

If I start eclipse with the console I see:

Exception in thread "org.eclipse.pde.internal.genericeditor.target.extension.reconciler.folding.TargetPlatformFoldingReconciler" java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
	at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:100)
	at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:106)
	at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:302)
	at java.base/java.util.Objects.checkIndex(Objects.java:385)
	at java.base/java.util.ArrayList.get(ArrayList.java:427)
	at org.eclipse.pde.internal.genericeditor.target.extension.reconciler.folding.FoldingReconcilerStrategy.getNewPositionsOfAnnotations(FoldingReconcilerStrategy.java:181)
	at org.eclipse.pde.internal.genericeditor.target.extension.reconciler.folding.FoldingReconcilerStrategy.initialReconcile(FoldingReconcilerStrategy.java:71)
	at org.eclipse.pde.internal.genericeditor.target.extension.reconciler.folding.FoldingReconcilerStrategy.reconcile(FoldingReconcilerStrategy.java:53)
	at org.eclipse.jface.text.reconciler.Reconciler.process(Reconciler.java:149)
	at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:207)


@mickaelistria
Copy link
Contributor

Can you make similar issue happen with with any XML file in the generic editor with Wild Web Developer installed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regression Regression defect
Projects
None yet
Development

No branches or pull requests

2 participants