Protobuf-dt 1.1.1 released

59 views
Skip to first unread message

Alex Ruiz

unread,
Dec 16, 2011, 5:35:26 PM12/16/11
to proto...@googlegroups.com
I'm happy to announce that protobuf-dt 1.1.1 is out!

Changelog:

  • Issue 6: Remove Xtext’s own markers
  • Issue 19: Refactoring does not work on enum definitions
  • Issue 111: Extensions and complete enum literal support for custom options
  • Issue 121: Nested message support in custom options
  • Issue 146: Add header to table in “Import Paths” preference page.
  • Issue 150: Groups do not support ‘extend message’ elements
  • Issue 151: Negative hexadecimal numbers are not supported
  • Issue 152: Escaped literals in Strings not supported
  • Issue 153: ‘-inf’ is not supported as default value of double or float options
  • Issue 154: Allow more than one semicolon at the end of a message field.
  • Issue 155: Editor does not support complex custom options.
  • Issue 156: Editor does not support custom options for enum values.
  • Issue 157: Groups should be considered Types
  • Issue 158: Content assist for types does not respect scoping
  • Issue 159: Content assist for default value is broken
  • Issue 160: Proto files outside workspace should have a different icon
  • Issue 161: package scope resolution
  • Issue 164: Validate that the default value of a field matches the type of such field
  • Issue 165: Editor cannot parse unit64 value 18446744073709551615
  • Issue 166: 1. is a valid floating-point number
  • Issue 167: Package scope resolution fails with nested types
  • Issue 168: Groups can contain Messages and Extensions
  • Issue 169: “Extend” can also extend groups

Installation instructions can be found here. Please make sure you check the box “Show only the latest versions of available software” in the “Install” dialog.

Cheers,
-Alex

Jim Morris

unread,
Dec 16, 2011, 9:23:13 PM12/16/11
to proto...@googlegroups.com
Yikes this upgrade completely breaks my protobuf editor I get several errors when trying to open a .proto file...

eclipse.buildId=M20110909-1335
java.version=1.6.0_29
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.java.product

java.lang.NoClassDefFoundError: com/google/inject/internal/Maps
    at com.google.eclipse.protobuf.ui.outline.OutlineViewModel.<init>(OutlineViewModel.java:29)
    at com.google.eclipse.protobuf.ui.outline.ProtobufOutlineTreeProvider._createChildren(ProtobufOutlineTreeProvider.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.eclipse.xtext.util.PolymorphicDispatcher.invoke(PolymorphicDispatcher.java:291)
    at org.eclipse.xtext.ui.editor.outline.impl.DefaultOutlineTreeProvider.createChildren(DefaultOutlineTreeProvider.java:79)
    at org.eclipse.xtext.ui.editor.outline.impl.AbstractOutlineNode$1.process(AbstractOutlineNode.java:80)
    at org.eclipse.xtext.ui.editor.outline.impl.AbstractOutlineNode$1.process(AbstractOutlineNode.java:1)
    at org.eclipse.xtext.util.concurrent.IUnitOfWork$Void.exec(IUnitOfWork.java:36)
    at org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode$1.exec(DocumentRootNode.java:47)
    at org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode$1.exec(DocumentRootNode.java:1)
    at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.readOnly(AbstractReadWriteAcces.java:32)
    at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:78)
    at org.eclipse.xtext.ui.editor.outline.impl.DocumentRootNode.readOnly(DocumentRootNode.java:44)
    at org.eclipse.xtext.ui.editor.outline.impl.AbstractOutlineNode.getChildren(AbstractOutlineNode.java:77)
    at org.eclipse.xtext.ui.editor.outline.impl.OutlineNodeContentProvider.getChildren(OutlineNodeContentProvider.java:43)
    at org.eclipse.xtext.ui.editor.outline.impl.OutlineNodeContentProvider.getElements(OutlineNodeContentProvider.java:39)
    at org.eclipse.jface.viewers.StructuredViewer.getRawChildren(StructuredViewer.java:1010)
    at org.eclipse.jface.viewers.ColumnViewer.getRawChildren(ColumnViewer.java:703)
    at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1336)
    at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:391)
    at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:917)
    at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:605)
    at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:805)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
    at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:782)
    at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:644)
    at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:753)
    at org.eclipse.jface.viewers.AbstractTreeViewer.internalInitializeTree(AbstractTreeViewer.java:1533)
    at org.eclipse.jface.viewers.TreeViewer.internalInitializeTree(TreeViewer.java:833)
    at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:1517)
    at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)
    at org.eclipse.jface.viewers.TreeViewer.preservingSelection(TreeViewer.java:403)
    at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1404)
    at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:1510)
    at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:280)
    at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1690)
    at org.eclipse.xtext.ui.editor.outline.impl.OutlinePage$4.run(OutlinePage.java:217)
    at org.eclipse.xtext.ui.util.DisplayRunHelper.runAsyncInDisplayThread(DisplayRunHelper.java:29)
    at org.eclipse.xtext.ui.editor.outline.impl.OutlinePage.refreshViewer(OutlinePage.java:212)
    at org.eclipse.xtext.ui.editor.outline.impl.OutlinePage.configureTree(OutlinePage.java:93)
    at org.eclipse.xtext.ui.editor.outline.impl.OutlinePage.createControl(OutlinePage.java:75)
    at org.eclipse.ui.views.contentoutline.ContentOutline.doCreatePage(ContentOutline.java:137)
    at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:408)
    at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:751)
    at org.eclipse.ui.views.contentoutline.ContentOutline.partBroughtToTop(ContentOutline.java:212)
    at org.eclipse.ui.part.PageBookView$4.partBroughtToTop(PageBookView.java:1018)
    at org.eclipse.ui.internal.PartListenerList2$2.run(PartListenerList2.java:85)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.core.runtime.Platform.run(Platform.java:888)
    at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:55)
    at org.eclipse.ui.internal.PartListenerList2.firePartBroughtToTop(PartListenerList2.java:83)
    at org.eclipse.ui.internal.PartService.firePartBroughtToTop(PartService.java:212)
    at org.eclipse.ui.internal.WorkbenchPagePartList.firePartBroughtToTop(WorkbenchPagePartList.java:76)
    at org.eclipse.ui.internal.WorkbenchPagePartList.fireActiveEditorChanged(WorkbenchPagePartList.java:52)
    at org.eclipse.ui.internal.PartList.setActiveEditor(PartList.java:162)
    at org.eclipse.ui.internal.WorkbenchPage.makeActiveEditor(WorkbenchPage.java:1355)
    at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3629)
    at org.eclipse.ui.internal.WorkbenchPage.internalActivate(WorkbenchPage.java:691)
    at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:663)
    at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2957)
    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.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:355)
    at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:164)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249)
    at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275)
    at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:376)
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:538)
    at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48)
    at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866)
    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:864)
    at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152)
    at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256)
    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:3588)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
    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:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    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)
