Skip to content

Instantly share code, notes, and snippets.

@hyangah
hyangah / gist:fdcbc610c7617dedb655a3dc9ff4c858
Created February 18, 2021 20:20
pr2335: test failure on windows
--- FAIL: TestLaunchDebugRequest (5.26s)
server_test.go:2066: Test server stderr is not empty:
2021-02-18T15:12:02-05:00 error layer=dap Process 11960 has exited with status 0
could not remove C:\Users\golang\code\delve\service\dap\__debug_bin: remove C:\Users\golang\code\delve\service\dap\__debug_bin: Access is denied.
DAP server listening at: [::]:58201
Connecting to server at: [::]:58201
PASS
2021-02-18T15:12:06-05:00 error layer=dap Process 1552 has exited with status 0
could not remove C:\Users\golang\code\delve\service\dap\__mytestdir: remove C:\Users\golang\code\delve\service\dap\__mytestdir: Access is denied.
@hyangah
hyangah / gist:c130271282234f6213f7856882f03254
Created September 1, 2020 20:43
gopls test failure golang.org/cl/251081
1) File watching API
[Trace - 16:35:09.318 PM] Sending request 'initialize - (0)'.
Params: {"processId":15940,"clientInfo":{"name":"vscode","version":"1.49.0-insider"},"rootPath":"/Users/hakim/projects/google/vscode-go/test/gopls/testfixtures/src/workspace","rootUri":"file:///Users/hakim/projects/google/vscode-go/test/gopls/testfixtures/src/workspace","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional"},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand":{"dynamicRegistration":true},"configuration":true,"workspaceFolders":true},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]}},"synchronization":{"dynamicRegis
@hyangah
hyangah / tpn.go
Created February 6, 2020 21:43
vscode-go thirdpartynotices.txt update program
package main
import (
"encoding/json"
"io/ioutil"
"log"
"os"
"os/exec"
"path/filepath"
"sort"
@hyangah
hyangah / golang.org_cl_99035
Last active March 29, 2018 22:33
execution tracer UI screenshots
We couldn’t find that file to show.
https://go-review.googlesource.com/c/go/+/76373
go test -test=Symbolize -cpuprofile=/tmp/cpuprof
@hyangah
hyangah / STW-marktermination.png
Last active October 20, 2017 16:14
execution tracer screenshots
STW-marktermination.png
@hyangah
hyangah / gist:84abca54e260c7b11c81
Created March 3, 2016 15:08
x/mobile/internal/binres test failure
go test -v
=== RUN TestBootstrap
--- PASS: TestBootstrap (0.00s)
binres_test.go:181: Pool(0): "versionCode"
binres_test.go:181: Pool(1): "versionName"
binres_test.go:181: Pool(2): "minSdkVersion"
binres_test.go:181: Pool(3): "name"
binres_test.go:181: Pool(4): "label"
binres_test.go:181: Pool(5): "allowBackup"
binres_test.go:181: Pool(6): "hasCode"
@hyangah
hyangah / gist:35e4a1e89b05de554ce8
Created December 23, 2014 16:53
example/libhello: http get without crash https://go-review.googlesource.com/2067 patch set 3.
adb logcat | grep 24795
V/Zygote (24795): Switching descriptor 33 to /dev/null
V/Zygote (24795): Switching descriptor 10 to /dev/null
D/dalvikvm(24795): Late-enabling CheckJNI
I/ActivityManager( 496): Start proc com.example.hello for activity com.example.hello/.MainActivity: pid=24795 uid=10182 gids={50182, 3003, 1028, 1015}
D/ActivityThread(24795): handleBindApplication:com.example.hello
D/ActivityThread(24795): setTargetHeapUtilization:0.75
D/ActivityThread(24795): setTargetHeapMinFree:524288
D/dalvikvm(24795): Trying to load lib /data/app-lib/com.example.hello-1/libgojni.so 0x4244a7d8
D/dalvikvm(24795): Added shared lib /data/app-lib/com.example.hello-1/libgojni.so 0x4244a7d8
adb logcat | grep 24525
V/Zygote (24525): Switching descriptor 33 to /dev/null
V/Zygote (24525): Switching descriptor 10 to /dev/null
D/dalvikvm(24525): Late-enabling CheckJNI
I/ActivityManager( 496): Start proc com.example.hello for activity com.example.hello/.MainActivity: pid=24525 uid=10181 gids={50181, 3003, 1028, 1015}
D/ActivityThread(24525): handleBindApplication:com.example.hello
D/ActivityThread(24525): setTargetHeapUtilization:0.75
D/ActivityThread(24525): setTargetHeapMinFree:524288
D/dalvikvm(24525): Trying to load lib /data/app-lib/com.example.hello-2/libgojni.so 0x42449700
D/dalvikvm(24525): Added shared lib /data/app-lib/com.example.hello-2/libgojni.so 0x42449700
@hyangah
hyangah / gist:0b1225eb3b164096ef87
Last active August 29, 2015 14:11
example for golang/go issue 9398?
diff --git a/example/libhello/hi/hi.go b/example/libhello/hi/hi.go
index a1e868b..cf3ec23 100644
--- a/example/libhello/hi/hi.go
+++ b/example/libhello/hi/hi.go
@@ -4,5 +4,6 @@ package hi
import "fmt"
func Hello(name string) {
+ panic("End of the World...")
fmt.Printf("Hello, %s!\n", name)