go-lang-plugin-org / go-lang-idea-plugin

Google Go language IDE built using the IntelliJ Platform
https://plugins.jetbrains.com/plugin/5047
Other
4.56k stars 571 forks source link

Debug: could not launch process: could not get thread count #2810

Closed richardpeng closed 7 years ago

richardpeng commented 8 years ago
could not launch process: could not get thread count
Process finished with exit code 1

This issue started when I updated to the latest version of macOS Sierra. I can still Run Applications using the IDE, just not Debug.

package main

import "fmt"

func main()  {
    fmt.Println("hello world")
}
qianshangding commented 8 years ago

me too

petr-korobeinikov commented 8 years ago

This is a known delve issue: derekparker/delve/issues/645.

oferitz commented 8 years ago

Seems like the delve issue (derekparker/delve#645) was fixed. Can we have it fixed here also?

dlsniper commented 8 years ago

@oferitz it seems the issue is still open. Until it's merged into delve I don't think we should build our own delve. @zolotov / @ignatov what do you think/

oferitz commented 8 years ago

@dlsniper you are right i was confused by #577. it's probably good idea to wait.

oferitz commented 7 years ago

Seems like the delve issue was fixed and merged. Can we have it fixed here also?

itzg commented 7 years ago

When is the planned release for this fix into the plugin and/or Gogland?

zolotov commented 7 years ago

@itzg it was fixed in plugin 20th December and in the Gogland in the very first EAP. What's the version you use?

itzg commented 7 years ago

@zolotov I just installed Gogland to eliminate the possibility I had dirtied my IntelliJ install, so I'm running

Gogland (1.0 Preview) 1.0 EAP
Build #GO-163.10615.22, built on January 9, 2017
Gogland EAP User
Expiration date: April 9, 2017
JRE: 1.8.0_112-release-b460 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Since I'm working on an open source project, here's the execution line and error:

/usr/local/Cellar/go/1.7.4_1/libexec/bin/go test -c -o "/private/var/folders/xf/96hzdx9n24s22r3_2wnw4_bxns4t3x/T/TestEleSession_HeartbeatSending in session_test.go (1)go" -gcflags "-N -l" github.com/racker/rackspace-monitoring-poller/poller
"/Applications/Gogland 1.0 EAP.app/Contents/bin/dlv" --listen=localhost:51220 --headless=true --api-version=2 exec "/private/var/folders/xf/96hzdx9n24s22r3_2wnw4_bxns4t3x/T/TestEleSession_HeartbeatSending in session_test.go (1)go" -- -test.v -test.run ^TestEleSession_HeartbeatSending$

could not launch process: could not get thread count

Process finished with exit code 1
itzg commented 7 years ago

...and checking dlv version specifically:

~ "/Applications/Gogland 1.0 EAP.app/Contents/bin/dlv" version
Delve Debugger
Version: 0.11.0-alpha
Build:
zolotov commented 7 years ago

@itzg likely it's the issue of delve, so it makes sense to help delve-maintainers to recreate this issue.

@dlsniper @ignatov could you look at it, please?

itzg commented 7 years ago

FYI, this is definitely still a delve issue since I recreated their code signing cert and built latest from master with same results when running dlv debug directly. I'll find or report a new issue over there.

zolotov commented 7 years ago

@itzg thank you for update and investigation

itzg commented 7 years ago

@zolotov , thank you for you ultra-fast responses.

Here is the new issue I opened https://github.com/derekparker/delve/issues/714

linuxcer commented 6 years ago

in your go project path, run follows command

go get github.com/derekparker/delve/cmd/dlv
cd src/github.com/derekparker/delve/cmd/dlv
go build 
mv ~/Library/Application\ Support/IdeaIC2016.2/Go/lib/dlv/mac/dlv ~/Library/Application\ Support/IdeaIC2016.2/Go/lib/dlv/mac/dlv_bak
cp dlv ~/Library/Application\ Support/IdeaIC2016.2/Go/lib/dlv/mac/

ok, it's works!

dolphinsboy commented 5 years ago

@linuxcer It works for me, thank you!

IntelliJ IDEA 2017.3.4 (Ultimate Edition) JRE: 1.8.0_152-release-1024-b11 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.13.3