Caused by: java.lang.ClassNotFoundException: com.google.inject.internal.Maps
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 115 more

Jim Morris

unread,
Dec 16, 2011, 9:32:17 PM12/16/11
to proto...@googlegroups.com
Where is the older version? I am completely hosed now as I cannot edit my .proto files in eclipse!

I looked at the update site and the older version has already been removed :(

Jim Morris

unread,
Dec 17, 2011, 12:27:35 AM12/17/11
to proto...@googlegroups.com
Ok after several hours I have tracked down the problem. The current release version if XText is 2.2, and that is what it will update to. However protobuf-dt does not work with that version, you can see the errors above.

In order to get protobuf-dt to work at all, you need to uninstall xtext, then specifically install 2.1.1 and only the Xtext Runtime and the Xtext UI components.

Then reinstall protobuf-dt and it seems to work.

However this is not sustainable as xtext will upgrade to 2.2 the next time update is done.

Alex Ruiz

unread,
Dec 17, 2011, 4:35:35 PM12/17/11
to proto...@googlegroups.com
Jim,

Sorry you have to go to all that trouble. There are issues with upgrading to Xtext 2.2. That's why I mentioned in the release notes, the wiki and the front page that the plug-ing works with 2.1.1. I guess I should have been more specific and say something like "do not use Xtext 2.2".

I'll already mentioned to the Xtext guys this issue. I'll follow up with them.

-Alex


--
You received this message because you are subscribed to the Google Groups "protobuf-dt" group.
To view this discussion on the web visit https://groups.google.com/d/msg/protobuf-dt/-/WvQouQkMrEMJ.

To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to protobuf-dt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/protobuf-dt?hl=en.

Jim Morris

unread,
Dec 17, 2011, 6:09:51 PM12/17/11
to proto...@googlegroups.com
Thanks Alex. I actually saw the instructions about using xtext 2.1.1, However installing it is non-trivial as there are a lot of things presented to you when you try to install it, plus as soon as you allow Eclipse to upgrade it will install 2.2 unless you notice it and disable it.

Also you may want to spell out exactly what to install when you go to the xtext update site, as I show the following is what seems to be needed, it is overkill installing the entire xtext SDK.

  Xtext Runtime    2.1.1.v201111141332    org.eclipse.xtext.runtime.feature.group    Eclipse Modeling Project
  Xtext UI    2.1.1.v201111141332    org.eclipse.xtext.ui.feature.group    Eclipse Modeling Project

From xtext - http://download.eclipse.org/modeling/tmf/xtext/updates/composite/releases/

Then scroll down and find TMF Xtext-2.1.1 (2.1.x) then open that up and select..

Xtext UI and Xtext Runtime

Hope that helps.

Alex Ruiz

unread,
Dec 24, 2011, 3:14:38 PM12/24/11
to proto...@googlegroups.com
Thanks Jim! I'll update the installation instructions :)

Cheers,
-Alex

--
You received this message because you are subscribed to the Google Groups "protobuf-dt" group.
To view this discussion on the web visit https://groups.google.com/d/msg/protobuf-dt/-/TCyuqbHGf0kJ.
Reply all
Reply to author
Forward
0 new messages