Community
Participate
Working Groups
Build Identifier: 20100617-1415 1 - Open .confluence file with WikiText editor. 2 - Eclipse hangs. Mylyn WikiText 1.3.0.v20100608-0100-e3x org.eclipse.mylyn.wikitext_feature.feature.group Mylyn WikiText SDK 1.3.0.v20100608-0100-e3x org.eclipse.mylyn.wikitext.sdk.feature.group Reproducible: Always Steps to Reproduce: 1 - Open .confluence file with WikiText editor. 2 - Eclipse hangs.
Thanks for the bug. Can you attach the problematic file?
*** Bug 320094 has been marked as a duplicate of this bug. ***
Created attachment 174486 [details] Example of file that causes Eclipse/WikiText editor to hang.
Apologies for the delay in getting back to you. I am not receiving any notifications for this bug, so it took me a while to find it again. I have attached an example file. I shall also get a stack trace from the bug reporter after I force quite Eclipse. Regards Nathan
Created attachment 174487 [details] Stack trace from bug reporter after force quit.
Great, I'll look into this.
there appears to be a bug in how WikiText is parsing the markup: Stack trace: java.util.regex.Matcher.<init>(Unknown Source) java.util.regex.Pattern.matcher(Unknown Source) org.eclipse.mylyn.internal.wikitext.confluence.core.block.AbstractConfluenceDelimitedBlock.canStart(AbstractConfluenceDelimitedBlock.java:89) org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage.startBlock(MarkupLanguage.java:248) org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage.processContent(MarkupLanguage.java:166) org.eclipse.mylyn.wikitext.core.parser.MarkupParser.parse(MarkupParser.java:92) org.eclipse.mylyn.wikitext.core.parser.MarkupParser.parse(MarkupParser.java:82) org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.FastMarkupPartitioner$PartitionTokenScanner.computeOlp(FastMarkupPartitioner.java:171) org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.FastMarkupPartitioner$PartitionTokenScanner.setPartialRange(FastMarkupPartitioner.java:133) org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.FastMarkupPartitioner$PartitionTokenScanner.setRange(FastMarkupPartitioner.java:222) org.eclipse.jface.text.rules.FastPartitioner.initialize(FastPartitioner.java:163) org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.FastMarkupPartitioner.resetPartitions(FastMarkupPartitioner.java:75) org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.FastMarkupPartitioner.setMarkupLanguage(FastMarkupPartitioner.java:65) org.eclipse.mylyn.internal.wikitext.ui.editor.MarkupEditor.setMarkupLanguage(MarkupEditor.java:999) org.eclipse.mylyn.internal.wikitext.ui.editor.MarkupEditor.initializeMarkupLanguage(MarkupEditor.java:986) org.eclipse.mylyn.internal.wikitext.ui.editor.MarkupEditor.doSetInput(MarkupEditor.java:470) org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3037) org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464) org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372) org.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:759) org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) org.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:756) org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2600) org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(AbstractTextEditor.java:3055) org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTextEditor.java:3082) org.eclipse.mylyn.internal.wikitext.ui.editor.MarkupEditor.init(MarkupEditor.java:965) org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:798) org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:647) org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
Fixed in CVS. As a workaround in your document before you get a new build of WikiText, remove the leading '%' character before the {toc}.
Created attachment 175122 [details] mylyn/context/zip