| Summary: | Eclipse hangs when opening .confluence file | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Nathan Sowatskey <nsowatsk> | ||||||||
| Component: | Mylyn | Assignee: | David Green <greensopinion> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||
| Severity: | blocker | ||||||||||
| Priority: | P2 | CC: | nsowatsk | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | 1.4.0 | ||||||||||
| Hardware: | Macintosh | ||||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Nathan Sowatskey
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
|