Closed keith198 closed 8 years ago
@keith198 can you please share an example for this? Thanks.
When I start debug from a run configuration here is what I get in the console… C:\Users\f059375.IdeaIC2016.2\config\plugins\Go\lib\dlv\windows\dlv.exe --listen=localhost:49927 --headless=true exec C:\Users\f059375\AppData\Local\Temp\HelloWorldgo -- GOROOT=C:/GO GOPATH=C:/GO;C:/Users/f059375/myGo C:/GO\bin\go.exe build -o C:\Users\f059375\AppData\Local\Temp\HelloWorldgo -gcflags "-N -l" C:\Users\f059375\myGo\HelloWorld\src\hello.go API server listening at: 127.0.0.1:49927
n And then it hangs there
Here is the exception in the log, note the JSON PC value
2016-08-02 15:55:18,129 [1531626] INFO - #com.goide.dlv.DlvVm - OUT: {"method":"RPCServer.Command","params":[{"Name":"continue"}],"id":1} 2016-08-02 15:55:18,150 [1531647] INFO - #com.goide.dlv.DlvVm - IN: {"id":1,"result":{"currentThread":{"id":19340,"pc":8791751565421,"file":"","line":0,"goroutineID":0,"breakPointInfo":null},"Threads":[{"id":19340,"pc":8791751565421,"file":"","line":0,"goroutineID":0,"breakPointInfo":null}],"NextInProgress":false,"exited":false,"exitStatus":0},"error":null} 2016-08-02 15:55:18,188 [1531685] INFO - #com.goide.dlv.DlvDebugProcess - java.lang.NumberFormatException: Expected an int but was 8791751565421 at line 1 column 48 path $.currentThread.pc com.google.gson.JsonSyntaxException: java.lang.NumberFormatException: Expected an int but was 8791751565421 at line 1 column 48 path $.currentThread.pc at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:249) at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:239) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:117) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:217) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:117) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:217) at com.google.gson.Gson.fromJson(Gson.java:861) at com.goide.dlv.DlvCommandProcessor.readResult(DlvCommandProcessor.java:84) at com.goide.dlv.DlvCommandProcessor.readResult(DlvCommandProcessor.java:36) at org.jetbrains.rpc.RequestPromise.onSuccess(CommandSenderBase.kt:45) at com.goide.dlv.DlvCommandProcessor.call(DlvCommandProcessor.java:59) at com.goide.dlv.DlvCommandProcessor.call(DlvCommandProcessor.java:36) at org.jetbrains.rpc.MessageManager.processIncoming(MessageManager.kt:102) at com.goide.dlv.DlvCommandProcessor.processIncomingJson(DlvCommandProcessor.java:53) at com.goide.dlv.DlvVm$2.messageReceived(DlvVm.java:61) at org.jetbrains.io.SimpleChannelInboundHandlerAdapter.channelRead0(SimpleChannelInboundHandlerAdapter.java:20) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:334) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:326) at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:334) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:326) at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1320) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:334) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:905) at io.netty.channel.oio.AbstractOioByteChannel.doRead(AbstractOioByteChannel.java:162) at io.netty.channel.oio.AbstractOioChannel$1.run(AbstractOioChannel.java:38) at io.netty.channel.ThreadPerChannelEventLoop.run(ThreadPerChannelEventLoop.java:67) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:742) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.NumberFormatException: Expected an int but was 8791751565421 at line 1 column 48 path $.currentThread.pc at com.google.gson.stream.JsonReader.nextInt(JsonReader.java:1179) at com.google.gson.internal.bind.TypeAdapters$7.read(TypeAdapters.java:247) ... 35 more 2016-08-02 15:57:41,101 [1674598] INFO - #com.goide.dlv.DlvVm - OUT: {"method":"RPCServer.CreateBreakpoint","params":[{"file":"C:/Users/f059375/myGo/HelloWorld/src/hello.go","line":6}],"id":2} 2016-08-02 15:57:41,211 [1674708] INFO - #com.goide.dlv.DlvVm - IN: {"id":2,"result":{"i
From: Florin Pățan [mailto:notifications@github.com] Sent: Tuesday, August 02, 2016 4:23 PM To: go-lang-plugin-org/go-lang-idea-plugin Cc: Thompson, Keith L; Mention Subject: Re: [go-lang-plugin-org/go-lang-idea-plugin] go plugin throws number format exception in log (#2707)
@keith198https://github.com/keith198 can you please share an example for this? Thanks.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/go-lang-plugin-org/go-lang-idea-plugin/issues/2707#issuecomment-237031426, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AT1rSo3t6XR3zMJQErLcSmM7iRysT5V4ks5qb6cUgaJpZM4JbAke.
This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries and affiliates (collectively, "JPMC").
This transmission may contain information that is proprietary, privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Although this transmission and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by JPMC for any loss or damage arising in any way from its use. Please note that any electronic communication that is conducted within or through JPMC's systems is subject to interception, monitoring, review, retention and external production in accordance with JPMC's policy and local laws, rules and regulations; may be stored or otherwise processed in countries other than the country in which you are located; and will be treated in accordance with JPMC policies and applicable laws and regulations.
Please refer to http://www.jpmorgan.com/pages/disclosures for disclosures relating to European legal entities.
C:\Users\f059375.IdeaIC2016.2\config\plugins\Go\lib\dlv\windows\dlv.exe --listen=localhost:49927 --headless=true exec C:\Users\f059375\AppData\Local\Temp\HelloWorldgo -- GOROOT=C:/GO GOPATH=C:/GO;C:/Users/f059375/myGo C:/GO\bin\go.exe build -o C:\Users\f059375\AppData\Local\Temp\HelloWorldgo -gcflags "-N -l" C:\Users\f059375\myGo\HelloWorld\src\hello.go API server listening at: 127.0.0.1:49927
with log having below exception (see PC value)