| Summary: | [Textile] Editor can't open files with styled links | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Fabian Steeg <steeg> | ||||||
| Component: | Mylyn | Assignee: | David Green <greensopinion> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | David Green <greensopinion> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | sam.davis | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 1.5.0 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||
| Whiteboard: | |||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 341947 | ||||||||
| Attachments: |
|
||||||||
|
Description
Fabian Steeg
Thanks for the bug. Interestingly, this works fine in the task editor. Fabian, I'm not able to reproduce here. Any chance you could attach the problematic Textile file (or preferably a small file that can be used to reliably reproduce)? I just reproduced this on a different machine in a clean Helios SR 2 Java package (20110218-0911, Mac Cocoa 64 bit) with a file called 'test.textile', containing this single line (same issue in the task editor): "_Eclipse_":http://eclipse.org While it doesn't sound like one, could this be a platform-specific issue? Thanks, I can reproduce now. This is not platform-specific: java.lang.IllegalArgumentException at org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.Segment.<init>(Segment.java:33) at org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.Segment.<init>(Segment.java:43) at org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.Span.<init>(Span.java:29) at org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.FastMarkupPartitioner$PartitionBuilder.beginSpan(FastMarkupPartitioner.java:331) at org.eclipse.mylyn.internal.wikitext.textile.core.phrase.SimpleTextilePhraseModifier$SimplePhraseModifierProcessor.emit(SimpleTextilePhraseModifier.java:60) at org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage.emitMarkupLine(MarkupLanguage.java:321) at org.eclipse.mylyn.internal.wikitext.textile.core.phrase.HyperlinkPhraseModifier$HyperlinkProcessor.emit(HyperlinkPhraseModifier.java:61) at org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage.emitMarkupLine(MarkupLanguage.java:321) at org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage.emitMarkupLine(MarkupLanguage.java:345) at org.eclipse.mylyn.internal.wikitext.textile.core.block.ParagraphBlock.processLineContent(ParagraphBlock.java:92) at org.eclipse.mylyn.wikitext.core.parser.markup.MarkupLanguage.processContent(MarkupLanguage.java:175) at org.eclipse.mylyn.wikitext.textile.core.TextileLanguage.processContent(TextileLanguage.java:235) at org.eclipse.mylyn.wikitext.core.parser.MarkupParser.parse(MarkupParser.java:91) at org.eclipse.mylyn.wikitext.core.parser.MarkupParser.parse(MarkupParser.java:81) at org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.FastMarkupPartitioner$PartitionTokenScanner.computeOlp(FastMarkupPartitioner.java:167) at org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.FastMarkupPartitioner$PartitionTokenScanner.setPartialRange(FastMarkupPartitioner.java:129) at org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.FastMarkupPartitioner$PartitionTokenScanner.setRange(FastMarkupPartitioner.java:217) at org.eclipse.jface.text.rules.FastPartitioner.initialize(FastPartitioner.java:163) at org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.FastMarkupPartitioner.resetPartitions(FastMarkupPartitioner.java:71) at org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.FastMarkupPartitioner.setMarkupLanguage(FastMarkupPartitioner.java:61) at org.eclipse.mylyn.internal.wikitext.ui.editor.MarkupEditor.setMarkupLanguage(MarkupEditor.java:1009) at org.eclipse.mylyn.internal.wikitext.ui.editor.MarkupEditor.initializeMarkupLanguage(MarkupEditor.java:996) at org.eclipse.mylyn.internal.wikitext.ui.editor.MarkupEditor.doSetInput(MarkupEditor.java:478) at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(AbstractTextEditor.java:3043) at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464) This problem might be avoidable if the link with emphasis is preceded by some text on the same line. Fixed. Created attachment 192577 [details]
mylyn/context/zip
Same issue here with text before and after the link, e.g.: Link: "_Eclipse_":http://eclipse.org Foundation *** Bug 357894 has been marked as a duplicate of this bug. *** |