| Summary: | Vex fails to open XHTML files with "meta" tags | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Vincent MAHE <vmahe> |
| Component: | Mylyn | Assignee: | Florian Thienel <florian> |
| Status: | CLOSED FIXED | QA Contact: | David Williams <david_williams> |
| Severity: | major | ||
| Priority: | P3 | CC: | florian |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Attachments: | |||
Created attachment 193660 [details]
Testcase of the files Vex fails to open
This is the french template XHTML file I use for my french word processing texts.
I cannot reproduce the problem with the latest release. Vex opens the file without any problem. Since we don't have the history of the source code before the switch to Eclipse, we cannot provide a fix for the old Sourceforge version. Can you explain, what exactly hinders you to use the current version of Vex. I'm sure, we can provide a solution for that. Created attachment 193697 [details] The elements installed on my Indigo 3.7M6 release (on Linux Ubuntu 10.4) I am sorry about all these troubles. Actually, the old Vex version fits well most of my needs (textual storage + separed rendering + versionning + keyboard user interface), but I am interested to switch to the most recent version because of the ability of Git to manage local network drives to push on the versions of my texts. I then tested Vex by installing it on recent Helios and Indigo releases of Eclipse, but with main failures: - my french files do not open (I founded the reason, on my install at least) - the .html files are not related to Vex by Eclipse (on right-click) so I have to search for the Vex editors in the list of Eclipse applications. I join a screenshot of my Eclipse install (Vex comes from the incubator update site: http://download.eclipse.org/webtools/incubator/repository/vex/milestones/). (In reply to comment #3) > - my french files do not open (I founded the reason, on my install at least) Do you think this is a problem with the encoding of your files? Or is there an error reported to the error log, when you try to open the french files? > - the .html files are not related to Vex by Eclipse (on right-click) so I have > to search for the Vex editors in the list of Eclipse applications. Under "Window > Preferences" in "General > Editors > File Associations" you can permanently associate Vex with .html files. (See also http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.user/tasks/tasks-51.xhtml) About the file associations, I mentionned it in case it was another failure of my configuration. For my opening failure, Vex can open a file with "meta" tag but fails if it has content. About the encoding, my Eclipse workspace is under UTF8 (default), and I added meta values using Eclipse text editor. The error log (sorry for not having thought about it): java.lang.NullPointerException at org.eclipse.wst.xml.core.internal.document.DocumentImpl.getCMAttributes(DocumentImpl.java:1076) at org.eclipse.wst.xml.core.internal.document.ElementImpl.getDefaultValue(ElementImpl.java:363) at org.eclipse.wst.xml.core.internal.document.ElementImpl.getAttributeNode(ElementImpl.java:272) at org.eclipse.wst.xml.core.internal.document.ElementImpl.setAttribute(ElementImpl.java:1236) at org.eclipse.wst.xml.vex.core.internal.dom.Element.setAttribute(Element.java:207) at org.eclipse.wst.xml.vex.core.internal.dom.DocumentBuilder.startElement(DocumentBuilder.java:206) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.eclipse.wst.xml.vex.core.internal.dom.DocumentReader.read(DocumentReader.java:130) at org.eclipse.wst.xml.vex.core.internal.dom.DOMDocumentReader.read(DOMDocumentReader.java:46) at org.eclipse.wst.xml.vex.ui.internal.editor.VexEditor.loadInput(VexEditor.java:308) at org.eclipse.wst.xml.vex.ui.internal.editor.VexEditor.createPartControl(VexEditor.java:430) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:289) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2945) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2850) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2842) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2793) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2789) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2773) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2764) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610) at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileAction.java:99) at org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystemEditorAction.java:99) at org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAction(OpenActionGroup.java:133) at org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAction(MainActionGroup.java:330) at org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen(ResourceNavigator.java:787) at org.eclipse.ui.views.navigator.ResourceNavigator$6.open(ResourceNavigator.java:499) at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:845) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:843) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1131) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1235) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3568) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3189) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) at org.eclipse.equinox.launcher.Main.run(Main.java:1410) (In reply to comment #5) Ahh - a stacktrace, that feels much better ;-) Could you please find out the exact version of the plug-in 'org.eclipse.wst.xml.core' which is installed in your Eclipse? You can find this version number under 'Help > About Eclipse SDK' when you click on the button 'Installation Details' and switch to the tab 'Plug-ins'. The version is something like '1.1.503.c201102102045'. Created attachment 193906 [details]
Version of WST elements installed on my Indigo release
The version wst.xml.core is 1.1.600.v20110309249
For info, I got the same falsy behavior with Vex install on Eclipse 3.6.2.
Ok, seem's like you use the multipage editor. This editor was removed in a more recent build, because it has a lot of bugs is not ready to use yet. If you need both the WYSIWYG experience and a textual representation of your documents in parallel, there is a workaround: you can open a file with Vex and another editor at the same time using the "Open With" action in the context menu while the file is already open in the first editor. The synchronization between the editors takes place, when you save your document in one of the editors. It would be nice, if you could try again with a more recent build of Vex from our unstable update site: https://hudson.eclipse.org/hudson/job/cbi-wtp-inc.vex/lastSuccessfulBuild/artifact/sourceediting/development/org.eclipse.wst.xml.vex.repository/target/site After an update from the unstable site, it works properly. Thank you for your involvement, Florian :-) done Moved to Mylyn Docs Vex. |
Build Identifier: I20110310-1119 (Indigo 3.7M6) When I try to open a simple template file with "meta" tags for specifying the language used in the XHTML file, Vex editor fails and display "Erreur inconnue à louverture de {0}.....". If I suppress the 2 "meta" tags, Vex opens it. I join the template file as a test case. As all my files are french ones, I cannot use the last version of Vex and remains with the VERY) old Vex 1.2.1 2004 version. Reproducible: Always Steps to Reproduce: 1.right click on the file 2.select "Open with" > "Other" 3.choose "Editeur XML Vex" in "Internal editors"