Protobuf-dt 1.2.0 released

157 views
Skip to first unread message

Alex Ruiz

unread,
Jan 25, 2012, 5:09:32 PM1/25/12
to proto...@googlegroups.com
I'm happy to announce that protobuf-dt 1.2.0 is out!

Changelog:

  • Issue 163 : Compiler errors reporting
  • Issue 171 : Does not work with current release 0f Xtext 2.2
  • Issue 174 : Content assistance too eager to provide field id.
  • Issue 177 : Typing semicolon too fast does not generate tag number.
  • Issue 178 : Editor does not support multi-line qualified names
  • Issue 179 : Add support for 'stream'
  • Issue 181 : Scoping of custom option sources is not reliable
  • Issue 182 : Add support for "import weak"
  • Issue 183 : Verify that bug 349511 has been fixed in Xtext
  • Issue 184 : Scientific notation for float numbers does not support '+'
  • Issue 185 : Values of options should allow "{}"
  • Issue 186 : Imports with unresolved URIs should not have hyperlinks
  • Issue 187 : References to types other than messages in descriptor.proto cannot be resolved.
  • Issue 188 : Custom options fields can have a comma at the end
  • Issue 189 : Scoping should resolve to the closest type possible
  • Issue 190 : Show protoc's output in Eclipse console

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,
Jan 25, 2012, 5:24:19 PM1/25/12
to proto...@googlegroups.com
Hi Alex,

Thanks for the update.

I updated to xtext 2.2.1 and dt 1.2.0 But now my eclipse is throwing errors all over the place and is totally unstable.
I looked through the errors and did not see anything specific to xtext or dt.

I have uninstalled both dt and xtext and it is stable again.

However I need to go back to the last release of DT to continue working, so where can I find that as the update site has removed the older version.

Also exactly what parts of xtext did you install? I just installed the runtime and ui components.

Thanks

Alex Ruiz

unread,
Jan 25, 2012, 7:03:42 PM1/25/12
to proto...@googlegroups.com
Hi Jim,

I tested the plug-in before releasing it in several computers. The key here I think is that all of them already had Xtext 2.2.1 SDK installed. I haven't tried installing the plug-in with other than the SDK. Please try installing the Xtext SDK for now till I figure out what is going on.

Please let me know how it goes (and sorry for the trouble!)

Thanks!
-Alex

Jim Morris

unread,
Jan 25, 2012, 7:10:57 PM1/25/12
to proto...@googlegroups.com
Here are more details...

I removed xtext and protbuf-dt. Did an install of xtext 2.2.1 and the latest protobuf.
edited a .proto file, and saved it.

I get a Problem Occurred dialog saying...
'Reveal End of Document; has encountered a problem, an internal error has occured, Argument not valid.

The two error logs follow...

java.lang.IllegalArgumentException: Argument not valid
    at org.eclipse.swt.SWT.error(SWT.java:4263)
    at org.eclipse.swt.SWT.error(SWT.java:4197)
    at org.eclipse.swt.SWT.error(SWT.java:4168)
    at org.eclipse.swt.graphics.TextStyle.<init>(TextStyle.java:171)
    at org.eclipse.swt.custom.StyleRange.<init>(StyleRange.java:78)
    at org.eclipse.swt.custom.StyleRange.<init>(StyleRange.java:93)
    at org.eclipse.ui.internal.console.IOConsolePartition.getStyleRange(IOConsolePartition.java:144)
    at org.eclipse.ui.internal.console.IOConsolePartitioner.getStyleRanges(IOConsolePartitioner.java:695)
    at org.eclipse.ui.console.TextConsoleViewer.lineGetStyle(TextConsoleViewer.java:226)
    at org.eclipse.swt.custom.StyledTextListener.handleEvent(StyledTextListener.java:48)
    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.Widget.sendEvent(Widget.java:1282)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061)
    at org.eclipse.swt.custom.StyledText.sendLineEvent(StyledText.java:8023)
    at org.eclipse.swt.custom.StyledText.getLineStyleData(StyledText.java:4154)
    at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:794)
    at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:720)
    at org.eclipse.swt.custom.StyledText.getPointAtOffset(StyledText.java:5419)
    at org.eclipse.swt.custom.StyledText.setCaretLocation(StyledText.java:8357)
    at org.eclipse.swt.custom.StyledText.scrollVertical(StyledText.java:7918)
    at org.eclipse.swt.custom.StyledText.setTopIndex(StyledText.java:9945)
    at org.eclipse.ui.console.TextConsoleViewer$3.runInUIThread(TextConsoleViewer.java:116)
    at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
    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)


and

org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.IllegalArgumentException: Argument not valid)
    at org.eclipse.swt.SWT.error(SWT.java:4282)
    at org.eclipse.swt.SWT.error(SWT.java:4197)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:138)
    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3563)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3212)
    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.IllegalArgumentException: Argument not valid
    at org.eclipse.swt.SWT.error(SWT.java:4263)
    at org.eclipse.swt.SWT.error(SWT.java:4197)
    at org.eclipse.swt.SWT.error(SWT.java:4168)
    at org.eclipse.swt.graphics.TextStyle.<init>(TextStyle.java:171)
    at org.eclipse.swt.custom.StyleRange.<init>(StyleRange.java:78)
    at org.eclipse.swt.custom.StyleRange.<init>(StyleRange.java:93)
    at org.eclipse.ui.internal.console.IOConsolePartition.getStyleRange(IOConsolePartition.java:144)
    at org.eclipse.ui.internal.console.IOConsolePartitioner.getStyleRanges(IOConsolePartitioner.java:695)
    at org.eclipse.ui.console.TextConsoleViewer.lineGetStyle(TextConsoleViewer.java:226)
    at org.eclipse.swt.custom.StyledTextListener.handleEvent(StyledTextListener.java:48)
    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.Widget.sendEvent(Widget.java:1282)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
    at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061)
    at org.eclipse.swt.custom.StyledText.sendLineEvent(StyledText.java:8023)
    at org.eclipse.swt.custom.StyledText.getLineStyleData(StyledText.java:4154)
    at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:794)
    at org.eclipse.swt.custom.StyledTextRenderer.getTextLayout(StyledTextRenderer.java:720)
    at org.eclipse.swt.custom.StyledText.getPointAtOffset(StyledText.java:5419)
    at org.eclipse.swt.custom.StyledText.setCaretLocation(StyledText.java:8357)
    at org.eclipse.swt.custom.StyledText.reset(StyledText.java:7785)
    at org.eclipse.swt.custom.StyledText.handleTextSet(StyledText.java:6271)
    at org.eclipse.swt.custom.StyledText$6.textSet(StyledText.java:5618)
    at org.eclipse.ui.internal.console.ConsoleDocumentAdapter.setWidth(ConsoleDocumentAdapter.java:390)
    at org.eclipse.ui.console.TextConsoleViewer$5.run(TextConsoleViewer.java:568)
    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
    ... 22 more

Alex Ruiz

unread,
Jan 25, 2012, 7:40:30 PM1/25/12
to proto...@googlegroups.com
Hi Jim,

Thanks for the stack trace. I did encounter this problem when changing colors of the console (now protobuf-dt prints protoc's output to Eclipse's console,) but after using an UIJob it went away. 

What OS are you using? 

It seems that I must disable colors in the console and release 1.2.1.

Cheers,
-Alex

Alex Ruiz

unread,
Jan 25, 2012, 7:42:13 PM1/25/12
to proto...@googlegroups.com
Jim, I forgot to ask you, when do you get this error - when saving a file (obviously you have protoc integration enabled) or when you open Eclipse? I'm guessing you are getting it when opening Eclipse, and at that time the Display is null, and the console fails to set colors.

Cheers,
-Alex

Jim Morris

unread,
Jan 25, 2012, 9:34:40 PM1/25/12
to proto...@googlegroups.com
I get it when I save the file, I am on Linux.

Jim Morris

unread,
Jan 25, 2012, 9:36:01 PM1/25/12
to proto...@googlegroups.com
Doing a full install including the SDK of xtext did not help, it still gets the same error when I save the proto file.

Jim Morris

unread,
Jan 25, 2012, 9:50:25 PM1/25/12
to proto...@googlegroups.com
It now seems to get that error when I start up too, then eclipse gets totally hosed, and I get a bunch of errors.

If it is a console problem I should mention I also have Android development installed which has a DDMS and and Android console open.

Alex Ruiz

unread,
Jan 26, 2012, 12:57:50 PM1/26/12
to proto...@googlegroups.com
Hi Jim,

ADT may be (or may be not) the source of the problem. The best thing to do is to ignore any exceptions thrown when setting the color of the console. The worst case scenario would be to have a black & white console, which is really no big deal.

Please file a bug. It would be great if you can include a stack trace, just to confirm this is the source of the problem.

I'll have it fixed ASAP. Please file a bug first.

Thanks,
-Alex

Jim Morris

unread,
Jan 26, 2012, 5:16:25 PM1/26/12
to proto...@googlegroups.com
unfortunately I can't ignore the error, as a dialog pops up everytime and eclipse destabilizes and stop responding.

I'll file a bug.

Alex Ruiz

unread,
Jan 26, 2012, 5:54:54 PM1/26/12
to proto...@googlegroups.com
Jim, I meant that the fix (for now, so you can continue working) will be to ignore any exceptions thrown while setting colors to the console.

Cheers,
-Alex

Alex Ruiz

unread,
Jan 27, 2012, 5:06:07 AM1/27/12
to proto...@googlegroups.com
Jim,

I implemented a fix and uploaded a new version (for development purposes only) in the update site http://protobuf-dt.googlecode.com/git/update-site/development

Please confirm the issue is fixed. If it is, I'll release 1.2.1 using the regular update site.

Thanks,
-Alex

Jim Morris

unread,
Jan 27, 2012, 5:21:27 AM1/27/12
to proto...@googlegroups.com
Yup it seems to fix the problem. Thanks

Alex Ruiz

unread,
Jan 27, 2012, 5:26:42 AM1/27/12
to proto...@googlegroups.com
Great! thanks for confirming it works. Releasing 1.2.1 in a few minutes.

-Alex

On Fri, Jan 27, 2012 at 2:21 AM, Jim Morris <wolf...@gmail.com> wrote:
Yup it seems to fix the problem. Thanks


--
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/-/zMuxQ1PrufAJ.

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.

100610...@gmail.com

unread,
Apr 20, 2016, 10:05:04 PM4/20/16
to protobuf-dt

在 2012年1月27日星期五 UTC+8下午6:21:27,Wolfmanjm写道:
Yup it seems to fix the problem. Thanks

你好,protobuf,怎么在eclipse里面下载不了?
Reply all
Reply to author
Forward
0 new messages