Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/gopls/internal/lsp/cache: fatal error: concurrent map iteration and map write #43972

Closed
karl-gustav opened this issue Jan 28, 2021 · 2 comments
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@karl-gustav
Copy link

gopls version: v0.6.4
gopls flags:
extension version: 0.22.0
environment: Visual Studio Code

ATTENTION: PLEASE PROVIDE THE DETAILS REQUESTED BELOW.

Describe what you observed.

I updated the gopls verision. This happended a while afterwards.

Please attach the stack trace from the crash.
A window with the error message should have popped up in the lower half of your screen.
Please copy the stack trace and error messages from that window and paste it in this issue.

[Info - 8:25:42 AM] 2021/01/28 08:25:42 go env for /Users/kgr/git/iscu-integration
(root /Users/kgr/git/iscu-integration)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GOFLAGS=
GOINSECURE=
GOPRIVATE=github.com/hkraftno
GONOSUMDB=github.com/hkraftno
GOROOT=/usr/local/go
GOSUMDB=sum.golang.org
GO111MODULE=
GOMOD=/Users/kgr/git/iscu-integration/go.mod
GOMODCACHE=/Users/kgr/go/pkg/mod
GOPATH=/Users/kgr/go
GONOPROXY=github.com/hkraftno
GOPROXY=https://proxy.golang.org,direct
GOCACHE=/Users/kgr/Library/Caches/go-build

[Info - 8:25:42 AM] 2021/01/28 08:25:42 go env for /Users/kgr/git/iscu-integration/functions/workorderexporter
(root /Users/kgr/git/iscu-integration/functions/workorderexporter)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GOCACHE=/Users/kgr/Library/Caches/go-build
GOPATH=/Users/kgr/go
GOINSECURE=
GOMOD=/Users/kgr/git/iscu-integration/functions/workorderexporter/go.mod
GOMODCACHE=/Users/kgr/go/pkg/mod
GONOSUMDB=github.com/hkraftno
GOROOT=/usr/local/go
GOPRIVATE=github.com/hkraftno
GOPROXY=https://proxy.golang.org,direct
GONOPROXY=github.com/hkraftno
GO111MODULE=
GOFLAGS=
GOSUMDB=sum.golang.org

[Info - 8:25:42 AM] 2021/01/28 08:25:42 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

[Info - 8:25:43 AM] 2021/01/28 08:25:43 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[builtin github.com/hkraftno/iscu-integration/...]
packages=141

[Error - 8:25:45 AM] 2021/01/28 08:25:45 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/main.go:96:1: expected expression (and 6 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go"

[Error - 8:25:45 AM] 2021/01/28 08:25:45 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/main.go:96:1: expected expression (and 6 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go"

[Error - 8:25:46 AM] 2021/01/28 08:25:46 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/main.go:96:1: expected expression (and 6 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go"

[Info - 8:26:18 AM] 2021/01/28 08:26:18 background imports cache refresh starting

[Info - 8:26:18 AM] 2021/01/28 08:26:18 background refresh finished after 76.852876ms

[Error - 8:26:33 AM] 2021/01/28 08:26:33 go/packages.Load: go [-e -json -compiled=true -test=true -export=false -deps=true -find=false -- github.com/hkraftno/iscu-integration/functions/workorderexporter]: exit status 1: go: inconsistent vendoring in /Users/kgr/git/iscu-integration/functions/workorderexporter:
cloud.google.com/go@v0.74.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/hkraftno/iscu-integration@v0.0.0-20201230100031-0ef1bdcf2643: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/hkraftno/service-definitions@v0.0.0-20191216132531-f47c3ea22cc3: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
go.uber.org/zap@v1.16.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/hkraftno/iscu-integration: is replaced in go.mod, but not marked as replaced in vendor/modules.txt
github.com/hkraftno/service-definitions: is replaced in go.mod, but not marked as replaced in vendor/modules.txt

run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory

snapshot=42
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[github.com/hkraftno/iscu-integration/functions/workorderexporter]
packages=0

[Info - 8:26:34 AM] 2021/01/28 08:26:34 go/packages.Load
snapshot=42
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[github.com/hkraftno/iscu-integration/functions/workorderexporter]
packages=1

[Info - 8:26:34 AM] 2021/01/28 08:26:34 go/packages.Load
snapshot=42
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/haugnett.go /Users/kgr/git/iscu-integration/functions/workorderexporter/main.go /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]

fatal error: concurrent map iteration and map write

goroutine 20063 [running]:
runtime.throw(0x1a1bc0c, 0x26)
/usr/local/go/src/runtime/panic.go:1116 +0x72 fp=0xc0293eb010 sp=0xc0293eafe0 pc=0x1038a12
runtime.mapiternext(0xc0293eb108)
/usr/local/go/src/runtime/map.go:853 +0x554 fp=0xc0293eb090 sp=0xc0293eb010 pc=0x1012e94
golang.org/x/tools/internal/lsp/cache.(*snapshot).knownFilesInDir(0xc0251a42a0, 0x1b2f680, 0xc01e755080, 0xc02a3400e0, 0x70, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/snapshot.go:720 +0xa5 fp=0xc0293eb178 sp=0xc0293eb090 pc=0x1748685
golang.org/x/tools/internal/lsp/cache.knownFilesInDir(0x1b2f680, 0xc01e755080, 0xc01f730780, 0x2, 0x2, 0xc02a3400e0, 0x70, 0x8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/session.go:566 +0x9d fp=0xc0293eb1f0 sp=0xc0293eb178 pc=0x174189d
golang.org/x/tools/internal/lsp/cache.(*Session).ExpandModificationsToDirectories(0xc0008eabd0, 0x1b2f680, 0xc01e755080, 0xc02a380000, 0x4e7, 0x600, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/session.go:527 +0x46a fp=0xc0293eb428 sp=0xc0293eb1f0 pc=0x174132a
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles(0xc000212460, 0x1b2f680, 0xc01e755080, 0xc02a380000, 0x4e7, 0x600, 0x2, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/text_synchronization.go:222 +0x103 fp=0xc0293eb570 sp=0xc0293eb428 pc=0x1800163
golang.org/x/tools/internal/lsp.(*Server).didChangeWatchedFiles(0xc000212460, 0x1b2f680, 0xc01e755080, 0xc01e4ab140, 0x0, 0xc001d7e790)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/text_synchronization.go:172 +0x1ef fp=0xc0293eb678 sp=0xc0293eb570 pc=0x17ffaef
golang.org/x/tools/internal/lsp.(*Server).DidChangeWatchedFiles(0xc000212460, 0x1b2f680, 0xc01e755080, 0xc01e4ab140, 0xc01e4ab140, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/server_gen.go:48 +0x49 fp=0xc0293eb6b8 sp=0xc0293eb678 pc=0x17fc0a9
golang.org/x/tools/internal/lsp/protocol.serverDispatch(0x1b2f680, 0xc01e755080, 0x1b43e20, 0xc000212460, 0xc01e5d0060, 0x6015c18, 0xc01e754fc0, 0xc001d7e4d0, 0x1b2f680, 0xc01e6a2090)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/protocol/tsserver.go:147 +0x4fa7 fp=0xc0293eba20 sp=0xc0293eb6b8 pc=0x1288187
golang.org/x/tools/internal/lsp/protocol.ServerHandler.func1(0x1b2f680, 0xc01e755080, 0xc01e5d0060, 0x6015c18, 0xc01e754fc0, 0xc186fdfd5, 0x1fa2880)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/protocol/protocol.go:63 +0xc5 fp=0xc0293ebab0 sp=0xc0293eba20 pc=0x128d325
golang.org/x/tools/internal/lsp/lsprpc.handshaker.func1(0x1b2f680, 0xc01e755080, 0xc01e5d0060, 0x6015c18, 0xc01e754fc0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/lsprpc/lsprpc.go:559 +0x452 fp=0xc0293ebee0 sp=0xc0293ebab0 pc=0x180c3d2
golang.org/x/tools/internal/jsonrpc2.MustReplyHandler.func1(0x1b2f680, 0xc01e755080, 0xc011c6d5a0, 0x6015c18, 0xc01e754fc0, 0x1718001, 0x10000c01e50db08)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/jsonrpc2/handler.go:35 +0xcf fp=0xc0293ebf48 sp=0xc0293ebee0 pc=0x12694ef
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2(0xc02898f020, 0xc01e6a2210, 0xc000280180, 0x1b2f680, 0xc01e755080, 0xc011c6d5a0, 0x6015c18, 0xc01e754fc0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/jsonrpc2/handler.go:103 +0x86 fp=0xc0293ebfa0 sp=0xc0293ebf48 pc=0x1269c86
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1374 +0x1 fp=0xc0293ebfa8 sp=0xc0293ebfa0 pc=0x1070ca1
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/jsonrpc2/handler.go:100 +0x173

goroutine 1 [chan receive]:
golang.org/x/tools/internal/lsp/lsprpc.(*StreamServer).ServeStream(0xc000270820, 0x1b2f680, 0xc0003a5200, 0x1b34120, 0xc000272be0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/lsprpc/lsprpc.go:88 +0x353
golang.org/x/tools/internal/lsp/cmd.(*Serve).Run(0xc0002662b0, 0x1b2f680, 0xc00025ced0, 0xc00019e030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cmd/serve.go:110 +0x6ec
golang.org/x/tools/internal/tool.Run(0x1b2f680, 0xc00025ced0, 0x1b33280, 0xc0002662b0, 0xc00019e030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/tool/tool.go:152 +0x2a2
golang.org/x/tools/internal/lsp/cmd.(*Application).Run(0xc000266280, 0x1b2f600, 0xc00018a000, 0xc00019e030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cmd/cmd.go:147 +0x347
golang.org/x/tools/internal/tool.Run(0x1b2f600, 0xc00018a000, 0x1b33240, 0xc000266280, 0xc00019e030, 0x1, 0x1, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/tool/tool.go:152 +0x2a2
golang.org/x/tools/internal/tool.Main(0x1b2f600, 0xc00018a000, 0x1b33240, 0xc000266280, 0xc00019e030, 0x1, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/tool/tool.go:91 +0x138
main.main()
/Users/kgr/go/pkg/mod/golang.org/x/tools/gopls@v0.6.3/main.go:25 +0xdb

goroutine 21 [chan receive]:
golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory.func1(0xc000272b40, 0xc00018aed8, 0xc0001fa300, 0x1b2f680, 0xc00025ced0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/debug/serve.go:447 +0x65
created by golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/debug/serve.go:445 +0x99

goroutine 91 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).do(0xc00025cf60, 0xc000276000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/fakenet/conn.go:103 +0x1e5
golang.org/x/tools/internal/fakenet.(*fakeConn).Read(0xc0002616c0, 0xc000276000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/fakenet/conn.go:67 +0x4d
bufio.(*Reader).fill(0xc0001916e0)
/usr/local/go/src/bufio/bufio.go:101 +0x105
bufio.(*Reader).ReadSlice(0xc0001916e0, 0xa, 0x0, 0x1b2da00, 0xc00019e100, 0x6, 0x18a91a0)
/usr/local/go/src/bufio/bufio.go:360 +0x3d
bufio.(*Reader).collectFragments(0xc0001916e0, 0xc02cc89b0a, 0x1269e73, 0x40, 0x1a4e018, 0xc02898f020, 0xc01e6a2210, 0xc000280180, 0x1b2f680, 0xc01e755080, ...)
/usr/local/go/src/bufio/bufio.go:435 +0x7a
bufio.(*Reader).ReadString(0xc0001916e0, 0xa, 0xc000580400, 0xc01f824140, 0xc02cc89cd8, 0x128d811)
/usr/local/go/src/bufio/bufio.go:483 +0x4c
golang.org/x/tools/internal/jsonrpc2.(*headerStream).Read(0xc000270880, 0x1b2f680, 0xc0003a5200, 0x6015c18, 0xc01e754fc0, 0x0, 0x0, 0x1b2f680)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/jsonrpc2/stream.go:110 +0x98
golang.org/x/tools/internal/jsonrpc2.(*conn).run(0xc000272be0, 0x1b2f680, 0xc0003a5200, 0xc0000b8220)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/jsonrpc2/conn.go:196 +0xa2
created by golang.org/x/tools/internal/jsonrpc2.(*conn).Go
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/jsonrpc2/conn.go:189 +0x5d

goroutine 22 [syscall]:
syscall.syscall(0x1085ea0, 0x0, 0xc000276000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/sys_darwin.go:63 +0x2e
syscall.read(0x0, 0xc000276000, 0x1000, 0x1000, 0xc000064f28, 0x103b69c, 0xc000064d38)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1242 +0x66
syscall.Read(0x0, 0xc000276000, 0x1000, 0x1000, 0x7ffff800000, 0x2, 0xc000190008)
/usr/local/go/src/syscall/syscall_unix.go:187 +0x49
internal/poll.ignoringEINTR(0x1a4f760, 0x0, 0xc000276000, 0x1000, 0x1000, 0x2, 0x1000000000000, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:567 +0x52
internal/poll.(*FD).Read(0xc000190000, 0xc000276000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:155 +0x149
os.(*File).read(...)
/usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0xc00018e000, 0xc000276000, 0x1000, 0x1000, 0xc000064eec, 0x2, 0x2)
/usr/local/go/src/os/file.go:116 +0x71
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc00025cf60)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/fakenet/conn.go:121 +0x116
created by golang.org/x/tools/internal/fakenet.NewConn
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/fakenet/conn.go:26 +0x2e9

goroutine 23 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc00025cf90)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/fakenet/conn.go:115 +0xd2
created by golang.org/x/tools/internal/fakenet.NewConn
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/fakenet/conn.go:27 +0x30f

goroutine 20655 [runnable]:
syscall.syscall(0x1086160, 0x7, 0xc01627c038, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/sys_darwin.go:63 +0x2e
syscall.Fstat(0x7, 0xc01627c038, 0x1010418, 0xd0)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1947 +0x65
internal/poll.(*FD).Fstat(0xc009846180, 0xc01627c038, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:455 +0xa5
os.(*File).Stat(0xc01ceae000, 0x68, 0x0, 0x0, 0xc01ceae000)
/usr/local/go/src/os/stat_unix.go:20 +0x65
io/ioutil.ReadFile(0xc000da50a7, 0x68, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/io/ioutil/ioutil.go:62 +0xb3
golang.org/x/tools/internal/lsp/cache.readFile(0x1b2f640, 0xc00904e900, 0xc000da50a0, 0x6f, 0x1b34360, 0xc0163400d0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/cache.go:129 +0x3a5
golang.org/x/tools/internal/lsp/cache.(*Cache).getFile(0xc000272b90, 0x1b2f640, 0xc00904e900, 0xc000da50a0, 0x6f, 0x0, 0x1, 0xc000da5030)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/cache.go:104 +0x18b
golang.org/x/tools/internal/lsp/cache.(*snapshot).getFileLocked(0xc0251a42a0, 0x1b2f640, 0xc00904e900, 0xc000e5e630, 0x0, 0x0, 0x0, 0xc0283ec5a8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/snapshot.go:962 +0xd1
golang.org/x/tools/internal/lsp/cache.(*snapshot).GetVersionedFile(0xc0251a42a0, 0x1b2f640, 0xc00904e900, 0xc02b7a42a0, 0x6f, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/snapshot.go:949 +0xe7
golang.org/x/tools/internal/lsp/cache.(*snapshot).GetFile(...)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/snapshot.go:954
golang.org/x/tools/internal/lsp/cache.(*snapshot).parseGoHandles(0xc0251a42a0, 0x1b2f640, 0xc00904e900, 0xc0179eba00, 0x12, 0x20, 0x1, 0x468b9165ec9ac0bf, 0x5005fc014114e00, 0x5, ...)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:256 +0xf0
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0251a42a0, 0x1b2f640, 0xc00904e900, 0xc0102333c0, 0x16, 0x1, 0xc0102333c0, 0x16, 0x1fd5060, 0xdbe19b251f6c6800)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:121 +0xc6
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0251a42a0, 0x1b2f640, 0xc00904e900, 0xc0102333c0, 0x16, 0x1, 0xc000f09200, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0251a42a0, 0x1b2f640, 0xc00904e900, 0xc02b59c580, 0x35, 0x1, 0xc02b59c580, 0x35, 0x1fd5060, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0251a42a0, 0x1b2f640, 0xc00904e900, 0xc02b59c580, 0x35, 0x1, 0x2, 0x4, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0251a42a0, 0x1b2f640, 0xc00904e900, 0xc02b6eca40, 0x40, 0x2, 0xc02b6eca40, 0x40, 0xc01a8615e8, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0251a42a0, 0x1b2f640, 0xc00904e900, 0xc02b6eca40, 0x40, 0x2, 0xc001d7e0b0, 0xc0283ed380, 0xc016251d40)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).load(0xc0251a42a0, 0x1b2f640, 0xc00904e900, 0x0, 0xc01f730420, 0x1, 0x1, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/load.go:169 +0xd77
golang.org/x/tools/internal/lsp/cache.(*snapshot).reloadWorkspace(0xc0251a42a0, 0x1b2f680, 0xc01e5c3cb0, 0x2f27d868, 0xc029f90aa0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/snapshot.go:1135 +0x43d
golang.org/x/tools/internal/lsp/cache.(*snapshot).awaitLoadedAllErrors(0xc0251a42a0, 0x1b2f680, 0xc01e5c3cb0, 0x2a000000018a8ea0, 0x1014cbb)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/snapshot.go:1078 +0x67
golang.org/x/tools/internal/lsp/cache.(*snapshot).awaitLoaded(0xc0251a42a0, 0x1b2f680, 0xc01e5c3cb0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/snapshot.go:997 +0x5b
golang.org/x/tools/internal/lsp/cache.(*snapshot).WorkspacePackages(0xc0251a42a0, 0x1b2f680, 0xc01e5c3cb0, 0xc00099e0f0, 0x49, 0x0, 0xc01f7303b0, 0x2)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/snapshot.go:729 +0x5a
golang.org/x/tools/internal/lsp.(*Server).diagnose(0xc000212460, 0x1b2f680, 0xc01e754450, 0x1b41540, 0xc0251a42a0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/diagnostics.go:177 +0x77b
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshot.func1()
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/diagnostics.go:93 +0x70
golang.org/x/tools/internal/lsp.(*debouncer).debounce(0xc000280110, 0xc0006183a0, 0x11, 0x2a, 0xee6b280, 0xc0283edef8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/debounce.go:79 +0x38a
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshot(0xc000212460, 0x1b41540, 0xc0251a42a0, 0xc016e04800, 0x69, 0x80, 0x1718001)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/diagnostics.go:92 +0x427
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles.func2(0xc0205822f0, 0xc000212460, 0x2, 0x1b41540, 0xc0251a42a0, 0xc016e04800, 0x69, 0x80)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/text_synchronization.go:233 +0xa5
created by golang.org/x/tools/internal/lsp.(*Server).didModifyFiles
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/text_synchronization.go:231 +0x2a7

goroutine 20656 [semacquire]:
sync.runtime_Semacquire(0xc0205822f8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0205822f0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles.func3(0xc0205822f0, 0xc013628d70, 0x1, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/text_synchronization.go:238 +0x2b
created by golang.org/x/tools/internal/lsp.(*Server).didModifyFiles
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/text_synchronization.go:237 +0x315

goroutine 17782 [semacquire]:
sync.runtime_Semacquire(0xc012dc44d8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc012dc44d0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
golang.org/x/tools/internal/memoize.(*Generation).Destroy(0xc012dc44b0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/memoize/memoize.go:74 +0x56
created by golang.org/x/tools/internal/lsp/cache.(*View).invalidateContent
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.0.0-20210112235408-75fd75db8797/internal/lsp/cache/view.go:624 +0x1ed
[Info - 8:26:34 AM] Connection to server got closed. Server will restart.
[Info - 8:26:34 AM] 2021/01/28 08:26:34 go env for /Users/kgr/git/iscu-integration
(root /Users/kgr/git/iscu-integration)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GOROOT=/usr/local/go
GO111MODULE=
GOPATH=/Users/kgr/go
GOFLAGS=
GOMOD=/Users/kgr/git/iscu-integration/go.mod
GONOPROXY=github.com/hkraftno
GOPRIVATE=github.com/hkraftno
GOPROXY=https://proxy.golang.org,direct
GOINSECURE=
GOMODCACHE=/Users/kgr/go/pkg/mod
GOSUMDB=sum.golang.org
GOCACHE=/Users/kgr/Library/Caches/go-build
GONOSUMDB=github.com/hkraftno

[Info - 8:26:34 AM] 2021/01/28 08:26:34 go env for /Users/kgr/git/iscu-integration/functions/workorderexporter
(root /Users/kgr/git/iscu-integration/functions/workorderexporter)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GOMODCACHE=/Users/kgr/go/pkg/mod
GOPRIVATE=github.com/hkraftno
GOCACHE=/Users/kgr/Library/Caches/go-build
GOINSECURE=
GOFLAGS=
GOMOD=/Users/kgr/git/iscu-integration/functions/workorderexporter/go.mod
GOPROXY=https://proxy.golang.org,direct
GOROOT=/usr/local/go
GONOPROXY=github.com/hkraftno
GONOSUMDB=github.com/hkraftno
GOPATH=/Users/kgr/go
GOSUMDB=sum.golang.org
GO111MODULE=

[Info - 8:26:35 AM] 2021/01/28 08:26:35 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

[Info - 8:26:35 AM] 2021/01/28 08:26:35 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[builtin github.com/hkraftno/iscu-integration/...]
packages=141

[Error - 8:26:36 AM] 2021/01/28 08:26:36 creating workspace dir: mkdir /var/folders/t6/_thzdn7x6099k892jtfxnnf40000gn/T/gopls-70334.workspace: file exists

[Info - 8:26:39 AM] 2021/01/28 08:26:39 go/packages.Load
snapshot=0
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]

[Info - 8:26:39 AM] 2021/01/28 08:26:39 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]
packages=1

[Info - 8:26:43 AM] 2021/01/28 08:26:43 go/packages.Load
snapshot=2
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]
packages=1

[Info - 8:26:43 AM] 2021/01/28 08:26:43 go/packages.Load
snapshot=2
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/haugnett.go /Users/kgr/git/iscu-integration/functions/workorderexporter/main.go /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]

[Info - 8:26:44 AM] 2021/01/28 08:26:44 go/packages.Load
snapshot=2
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

[Info - 8:27:14 AM] 2021/01/28 08:27:14 background imports cache refresh starting

[Info - 8:27:14 AM] 2021/01/28 08:27:14 background refresh finished after 143.225646ms

[Info - 8:28:49 AM] 2021/01/28 08:28:49 go/packages.Load
snapshot=2
directory=/Users/kgr/git/iscu-integration
query=[builtin github.com/hkraftno/iscu-integration/...]
packages=141

[Info - 8:29:18 AM] 2021/01/28 08:29:18 background imports cache refresh starting

[Info - 8:29:18 AM] 2021/01/28 08:29:18 background refresh finished after 33.807713ms

[Info - 8:29:21 AM] 2021/01/28 08:29:21 go/packages.Load
snapshot=7
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

[Info - 8:29:24 AM] 2021/01/28 08:29:24 go/packages.Load
snapshot=7
directory=/Users/kgr/git/iscu-integration
query=[builtin github.com/hkraftno/iscu-integration/...]
packages=141

[Info - 8:29:31 AM] 2021/01/28 08:29:31 go/packages.Load
snapshot=8
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

[Info - 8:29:34 AM] 2021/01/28 08:29:34 go/packages.Load
snapshot=8
directory=/Users/kgr/git/iscu-integration
query=[builtin github.com/hkraftno/iscu-integration/...]
packages=141

[Info - 9:01:40 AM] 2021/01/28 09:01:40 go env for /Users/kgr/git/iscu-integration
(root /Users/kgr/git/iscu-integration)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GOPRIVATE=github.com/hkraftno
GOROOT=/usr/local/go
GOINSECURE=
GOPROXY=https://proxy.golang.org,direct
GOFLAGS=
GOMOD=/Users/kgr/git/iscu-integration/go.mod
GONOPROXY=github.com/hkraftno
GOPATH=/Users/kgr/go
GONOSUMDB=github.com/hkraftno
GOCACHE=/Users/kgr/Library/Caches/go-build
GOMODCACHE=/Users/kgr/go/pkg/mod
GO111MODULE=
GOSUMDB=sum.golang.org

[Info - 9:01:41 AM] 2021/01/28 09:01:41 go env for /Users/kgr/git/iscu-integration/functions/workorderexporter
(root /Users/kgr/git/iscu-integration/functions/workorderexporter)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GONOSUMDB=github.com/hkraftno
GO111MODULE=
GOROOT=/usr/local/go
GOCACHE=/Users/kgr/Library/Caches/go-build
GOMODCACHE=/Users/kgr/go/pkg/mod
GONOPROXY=github.com/hkraftno
GOPROXY=https://proxy.golang.org,direct
GOSUMDB=sum.golang.org
GOFLAGS=
GOPRIVATE=github.com/hkraftno
GOINSECURE=
GOMOD=/Users/kgr/git/iscu-integration/functions/workorderexporter/go.mod
GOPATH=/Users/kgr/go

[Info - 9:01:41 AM] 2021/01/28 09:01:41 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

[Info - 9:01:41 AM] 2021/01/28 09:01:41 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[builtin github.com/hkraftno/iscu-integration/...]
packages=141

[Info - 9:01:44 AM] 2021/01/28 09:01:44 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]
packages=1

[Info - 9:01:44 AM] 2021/01/28 09:01:44 go/packages.Load
snapshot=0
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]

[Info - 9:02:12 AM] 2021/01/28 09:02:12 background imports cache refresh starting

[Info - 9:02:12 AM] 2021/01/28 09:02:12 background refresh finished after 81.801164ms

[Info - 9:04:57 AM] 2021/01/28 09:04:57 go/packages.Load
snapshot=2
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]
packages=1

[Info - 9:04:57 AM] 2021/01/28 09:04:57 go/packages.Load
snapshot=2
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]

[Error - 9:04:57 AM] 2021/01/28 09:04:57 errors loading workspace: You are working in a nested module. Please open it as a separate workspace folder.
snapshot=2
directory=file:///Users/kgr/git/iscu-integration

[Error - 9:05:04 AM] 2021/01/28 09:05:04 errors loading workspace: You are working in a nested module. Please open it as a separate workspace folder.
snapshot=3
directory=file:///Users/kgr/git/iscu-integration

[Error - 9:28:31 AM] 2021/01/28 09:28:31 errors loading workspace: You are working in a nested module. Please open it as a separate workspace folder.
snapshot=4
directory=file:///Users/kgr/git/iscu-integration

[Error - 9:28:44 AM] 2021/01/28 09:28:44 errors loading workspace: You are working in a nested module. Please open it as a separate workspace folder.
snapshot=5
directory=file:///Users/kgr/git/iscu-integration

[Error - 9:28:44 AM] 2021/01/28 09:28:44 errors loading workspace: You are working in a nested module. Please open it as a separate workspace folder.
snapshot=6
directory=file:///Users/kgr/git/iscu-integration

[Error - 9:28:45 AM] 2021/01/28 09:28:45 errors loading workspace: You are working in a nested module. Please open it as a separate workspace folder.
snapshot=7
directory=file:///Users/kgr/git/iscu-integration

[Error - 9:28:46 AM] 2021/01/28 09:28:46 errors loading workspace: You are working in a nested module. Please open it as a separate workspace folder.
snapshot=10
directory=file:///Users/kgr/git/iscu-integration

[Error - 9:28:47 AM] 2021/01/28 09:28:47 errors loading workspace: You are working in a nested module. Please open it as a separate workspace folder.
snapshot=11
directory=file:///Users/kgr/git/iscu-integration

[Error - 9:33:35 AM] 2021/01/28 09:33:35 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go:24:33: expected '==', found '='
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go"

[Info - 9:33:45 AM] 2021/01/28 09:33:45 background imports cache refresh starting

[Info - 9:33:45 AM] 2021/01/28 09:33:45 background refresh finished after 25.312484ms

[Error - 9:34:06 AM] 2021/01/28 09:34:06 warning: diagnose package: no package for github.com/hkraftno/service-definitions/salesforce
snapshot=44
package="github.com/hkraftno/service-definitions/salesforce"

[Error - 9:34:18 AM] 2021/01/28 09:34:18 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go:24:11: missing ',' before newline in composite literal (and 1 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go"

[Error - 9:34:36 AM] 2021/01/28 09:34:36 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go:24:11: missing ',' before newline in composite literal (and 1 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go"

[Error - 9:34:38 AM] 2021/01/28 09:34:38 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go:24:11: missing ',' before newline in composite literal (and 2 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go"

[Error - 9:34:40 AM] 2021/01/28 09:34:40 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go:24:11: missing ',' before newline in composite literal (and 2 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go"

[Error - 9:34:41 AM] 2021/01/28 09:34:41 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go:24:11: missing ',' before newline in composite literal (and 2 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go"

[Error - 9:34:42 AM] 2021/01/28 09:34:42 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go:24:11: missing ',' before newline in composite literal (and 2 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go"

[Error - 9:34:42 AM] 2021/01/28 09:34:42 unable to compute error positions: invalid position for type error -: missing return
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"

[Error - 9:34:42 AM] 2021/01/28 09:34:42 unable to compute error positions: invalid position for type error -: missing return
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"

[Error - 9:34:43 AM] 2021/01/28 09:34:43 unable to compute error positions: invalid position for type error -: missing return
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"

[Error - 9:34:44 AM] 2021/01/28 09:34:44 unable to compute error positions: invalid position for type error -: missing return
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"

[Info - 9:34:44 AM] 2021/01/28 09:34:44 background imports cache refresh starting

[Info - 9:34:44 AM] 2021/01/28 09:34:44 background refresh finished after 22.777247ms

[Error - 9:34:45 AM] 2021/01/28 09:34:45 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go:24:15: missing ',' before newline in composite literal (and 2 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go"

[Error - 9:34:47 AM] 2021/01/28 09:34:47 unable to compute error positions: invalid position for type error -: missing return
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"

[Error - 9:34:48 AM] 2021/01/28 09:34:48 unable to compute error positions: invalid position for type error -: missing return
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"

[Error - 9:34:48 AM] 2021/01/28 09:34:48 unable to compute error positions: invalid position for type error -: missing return
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"

[Error - 9:34:48 AM] 2021/01/28 09:34:48 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go:25:10: missing ',' in composite literal (and 7 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go"

[Error - 9:34:49 AM] 2021/01/28 09:34:49 unable to compute error positions: invalid position for type error -: missing return
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"

[Error - 9:34:49 AM] Request textDocument/definition failed.
Message: no identifier found
Code: 0
[Error - 9:34:50 AM] 2021/01/28 09:34:50 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go:25:10: missing ',' in composite literal (and 7 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go"

[Error - 9:34:51 AM] 2021/01/28 09:34:51 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go:25:10: missing ',' in composite literal (and 7 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go"

[Error - 9:34:54 AM] 2021/01/28 09:34:54 imports fixes: AllImportsFixes: /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go:24:33: missing ',' before newline in composite literal (and 2 more errors)
file="/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go"

[Error - 9:34:55 AM] 2021/01/28 09:34:55 no signature help: cannot find an enclosing function
position={23 33}

[Info - 9:35:06 AM] 2021/01/28 09:35:06 go/packages.Load
snapshot=77
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[github.com/hkraftno/iscu-integration/functions/workorderexporter]
packages=1

[Info - 9:35:06 AM] 2021/01/28 09:35:06 go/packages.Load
snapshot=77
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/haugnett.go /Users/kgr/git/iscu-integration/functions/workorderexporter/main.go /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]

fatal error: concurrent map iteration and map write

goroutine 25328 [running]:
runtime.throw(0x1a1c457, 0x26)
/usr/local/go/src/runtime/panic.go:1116 +0x72 fp=0xc02f893010 sp=0xc02f892fe0 pc=0x1038a12
runtime.mapiternext(0xc02f893108)
/usr/local/go/src/runtime/map.go:853 +0x554 fp=0xc02f893090 sp=0xc02f893010 pc=0x1012e94
golang.org/x/tools/internal/lsp/cache.(*snapshot).knownFilesInDir(0xc0001a49a0, 0x1b300e0, 0xc00567d260, 0xc02156f440, 0x60, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:720 +0xa5 fp=0xc02f893178 sp=0xc02f893090 pc=0x1748ec5
golang.org/x/tools/internal/lsp/cache.knownFilesInDir(0x1b300e0, 0xc00567d260, 0xc0055e2080, 0x2, 0x2, 0xc02156f440, 0x60, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/session.go:566 +0x9d fp=0xc02f8931f0 sp=0xc02f893178 pc=0x17420dd
golang.org/x/tools/internal/lsp/cache.(*Session).ExpandModificationsToDirectories(0xc00091abd0, 0x1b300e0, 0xc00567d260, 0xc023880000, 0x528, 0x600, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/session.go:527 +0x46a fp=0xc02f893428 sp=0xc02f8931f0 pc=0x1741b6a
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles(0xc0001a4460, 0x1b300e0, 0xc00567d260, 0xc023880000, 0x528, 0x600, 0x2, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:222 +0x103 fp=0xc02f893570 sp=0xc02f893428 pc=0x18009a3
golang.org/x/tools/internal/lsp.(*Server).didChangeWatchedFiles(0xc0001a4460, 0x1b300e0, 0xc00567d260, 0xc0111fe040, 0x0, 0xc0156ce210)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:172 +0x1ef fp=0xc02f893678 sp=0xc02f893570 pc=0x180032f
golang.org/x/tools/internal/lsp.(*Server).DidChangeWatchedFiles(0xc0001a4460, 0x1b300e0, 0xc00567d260, 0xc0111fe040, 0xc0111fe040, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/server_gen.go:48 +0x49 fp=0xc02f8936b8 sp=0xc02f893678 pc=0x17fc8e9
golang.org/x/tools/internal/lsp/protocol.serverDispatch(0x1b300e0, 0xc00567d260, 0x1b44880, 0xc0001a4460, 0xc0088e8420, 0xa422e00, 0xc005475a10, 0xc0156ce0b0, 0x1b300e0, 0xc0057224b0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/protocol/tsserver.go:147 +0x4fa7 fp=0xc02f893a20 sp=0xc02f8936b8 pc=0x1288187
golang.org/x/tools/internal/lsp/protocol.ServerHandler.func1(0x1b300e0, 0xc00567d260, 0xc0088e8420, 0xa422e00, 0xc005475a10, 0x1d2de1c78c4, 0x1fa3900)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/protocol/protocol.go:63 +0xc5 fp=0xc02f893ab0 sp=0xc02f893a20 pc=0x128d325
golang.org/x/tools/internal/lsp/lsprpc.handshaker.func1(0x1b300e0, 0xc00567d260, 0xc0088e8420, 0xa422e00, 0xc005475a10, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/lsprpc/lsprpc.go:559 +0x452 fp=0xc02f893ee0 sp=0xc02f893ab0 pc=0x180cc12
golang.org/x/tools/internal/jsonrpc2.MustReplyHandler.func1(0x1b300e0, 0xc00567d260, 0xc011170400, 0xa422e00, 0xc005475a10, 0xc0000e43c0, 0x14)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:35 +0xcf fp=0xc02f893f48 sp=0xc02f893ee0 pc=0x12694ef
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2(0xc01f990c00, 0xc008862240, 0xc000918120, 0x1b300e0, 0xc00567d260, 0xc011170400, 0xa422e00, 0xc005475a10)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:103 +0x86 fp=0xc02f893fa0 sp=0xc02f893f48 pc=0x1269c86
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1374 +0x1 fp=0xc02f893fa8 sp=0xc02f893fa0 pc=0x1070ca1
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:100 +0x173

goroutine 1 [chan receive, 33 minutes]:
golang.org/x/tools/internal/lsp/lsprpc.(*StreamServer).ServeStream(0xc0002d39c0, 0x1b300e0, 0xc000418ea0, 0x1b34b80, 0xc000294c80, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/lsprpc/lsprpc.go:88 +0x353
golang.org/x/tools/internal/lsp/cmd.(*Serve).Run(0xc000422170, 0x1b300e0, 0xc0004197d0, 0xc000132030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cmd/serve.go:110 +0x6ec
golang.org/x/tools/internal/tool.Run(0x1b300e0, 0xc0004197d0, 0x1b33ce0, 0xc000422170, 0xc000132030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:152 +0x2a2
golang.org/x/tools/internal/lsp/cmd.(*Application).Run(0xc000422140, 0x1b30060, 0xc000122000, 0xc000132030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cmd/cmd.go:147 +0x347
golang.org/x/tools/internal/tool.Run(0x1b30060, 0xc000122000, 0x1b33ca0, 0xc000422140, 0xc000132030, 0x1, 0x1, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:152 +0x2a2
golang.org/x/tools/internal/tool.Main(0x1b30060, 0xc000122000, 0x1b33ca0, 0xc000422140, 0xc000132030, 0x1, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:91 +0x138
main.main()
/Users/kgr/go/pkg/mod/golang.org/x/tools/gopls@v0.6.4/main.go:25 +0xdb

goroutine 84 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc000419890)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:115 +0xd2
created by golang.org/x/tools/internal/fakenet.NewConn
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:27 +0x30f

goroutine 82 [chan receive]:
golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory.func1(0xc000294be0, 0xc000289168, 0xc000428000, 0x1b300e0, 0xc0004197d0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debug/serve.go:447 +0x65
created by golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debug/serve.go:445 +0x99

goroutine 83 [syscall]:
syscall.syscall(0x1085ea0, 0x0, 0xc0002f5000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/sys_darwin.go:63 +0x2e
syscall.read(0x0, 0xc0002f5000, 0x1000, 0x1000, 0xc000b23f28, 0x103b69c, 0xc000b23d38)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1242 +0x66
syscall.Read(0x0, 0xc0002f5000, 0x1000, 0x1000, 0x7ffff800000, 0x2, 0xc000126008)
/usr/local/go/src/syscall/syscall_unix.go:187 +0x49
internal/poll.ignoringEINTR(0x1a50048, 0x0, 0xc0002f5000, 0x1000, 0x1000, 0x2, 0x1000000000000, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:567 +0x52
internal/poll.(*FD).Read(0xc000126000, 0xc0002f5000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:155 +0x149
os.(*File).read(...)
/usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0xc000124000, 0xc0002f5000, 0x1000, 0x1000, 0xc000b23eec, 0x2, 0x2)
/usr/local/go/src/os/file.go:116 +0x71
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc000419860)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:121 +0x116
created by golang.org/x/tools/internal/fakenet.NewConn
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:26 +0x2e9

goroutine 117 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).do(0xc000419860, 0xc0002f5000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:103 +0x1e5
golang.org/x/tools/internal/fakenet.(*fakeConn).Read(0xc00041cb80, 0xc0002f5000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:67 +0x4d
bufio.(*Reader).fill(0xc00041a7e0)
/usr/local/go/src/bufio/bufio.go:101 +0x105
bufio.(*Reader).ReadSlice(0xc00041a7e0, 0xa, 0x0, 0x1b2e460, 0xc000132100, 0x6, 0x18a99e0)
/usr/local/go/src/bufio/bufio.go:360 +0x3d
bufio.(*Reader).collectFragments(0xc00041a7e0, 0xc02f88fb0a, 0x1269e73, 0x40, 0x1a4e900, 0xc01f990c00, 0xc008862240, 0xc000918120, 0x1b300e0, 0xc00567d260, ...)
/usr/local/go/src/bufio/bufio.go:435 +0x7a
bufio.(*Reader).ReadString(0xc00041a7e0, 0xa, 0xc000600000, 0xc0071060f0, 0xc02f88fcd8, 0x128d811)
/usr/local/go/src/bufio/bufio.go:483 +0x4c
golang.org/x/tools/internal/jsonrpc2.(*headerStream).Read(0xc0002d3a20, 0x1b300e0, 0xc000418ea0, 0xa422e00, 0xc005475a10, 0x0, 0x0, 0x1b300e0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/stream.go:110 +0x98
golang.org/x/tools/internal/jsonrpc2.(*conn).run(0xc000294c80, 0x1b300e0, 0xc000418ea0, 0xc0003946c0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/conn.go:196 +0xa2
created by golang.org/x/tools/internal/jsonrpc2.(*conn).Go
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/conn.go:189 +0x5d

goroutine 25527 [semacquire]:
sync.runtime_Semacquire(0xc014cbf8f8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc014cbf8f0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles.func3(0xc014cbf8f0, 0xc0261a6168, 0x1, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:238 +0x2b
created by golang.org/x/tools/internal/lsp.(*Server).didModifyFiles
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:237 +0x315

goroutine 22796 [semacquire, 2 minutes]:
sync.runtime_Semacquire(0xc0078755e8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0078755e0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
golang.org/x/tools/internal/memoize.(*Generation).Destroy(0xc0078755c0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/memoize/memoize.go:74 +0x56
created by golang.org/x/tools/internal/lsp/cache.(*View).invalidateContent
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/view.go:624 +0x1ed

goroutine 25526 [runnable]:
sync.(*Mutex).Unlock(0xc0001a4a00)
/usr/local/go/src/sync/mutex.go:179 +0x4f
golang.org/x/tools/internal/lsp/cache.(*snapshot).addGoFile(0xc0001a49a0, 0xc000bcd810, 0x6b, 0xc0255ce380, 0x40, 0x1, 0x1, 0xc002a52090, 0xc002a52090)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:562 +0x165
golang.org/x/tools/internal/lsp/cache.(*snapshot).parseGoHandle(0xc0001a49a0, 0x1b300a0, 0xc00a7bac60, 0x273d700, 0xc0054efeb0, 0x1, 0xc0054efeb0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/parse.go:77 +0x37f
golang.org/x/tools/internal/lsp/cache.(*snapshot).parseGoHandles(0xc0001a49a0, 0x1b300a0, 0xc00a7bac60, 0xc01db40800, 0x12, 0x20, 0x1, 0x6bbba0f9a1348e57, 0x5002ac01a05cd00, 0x3, ...)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:260 +0x16e
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0001a49a0, 0x1b300a0, 0xc00a7bac60, 0xc002b09be0, 0x16, 0x1, 0xc002b09be0, 0x16, 0x1fd60e0, 0xdd2b074e32400800)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:121 +0xc6
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0001a49a0, 0x1b300a0, 0xc00a7bac60, 0xc002b09be0, 0x16, 0x1, 0xc001642720, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0001a49a0, 0x1b300a0, 0xc00a7bac60, 0xc02b8aff40, 0x35, 0x1, 0xc02b8aff40, 0x35, 0x1fd60e0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0001a49a0, 0x1b300a0, 0xc00a7bac60, 0xc02b8aff40, 0x35, 0x1, 0x2, 0x4, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0001a49a0, 0x1b300a0, 0xc00a7bac60, 0xc02b9766c0, 0x40, 0x2, 0xc02b9766c0, 0x40, 0xc01050a748, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0001a49a0, 0x1b300a0, 0xc00a7bac60, 0xc02b9766c0, 0x40, 0x2, 0xc0011ff290, 0xc02358ef60, 0xc0158df860)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).load(0xc0001a49a0, 0x1b300a0, 0xc00a7bac60, 0x0, 0xc007122e20, 0x1, 0x1, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/load.go:169 +0xd77
golang.org/x/tools/internal/lsp/cache.(*snapshot).reloadWorkspace(0xc0001a49a0, 0x1b300e0, 0xc00f0475c0, 0x0, 0x4)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:1135 +0x43d
golang.org/x/tools/internal/lsp/cache.(*snapshot).awaitLoadedAllErrors(0xc0001a49a0, 0x1b300e0, 0xc00f0475c0, 0xc02358f3b8, 0x174b1a8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:1078 +0x67
golang.org/x/tools/internal/lsp/cache.(*snapshot).GetCriticalError(0xc0001a49a0, 0x1b300e0, 0xc00f0475c0, 0x273d700)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:1011 +0x5a
golang.org/x/tools/internal/lsp/cache.(*snapshot).ModTidy(0xc0001a49a0, 0x1b300e0, 0xc00f0475c0, 0xc0000921c0, 0xc00007e010, 0xc0000921c0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/mod_tidy.go:74 +0x1b1
golang.org/x/tools/internal/lsp/mod.ErrorsForMod(0x1b300e0, 0xc00f0475c0, 0x1b41fa0, 0xc0001a49a0, 0x273d700, 0xc00007e010, 0xc00007e010, 0x0, 0x0, 0xc00f047cb0, ...)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/mod/diagnostics.go:62 +0x127
golang.org/x/tools/internal/lsp/mod.Diagnostics(0x1b300e0, 0xc00f0475c0, 0x1b41fa0, 0xc0001a49a0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/mod/diagnostics.go:29 +0x76b
golang.org/x/tools/internal/lsp.(*Server).diagnose(0xc0001a4460, 0x1b300e0, 0xc004ebfda0, 0x1b41fa0, 0xc0001a49a0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:160 +0x36e
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshot.func1()
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:93 +0x70
golang.org/x/tools/internal/lsp.(*debouncer).debounce(0xc000918070, 0xc00051c980, 0x11, 0x4d, 0xee6b280, 0xc02358fef8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debounce.go:79 +0x38a
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshot(0xc0001a4460, 0x1b41fa0, 0xc0001a49a0, 0xc01a819800, 0x7f, 0x80, 0xc0053eea01)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:92 +0x427
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles.func2(0xc014cbf8f0, 0xc0001a4460, 0x2, 0x1b41fa0, 0xc0001a49a0, 0xc01a819800, 0x7f, 0x80)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:233 +0xa5
created by golang.org/x/tools/internal/lsp.(*Server).didModifyFiles
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:231 +0x2a7
[Info - 9:35:06 AM] Connection to server got closed. Server will restart.
[Info - 9:35:06 AM] 2021/01/28 09:35:06 go env for /Users/kgr/git/iscu-integration
(root /Users/kgr/git/iscu-integration)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GOPRIVATE=github.com/hkraftno
GOSUMDB=sum.golang.org
GONOPROXY=github.com/hkraftno
GOPATH=/Users/kgr/go
GOCACHE=/Users/kgr/Library/Caches/go-build
GOMOD=/Users/kgr/git/iscu-integration/go.mod
GOMODCACHE=/Users/kgr/go/pkg/mod
GOROOT=/usr/local/go
GO111MODULE=
GOFLAGS=
GONOSUMDB=github.com/hkraftno
GOPROXY=https://proxy.golang.org,direct
GOINSECURE=

[Info - 9:35:06 AM] 2021/01/28 09:35:06 go env for /Users/kgr/git/iscu-integration/functions/workorderexporter
(root /Users/kgr/git/iscu-integration/functions/workorderexporter)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GOCACHE=/Users/kgr/Library/Caches/go-build
GOFLAGS=
GONOSUMDB=github.com/hkraftno
GO111MODULE=
GOINSECURE=
GOPRIVATE=github.com/hkraftno
GOROOT=/usr/local/go
GOMOD=/Users/kgr/git/iscu-integration/functions/workorderexporter/go.mod
GOPROXY=https://proxy.golang.org,direct
GOMODCACHE=/Users/kgr/go/pkg/mod
GONOPROXY=github.com/hkraftno
GOPATH=/Users/kgr/go
GOSUMDB=sum.golang.org

[Info - 9:35:07 AM] 2021/01/28 09:35:07 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

[Info - 9:35:07 AM] 2021/01/28 09:35:07 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[builtin github.com/hkraftno/iscu-integration/...]
packages=141

[Error - 9:35:08 AM] 2021/01/28 09:35:08 creating workspace dir: mkdir /var/folders/t6/_thzdn7x6099k892jtfxnnf40000gn/T/gopls-70334.workspace: file exists

[Error - 9:35:08 AM] 2021/01/28 09:35:08 warning: diagnose package: no package for github.com/hkraftno/service-definitions/salesforce
snapshot=3
package="github.com/hkraftno/service-definitions/salesforce"

[Info - 9:35:11 AM] 2021/01/28 09:35:11 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]
packages=1

[Info - 9:35:11 AM] 2021/01/28 09:35:11 go/packages.Load
snapshot=0
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]

[Info - 9:35:11 AM] 2021/01/28 09:35:11 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]
packages=1

[Info - 9:35:11 AM] 2021/01/28 09:35:11 go/packages.Load
snapshot=0
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]

[Info - 9:35:12 AM] 2021/01/28 09:35:12 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/vendor/github.com/hkraftno/service-definitions/salesforce/contact.pb.go]
packages=1

[Info - 9:35:12 AM] 2021/01/28 09:35:12 go/packages.Load
snapshot=0
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/vendor/github.com/hkraftno/service-definitions/salesforce/contact.pb.go]

[Info - 9:35:17 AM] 2021/01/28 09:35:17 go/packages.Load
snapshot=4
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

[Info - 9:35:17 AM] 2021/01/28 09:35:17 go/packages.Load
snapshot=4
directory=/Users/kgr/git/iscu-integration
query=[builtin github.com/hkraftno/iscu-integration/...]
packages=141

[Info - 9:35:38 AM] 2021/01/28 09:35:38 background imports cache refresh starting

[Info - 9:35:38 AM] 2021/01/28 09:35:38 background refresh finished after 190.789227ms

[Info - 9:35:40 AM] 2021/01/28 09:35:40 go/packages.Load
snapshot=6
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

fatal error: concurrent map iteration and map write

goroutine 23296 [running]:
runtime.throw(0x1a1c457, 0x26)
/usr/local/go/src/runtime/panic.go:1116 +0x72 fp=0xc028ab5010 sp=0xc028ab4fe0 pc=0x1038a12
runtime.mapiternext(0xc028ab5108)
/usr/local/go/src/runtime/map.go:853 +0x554 fp=0xc028ab5090 sp=0xc028ab5010 pc=0x1012e94
golang.org/x/tools/internal/lsp/cache.(*snapshot).knownFilesInDir(0xc00e47c000, 0x1b300e0, 0xc00b8736b0, 0xc02a950f00, 0x74, 0xc01ec64820, 0x1, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:720 +0xa5 fp=0xc028ab5178 sp=0xc028ab5090 pc=0x1748ec5
golang.org/x/tools/internal/lsp/cache.knownFilesInDir(0x1b300e0, 0xc00b8736b0, 0xc01eb4c210, 0x2, 0x2, 0xc02a950f00, 0x74, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/session.go:566 +0x9d fp=0xc028ab51f0 sp=0xc028ab5178 pc=0x17420dd
golang.org/x/tools/internal/lsp/cache.(*Session).ExpandModificationsToDirectories(0xc0008a2bd0, 0x1b300e0, 0xc00b8736b0, 0xc02aa00000, 0x6ee, 0x799, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/session.go:527 +0x46a fp=0xc028ab5428 sp=0xc028ab51f0 pc=0x1741b6a
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles(0xc000198460, 0x1b300e0, 0xc00b8736b0, 0xc02aa00000, 0x6ee, 0x799, 0x2, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:222 +0x103 fp=0xc028ab5570 sp=0xc028ab5428 pc=0x18009a3
golang.org/x/tools/internal/lsp.(*Server).didChangeWatchedFiles(0xc000198460, 0x1b300e0, 0xc00b8736b0, 0xc01e6e4ae0, 0x0, 0xc002c58160)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:172 +0x1ef fp=0xc028ab5678 sp=0xc028ab5570 pc=0x180032f
golang.org/x/tools/internal/lsp.(*Server).DidChangeWatchedFiles(0xc000198460, 0x1b300e0, 0xc00b8736b0, 0xc01e6e4ae0, 0xc01e6e4ae0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/server_gen.go:48 +0x49 fp=0xc028ab56b8 sp=0xc028ab5678 pc=0x17fc8e9
golang.org/x/tools/internal/lsp/protocol.serverDispatch(0x1b300e0, 0xc00b8736b0, 0x1b44880, 0xc000198460, 0xc01eb2fe60, 0x80bf1c0, 0xc00b8731d0, 0xc003330160, 0x1b300e0, 0xc004849230)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/protocol/tsserver.go:147 +0x4fa7 fp=0xc028ab5a20 sp=0xc028ab56b8 pc=0x1288187
golang.org/x/tools/internal/lsp/protocol.ServerHandler.func1(0x1b300e0, 0xc00b8736b0, 0xc01eb2fe60, 0x80bf1c0, 0xc00b8731d0, 0x7b6c1266a, 0x1fa3900)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/protocol/protocol.go:63 +0xc5 fp=0xc028ab5ab0 sp=0xc028ab5a20 pc=0x128d325
golang.org/x/tools/internal/lsp/lsprpc.handshaker.func1(0x1b300e0, 0xc00b8736b0, 0xc01eb2fe60, 0x80bf1c0, 0xc00b8731d0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/lsprpc/lsprpc.go:559 +0x452 fp=0xc028ab5ee0 sp=0xc028ab5ab0 pc=0x180cc12
golang.org/x/tools/internal/jsonrpc2.MustReplyHandler.func1(0x1b300e0, 0xc00b8736b0, 0xc01e54f040, 0x80bf1c0, 0xc00b8731d0, 0xc000065fb0, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:35 +0xcf fp=0xc028ab5f48 sp=0xc028ab5ee0 pc=0x12694ef
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2(0xc00a2346c0, 0xc004849440, 0xc0008a0130, 0x1b300e0, 0xc00b8736b0, 0xc01e54f040, 0x80bf1c0, 0xc00b8731d0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:103 +0x86 fp=0xc028ab5fa0 sp=0xc028ab5f48 pc=0x1269c86
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1374 +0x1 fp=0xc028ab5fa8 sp=0xc028ab5fa0 pc=0x1070ca1
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:100 +0x173

goroutine 1 [chan receive]:
golang.org/x/tools/internal/lsp/lsprpc.(*StreamServer).ServeStream(0xc000402780, 0x1b300e0, 0xc000404ff0, 0x1b34b80, 0xc0002174f0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/lsprpc/lsprpc.go:88 +0x353
golang.org/x/tools/internal/lsp/cmd.(*Serve).Run(0xc000301e30, 0x1b300e0, 0xc000404b40, 0xc00000e090, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cmd/serve.go:110 +0x6ec
golang.org/x/tools/internal/tool.Run(0x1b300e0, 0xc000404b40, 0x1b33ce0, 0xc000301e30, 0xc00000e090, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:152 +0x2a2
golang.org/x/tools/internal/lsp/cmd.(*Application).Run(0xc000301e00, 0x1b30060, 0xc0000360b0, 0xc00000e090, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cmd/cmd.go:147 +0x347
golang.org/x/tools/internal/tool.Run(0x1b30060, 0xc0000360b0, 0x1b33ca0, 0xc000301e00, 0xc00000e090, 0x1, 0x1, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:152 +0x2a2
golang.org/x/tools/internal/tool.Main(0x1b30060, 0xc0000360b0, 0x1b33ca0, 0xc000301e00, 0xc00000e090, 0x1, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:91 +0x138
main.main()
/Users/kgr/go/pkg/mod/golang.org/x/tools/gopls@v0.6.4/main.go:25 +0xdb

goroutine 76 [syscall]:
syscall.syscall(0x1085ea0, 0x0, 0xc00040c000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/sys_darwin.go:63 +0x2e
syscall.read(0x0, 0xc00040c000, 0x1000, 0x1000, 0xc0004ecf28, 0x103b69c, 0xc0004ecd38)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1242 +0x66
syscall.Read(0x0, 0xc00040c000, 0x1000, 0x1000, 0x7ffff800000, 0x2, 0xc000044068)
/usr/local/go/src/syscall/syscall_unix.go:187 +0x49
internal/poll.ignoringEINTR(0x1a50048, 0x0, 0xc00040c000, 0x1000, 0x1000, 0x2, 0x1000000000000, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:567 +0x52
internal/poll.(*FD).Read(0xc000044060, 0xc00040c000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:155 +0x149
os.(*File).read(...)
/usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0xc000010010, 0xc00040c000, 0x1000, 0x1000, 0xc0004eceec, 0x2, 0x2)
/usr/local/go/src/os/file.go:116 +0x71
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc000404bd0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:121 +0x116
created by golang.org/x/tools/internal/fakenet.NewConn
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:26 +0x2e9

goroutine 75 [chan receive]:
golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory.func1(0xc000217450, 0xc000201cd8, 0xc0003720c0, 0x1b300e0, 0xc000404b40)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debug/serve.go:447 +0x65
created by golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debug/serve.go:445 +0x99

goroutine 114 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).do(0xc000404bd0, 0xc00040c000, 0x1000, 0x1000, 0xc01eba6e10, 0x1861dc3, 0xc0008263c0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:103 +0x1e5
golang.org/x/tools/internal/fakenet.(*fakeConn).Read(0xc000379f40, 0xc00040c000, 0x1000, 0x1000, 0x8, 0x1, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:67 +0x4d
bufio.(*Reader).fill(0xc00040a000)
/usr/local/go/src/bufio/bufio.go:101 +0x105
bufio.(*Reader).ReadSlice(0xc00040a000, 0x11f150a, 0x203003, 0x1881600, 0xc01eba6e10, 0x203003, 0x203003)
/usr/local/go/src/bufio/bufio.go:360 +0x3d
bufio.(*Reader).collectFragments(0xc00040a000, 0xa, 0x40, 0xc00d163500, 0x8b34d40, 0xc01eba6e10, 0xc000681b00, 0x2145e98, 0x0, 0x26, ...)
/usr/local/go/src/bufio/bufio.go:435 +0x7a
bufio.(*Reader).ReadString(0xc00040a000, 0xa, 0x0, 0x0, 0x100c41f, 0xc00a402178)
/usr/local/go/src/bufio/bufio.go:483 +0x4c
golang.org/x/tools/internal/jsonrpc2.(*headerStream).Read(0xc0004027e0, 0x1b300e0, 0xc000404ff0, 0xc0003508a8, 0x1, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/stream.go:110 +0x98
golang.org/x/tools/internal/jsonrpc2.(*conn).run(0xc0002174f0, 0x1b300e0, 0xc000404ff0, 0xc0002aa680)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/conn.go:196 +0xa2
created by golang.org/x/tools/internal/jsonrpc2.(*conn).Go
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/conn.go:189 +0x5d

goroutine 77 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc000404c00)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:115 +0xd2
created by golang.org/x/tools/internal/fakenet.NewConn
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:27 +0x30f

goroutine 23639 [chan receive]:
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2(0xc01d9e4960, 0xc01e42db00, 0xc0008a0130, 0x1b300e0, 0xc01e42cff0, 0xc01e552840, 0x80bf1c0, 0xc01e42cf30)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:101 +0x38
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:100 +0x173

goroutine 23938 [semacquire]:
sync.runtime_Semacquire(0xc019734198)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc019734190)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles.func3(0xc019734190, 0xc01ec3d380, 0x2, 0x2)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:238 +0x2b
created by golang.org/x/tools/internal/lsp.(*Server).didModifyFiles
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:237 +0x315

goroutine 23411 [semacquire]:
sync.runtime_Semacquire(0xc00a778268)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc00a778260)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
golang.org/x/tools/internal/memoize.(*Generation).Destroy(0xc00a778240)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/memoize/memoize.go:74 +0x56
created by golang.org/x/tools/internal/lsp/cache.(*View).invalidateContent
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/view.go:624 +0x1ed

goroutine 23921 [runnable]:
syscall.syscall(0x1086160, 0x7, 0xc02897a038, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/sys_darwin.go:63 +0x2e
syscall.Fstat(0x7, 0xc02897a038, 0x1010418, 0xd0)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1947 +0x65
internal/poll.(*FD).Fstat(0xc00b6f4060, 0xc02897a038, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:455 +0xa5
os.(*File).Stat(0xc014c84060, 0x78, 0x0, 0x0, 0xc014c84060)
/usr/local/go/src/os/stat_unix.go:20 +0x65
io/ioutil.ReadFile(0xc000d7fb87, 0x78, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/io/ioutil/ioutil.go:62 +0xb3
golang.org/x/tools/internal/lsp/cache.readFile(0x1b300a0, 0xc00e0222a0, 0xc000d7fb80, 0x7f, 0x1b34dc0, 0xc0289d0000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/cache.go:129 +0x3a5
golang.org/x/tools/internal/lsp/cache.(*Cache).getFile(0xc0002174a0, 0x1b300a0, 0xc00e0222a0, 0xc000d7fb80, 0x7f, 0x0, 0xc028abf8c8, 0x18)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/cache.go:104 +0x18b
golang.org/x/tools/internal/lsp/cache.(*snapshot).getFileLocked(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc0019cab10, 0x0, 0x0, 0x1720d1c, 0xc028abf918)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:962 +0xd1
golang.org/x/tools/internal/lsp/cache.(*snapshot).GetVersionedFile(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc02a41d900, 0x7f, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:949 +0xe7
golang.org/x/tools/internal/lsp/cache.(*snapshot).GetFile(...)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:954
golang.org/x/tools/internal/lsp/cache.(*snapshot).parseGoHandles(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc00df01180, 0x3, 0x4, 0x1, 0xefc63d73781eeded, 0xc01d1b8000, 0x4, ...)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:256 +0xf0
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc02e2d2810, 0x2b, 0x1, 0xc02e2d2810, 0x2b, 0x1fd60e0, 0x6111ac026ec9af00)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:121 +0xc6
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc02e2d2810, 0x2b, 0x1, 0xc00b5c9b60, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc02e2d2a20, 0x22, 0x1, 0xc02e2d2a20, 0x22, 0x1fd60e0, 0x51e74f01dd8f2200)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc02e2d2a20, 0x22, 0x1, 0xc00b5c9020, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc02e2adf00, 0x1f, 0x1, 0xc02e2adf00, 0x1f, 0x1fd60e0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc02e2adf00, 0x1f, 0x1, 0x8, 0x10, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc02e3b7ea0, 0x16, 0x1, 0xc02e3b7ea0, 0x16, 0x1fd60e0, 0xe8611900a5343c00)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc02e3b7ea0, 0x16, 0x1, 0xc0015f8360, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc02e3a0bc0, 0x35, 0x1, 0xc02e3a0bc0, 0x35, 0x1fd60e0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc02e3a0bc0, 0x35, 0x1, 0x2, 0x4, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc02e543080, 0x40, 0x2, 0xc02e543080, 0x40, 0xc023164e08, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0xc02e543080, 0x40, 0x2, 0xc003295d90, 0xc028ac0e40, 0xc02a444ea0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).load(0xc00e47c000, 0x1b300a0, 0xc00e0222a0, 0x0, 0xc01e66d040, 0x2, 0x2, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/load.go:169 +0xd77
golang.org/x/tools/internal/lsp/cache.(*snapshot).initialize.func2()
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/view.go:569 +0x90a
sync.(*Once).doSlow(0xc01d186010, 0xc028ac11e0)
/usr/local/go/src/sync/once.go:66 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:57
golang.org/x/tools/internal/lsp/cache.(*snapshot).initialize(0xc00e47c000, 0x1b300e0, 0xc01eba73e0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/view.go:529 +0x1c8
golang.org/x/tools/internal/lsp/cache.(*snapshot).AwaitInitialized(0xc00e47c000, 0x1b300e0, 0xc01eba73e0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:1098 +0x116
golang.org/x/tools/internal/lsp/cache.(*snapshot).awaitLoadedAllErrors(0xc00e47c000, 0x1b300e0, 0xc01eba73e0, 0xc028ac13b8, 0x174b1a8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:1076 +0x45
golang.org/x/tools/internal/lsp/cache.(*snapshot).GetCriticalError(0xc00e47c000, 0x1b300e0, 0xc01eba73e0, 0x81c21d8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:1011 +0x5a
golang.org/x/tools/internal/lsp/cache.(*snapshot).ModTidy(0xc00e47c000, 0x1b300e0, 0xc01eba73e0, 0xc00040e440, 0xc0002703d0, 0xc00040e440, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/mod_tidy.go:74 +0x1b1
golang.org/x/tools/internal/lsp/mod.ErrorsForMod(0x1b300e0, 0xc01eba73e0, 0x1b41fa0, 0xc00e47c000, 0x81c21d8, 0xc0002703d0, 0xc0002703d0, 0x0, 0x0, 0xc01eba74d0, ...)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/mod/diagnostics.go:62 +0x127
golang.org/x/tools/internal/lsp/mod.Diagnostics(0x1b300e0, 0xc01eba73e0, 0x1b41fa0, 0xc00e47c000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/mod/diagnostics.go:29 +0x76b
golang.org/x/tools/internal/lsp.(*Server).diagnose(0xc000198460, 0x1b300e0, 0xc01eb2e150, 0x1b41fa0, 0xc00e47c000, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:160 +0x36e
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshot.func1()
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:93 +0x70
golang.org/x/tools/internal/lsp.(*debouncer).debounce(0xc0008a0080, 0xc000478060, 0x11, 0x6, 0xee6b280, 0xc028ac1ef8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debounce.go:79 +0x38a
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshot(0xc000198460, 0x1b41fa0, 0xc00e47c000, 0xc02a648000, 0x254, 0x400, 0x10000c01eae9001)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:92 +0x427
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles.func2(0xc019734190, 0xc000198460, 0x2, 0x1b41fa0, 0xc00e47c000, 0xc02a648000, 0x254, 0x400)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:233 +0xa5
created by golang.org/x/tools/internal/lsp.(*Server).didModifyFiles
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:231 +0x2a7
[Info - 9:35:40 AM] Connection to server got closed. Server will restart.
[Info - 9:35:40 AM] 2021/01/28 09:35:40 go env for /Users/kgr/git/iscu-integration
(root /Users/kgr/git/iscu-integration)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GOPRIVATE=github.com/hkraftno
GOSUMDB=sum.golang.org
GOFLAGS=
GOINSECURE=
GOROOT=/usr/local/go
GO111MODULE=
GOCACHE=/Users/kgr/Library/Caches/go-build
GONOPROXY=github.com/hkraftno
GOMOD=/Users/kgr/git/iscu-integration/go.mod
GOPROXY=https://proxy.golang.org,direct
GONOSUMDB=github.com/hkraftno
GOMODCACHE=/Users/kgr/go/pkg/mod
GOPATH=/Users/kgr/go

[Info - 9:35:40 AM] 2021/01/28 09:35:40 go env for /Users/kgr/git/iscu-integration/functions/workorderexporter
(root /Users/kgr/git/iscu-integration/functions/workorderexporter)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GOMOD=/Users/kgr/git/iscu-integration/functions/workorderexporter/go.mod
GOPRIVATE=github.com/hkraftno
GOSUMDB=sum.golang.org
GO111MODULE=
GONOPROXY=github.com/hkraftno
GONOSUMDB=github.com/hkraftno
GOFLAGS=
GOINSECURE=
GOPROXY=https://proxy.golang.org,direct
GOROOT=/usr/local/go
GOCACHE=/Users/kgr/Library/Caches/go-build
GOPATH=/Users/kgr/go
GOMODCACHE=/Users/kgr/go/pkg/mod

[Info - 9:35:41 AM] 2021/01/28 09:35:41 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

[Info - 9:35:41 AM] 2021/01/28 09:35:41 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[builtin github.com/hkraftno/iscu-integration/...]
packages=141

[Error - 9:35:41 AM] 2021/01/28 09:35:41 creating workspace dir: mkdir /var/folders/t6/_thzdn7x6099k892jtfxnnf40000gn/T/gopls-70334.workspace: file exists

[Info - 9:35:43 AM] 2021/01/28 09:35:43 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]
packages=1

[Info - 9:35:43 AM] 2021/01/28 09:35:43 go/packages.Load
snapshot=0
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]

[Info - 9:35:44 AM] 2021/01/28 09:35:44 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]
packages=1

[Info - 9:35:44 AM] 2021/01/28 09:35:44 go/packages.Load
snapshot=0
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]

[Info - 9:51:49 AM] 2021/01/28 09:51:49 background imports cache refresh starting

[Info - 9:51:49 AM] 2021/01/28 09:51:49 background refresh finished after 94.079084ms

[Info - 9:52:25 AM] 2021/01/28 09:52:25 background imports cache refresh starting

[Info - 9:52:25 AM] 2021/01/28 09:52:25 background refresh finished after 25.082006ms

[Error - 9:52:48 AM] 2021/01/28 09:52:48 no signature help: cannot find an enclosing function
position={91 19}

[Error - 9:52:48 AM] 2021/01/28 09:52:48 no signature help: cannot find an enclosing function
position={91 20}

[Info - 9:52:59 AM] 2021/01/28 09:52:59 background imports cache refresh starting

[Info - 9:52:59 AM] 2021/01/28 09:52:59 background refresh finished after 23.645416ms

[Error - 9:53:12 AM] Request textDocument/codeAction failed.
Message: context canceled
Code: 0
[Info - 9:53:29 AM] 2021/01/28 09:53:29 background imports cache refresh starting

[Info - 9:53:29 AM] 2021/01/28 09:53:29 background refresh finished after 23.625002ms

[Error - 9:53:41 AM] 2021/01/28 09:53:41 go/packages.Load: err: exit status 1: stderr: go: inconsistent vendoring in /Users/kgr/git/iscu-integration/functions/workorderexporter:
cloud.google.com/go@v0.74.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/hkraftno/iscu-integration@v0.0.0-20201230100031-0ef1bdcf2643: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/hkraftno/service-definitions@v0.0.0-20191216132531-f47c3ea22cc3: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
go.uber.org/zap@v1.16.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/hkraftno/iscu-integration: is replaced in go.mod, but not marked as replaced in vendor/modules.txt
github.com/hkraftno/service-definitions: is replaced in go.mod, but not marked as replaced in vendor/modules.txt

run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory

snapshot=135
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[github.com/hkraftno/iscu-integration/functions/workorderexporter]
packages=0

[Info - 9:53:42 AM] 2021/01/28 09:53:42 go/packages.Load
snapshot=135
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[github.com/hkraftno/iscu-integration/functions/workorderexporter]
packages=1

[Info - 9:53:42 AM] 2021/01/28 09:53:42 go/packages.Load
snapshot=135
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/haugnett.go /Users/kgr/git/iscu-integration/functions/workorderexporter/main.go /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]

fatal error: concurrent map iteration and map write

goroutine 31018 [running]:
runtime.throw(0x1a1c457, 0x26)
/usr/local/go/src/runtime/panic.go:1116 +0x72 fp=0xc031307010 sp=0xc031306fe0 pc=0x1038a12
runtime.mapiternext(0xc031307108)
/usr/local/go/src/runtime/map.go:853 +0x554 fp=0xc031307090 sp=0xc031307010 pc=0x1012e94
golang.org/x/tools/internal/lsp/cache.(*snapshot).knownFilesInDir(0xc01974c460, 0x1b300e0, 0xc00a056870, 0xc027d7e230, 0x66, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:720 +0xa5 fp=0xc031307178 sp=0xc031307090 pc=0x1748ec5
golang.org/x/tools/internal/lsp/cache.knownFilesInDir(0x1b300e0, 0xc00a056870, 0xc0078de160, 0x2, 0x2, 0xc027d7e230, 0x66, 0x8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/session.go:566 +0x9d fp=0xc0313071f0 sp=0xc031307178 pc=0x17420dd
golang.org/x/tools/internal/lsp/cache.(*Session).ExpandModificationsToDirectories(0xc000956bd0, 0x1b300e0, 0xc00a056870, 0xc027dc4000, 0x4e7, 0x600, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/session.go:527 +0x46a fp=0xc031307428 sp=0xc0313071f0 pc=0x1741b6a
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles(0xc00021c460, 0x1b300e0, 0xc00a056870, 0xc027dc4000, 0x4e7, 0x600, 0x2, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:222 +0x103 fp=0xc031307570 sp=0xc031307428 pc=0x18009a3
golang.org/x/tools/internal/lsp.(*Server).didChangeWatchedFiles(0xc00021c460, 0x1b300e0, 0xc00a056870, 0xc008299b40, 0x0, 0xc000e182c0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:172 +0x1ef fp=0xc031307678 sp=0xc031307570 pc=0x180032f
golang.org/x/tools/internal/lsp.(*Server).DidChangeWatchedFiles(0xc00021c460, 0x1b300e0, 0xc00a056870, 0xc008299b40, 0xc008299b40, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/server_gen.go:48 +0x49 fp=0xc0313076b8 sp=0xc031307678 pc=0x17fc8e9
golang.org/x/tools/internal/lsp/protocol.serverDispatch(0x1b300e0, 0xc00a056870, 0x1b44880, 0xc00021c460, 0xc00a152960, 0xa85c938, 0xc00a056600, 0xc000e18160, 0x1b300e0, 0xc00a7b6cc0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/protocol/tsserver.go:147 +0x4fa7 fp=0xc031307a20 sp=0xc0313076b8 pc=0x1288187
golang.org/x/tools/internal/lsp/protocol.ServerHandler.func1(0x1b300e0, 0xc00a056870, 0xc00a152960, 0xa85c938, 0xc00a056600, 0xfbcec5df51, 0x1fa3900)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/protocol/protocol.go:63 +0xc5 fp=0xc031307ab0 sp=0xc031307a20 pc=0x128d325
golang.org/x/tools/internal/lsp/lsprpc.handshaker.func1(0x1b300e0, 0xc00a056870, 0xc00a152960, 0xa85c938, 0xc00a056600, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/lsprpc/lsprpc.go:559 +0x452 fp=0xc031307ee0 sp=0xc031307ab0 pc=0x180cc12
golang.org/x/tools/internal/jsonrpc2.MustReplyHandler.func1(0x1b300e0, 0xc00a056870, 0xc008211620, 0xa85c938, 0xc00a056600, 0x171888e, 0xc0095ea9f8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:35 +0xcf fp=0xc031307f48 sp=0xc031307ee0 pc=0x12694ef
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2(0xc0268ea480, 0xc00a7b7290, 0xc000954130, 0x1b300e0, 0xc00a056870, 0xc008211620, 0xa85c938, 0xc00a056600)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:103 +0x86 fp=0xc031307fa0 sp=0xc031307f48 pc=0x1269c86
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1374 +0x1 fp=0xc031307fa8 sp=0xc031307fa0 pc=0x1070ca1
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:100 +0x173

goroutine 1 [chan receive, 18 minutes]:
golang.org/x/tools/internal/lsp/lsprpc.(*StreamServer).ServeStream(0xc000346600, 0x1b300e0, 0xc00034ade0, 0x1b34b80, 0xc00034c1e0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/lsprpc/lsprpc.go:88 +0x353
golang.org/x/tools/internal/lsp/cmd.(*Serve).Run(0xc000178530, 0x1b300e0, 0xc00034adb0, 0xc0001aa030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cmd/serve.go:110 +0x6ec
golang.org/x/tools/internal/tool.Run(0x1b300e0, 0xc00034adb0, 0x1b33ce0, 0xc000178530, 0xc0001aa030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:152 +0x2a2
golang.org/x/tools/internal/lsp/cmd.(*Application).Run(0xc000178500, 0x1b30060, 0xc00019a000, 0xc0001aa030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cmd/cmd.go:147 +0x347
golang.org/x/tools/internal/tool.Run(0x1b30060, 0xc00019a000, 0x1b33ca0, 0xc000178500, 0xc0001aa030, 0x1, 0x1, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:152 +0x2a2
golang.org/x/tools/internal/tool.Main(0x1b30060, 0xc00019a000, 0x1b33ca0, 0xc000178500, 0xc0001aa030, 0x1, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:91 +0x138
main.main()
/Users/kgr/go/pkg/mod/golang.org/x/tools/gopls@v0.6.4/main.go:25 +0xdb

goroutine 89 [chan receive]:
golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory.func1(0xc00034c140, 0xc00011d1c0, 0xc000352000, 0x1b300e0, 0xc00034adb0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debug/serve.go:447 +0x65
created by golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debug/serve.go:445 +0x99

goroutine 90 [syscall]:
syscall.syscall(0x1085ea0, 0x0, 0xc000356000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/sys_darwin.go:63 +0x2e
syscall.read(0x0, 0xc000356000, 0x1000, 0x1000, 0xc00012b728, 0x103b69c, 0xc00012b538)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1242 +0x66
syscall.Read(0x0, 0xc000356000, 0x1000, 0x1000, 0x7ffff800000, 0x2, 0xc00019e008)
/usr/local/go/src/syscall/syscall_unix.go:187 +0x49
internal/poll.ignoringEINTR(0x1a50048, 0x0, 0xc000356000, 0x1000, 0x1000, 0x2, 0x1000000000000, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:567 +0x52
internal/poll.(*FD).Read(0xc00019e000, 0xc000356000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:155 +0x149
os.(*File).read(...)
/usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0xc00019c000, 0xc000356000, 0x1000, 0x1000, 0xc00012b6ec, 0x2, 0x2)
/usr/local/go/src/os/file.go:116 +0x71
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc00034ae40)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:121 +0x116
created by golang.org/x/tools/internal/fakenet.NewConn
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:26 +0x2e9

goroutine 91 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc00034ae70)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:115 +0xd2
created by golang.org/x/tools/internal/fakenet.NewConn
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:27 +0x30f

goroutine 96 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).do(0xc00034ae40, 0xc000356000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:103 +0x1e5
golang.org/x/tools/internal/fakenet.(*fakeConn).Read(0xc00033f840, 0xc000356000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:67 +0x4d
bufio.(*Reader).fill(0xc000344fc0)
/usr/local/go/src/bufio/bufio.go:101 +0x105
bufio.(*Reader).ReadSlice(0xc000344fc0, 0xa, 0x0, 0x1b2e460, 0xc0001aa100, 0x6, 0x18a99e0)
/usr/local/go/src/bufio/bufio.go:360 +0x3d
bufio.(*Reader).collectFragments(0xc000344fc0, 0xc031303b0a, 0x1269e73, 0x40, 0x1a4e900, 0xc027982660, 0xc00a8a8a80, 0xc000954130, 0x1b300e0, 0xc00a88cb10, ...)
/usr/local/go/src/bufio/bufio.go:435 +0x7a
bufio.(*Reader).ReadString(0xc000344fc0, 0xa, 0xc00bcc5200, 0xc007fc6890, 0xc031303cd8, 0x128d811)
/usr/local/go/src/bufio/bufio.go:483 +0x4c
golang.org/x/tools/internal/jsonrpc2.(*headerStream).Read(0xc000346660, 0x1b300e0, 0xc00034ade0, 0xa85c938, 0xc00a88c690, 0x0, 0x0, 0x1b300e0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/stream.go:110 +0x98
golang.org/x/tools/internal/jsonrpc2.(*conn).run(0xc00034c1e0, 0x1b300e0, 0xc00034ade0, 0xc00028e3c0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/conn.go:196 +0xa2
created by golang.org/x/tools/internal/jsonrpc2.(*conn).Go
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/conn.go:189 +0x5d

goroutine 20178 [semacquire, 3 minutes]:
sync.runtime_Semacquire(0xc006f6e328)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc006f6e320)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
golang.org/x/tools/internal/memoize.(*Generation).Destroy(0xc006f6e300)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/memoize/memoize.go:74 +0x56
created by golang.org/x/tools/internal/lsp/cache.(*View).invalidateContent
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/view.go:624 +0x1ed

goroutine 29821 [chan receive]:
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2(0xc027982660, 0xc00a8a8a80, 0xc000954130, 0x1b300e0, 0xc00a88cb10, 0xc008252e60, 0xa85c938, 0xc00a88c690)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:101 +0x38
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:100 +0x173

goroutine 31015 [runnable]:
syscall.syscall(0x1086160, 0x7, 0xc01a8c8038, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/sys_darwin.go:63 +0x2e
syscall.Fstat(0x7, 0xc01a8c8038, 0x1010418, 0xd0)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1947 +0x65
internal/poll.(*FD).Fstat(0xc009940180, 0xc01a8c8038, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:455 +0xa5
os.(*File).Stat(0xc01d36c010, 0x64, 0x0, 0x0, 0xc01d36c010)
/usr/local/go/src/os/stat_unix.go:20 +0x65
io/ioutil.ReadFile(0xc00015b267, 0x64, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/io/ioutil/ioutil.go:62 +0xb3
golang.org/x/tools/internal/lsp/cache.readFile(0x1b300a0, 0xc00e1fe2a0, 0xc00015b260, 0x6b, 0x1b34dc0, 0xc01bb4e000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/cache.go:129 +0x3a5
golang.org/x/tools/internal/lsp/cache.(*Cache).getFile(0xc00034c190, 0x1b300a0, 0xc00e1fe2a0, 0xc00015b260, 0x6b, 0x0, 0x1, 0xc00015b1f0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/cache.go:104 +0x18b
golang.org/x/tools/internal/lsp/cache.(*snapshot).getFileLocked(0xc01974c460, 0x1b300a0, 0xc00e1fe2a0, 0xc00164b080, 0x0, 0x0, 0x1, 0xc00015b1f0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:962 +0xd1
golang.org/x/tools/internal/lsp/cache.(*snapshot).GetVersionedFile(0xc01974c460, 0x1b300a0, 0xc00e1fe2a0, 0xc028e68bd0, 0x6b, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:949 +0xe7
golang.org/x/tools/internal/lsp/cache.(*snapshot).GetFile(...)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:954
golang.org/x/tools/internal/lsp/cache.(*snapshot).parseGoHandles(0xc01974c460, 0x1b300a0, 0xc00e1fe2a0, 0xc01baea600, 0x12, 0x20, 0x1, 0xa57e1634c9ca675d, 0x500f1c01c568900, 0x6, ...)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:256 +0xf0
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc01974c460, 0x1b300a0, 0xc00e1fe2a0, 0xc01e27d2e0, 0x16, 0x1, 0xc01e27d2e0, 0x16, 0x1fd60e0, 0x28b1092f6eb12c00)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:121 +0xc6
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc01974c460, 0x1b300a0, 0xc00e1fe2a0, 0xc01e27d2e0, 0x16, 0x1, 0xc0015c1c20, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc01974c460, 0x1b300a0, 0xc00e1fe2a0, 0xc02b201700, 0x35, 0x1, 0xc02b201700, 0x35, 0x1fd60e0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc01974c460, 0x1b300a0, 0xc00e1fe2a0, 0xc02b201700, 0x35, 0x1, 0x2, 0x4, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc01974c460, 0x1b300a0, 0xc00e1fe2a0, 0xc02b323bc0, 0x40, 0x2, 0xc02b323bc0, 0x40, 0xc00cd48628, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc01974c460, 0x1b300a0, 0xc00e1fe2a0, 0xc02b323bc0, 0x40, 0x2, 0xc002fba0b0, 0xc02798d380, 0xc01bd82270)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).load(0xc01974c460, 0x1b300a0, 0xc00e1fe2a0, 0x0, 0xc00784e2e0, 0x1, 0x1, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/load.go:169 +0xd77
golang.org/x/tools/internal/lsp/cache.(*snapshot).reloadWorkspace(0xc01974c460, 0x1b300e0, 0xc00a1ce210, 0xd67c198, 0xc026e537b0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:1135 +0x43d
golang.org/x/tools/internal/lsp/cache.(*snapshot).awaitLoadedAllErrors(0xc01974c460, 0x1b300e0, 0xc00a1ce210, 0xfc000000018a96e0, 0x1014cbb)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:1078 +0x67
golang.org/x/tools/internal/lsp/cache.(*snapshot).awaitLoaded(0xc01974c460, 0x1b300e0, 0xc00a1ce210, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:997 +0x5b
golang.org/x/tools/internal/lsp/cache.(*snapshot).WorkspacePackages(0xc01974c460, 0x1b300e0, 0xc00a1ce210, 0xc00001c0f0, 0x49, 0x0, 0xc00784e260, 0x2)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:729 +0x5a
golang.org/x/tools/internal/lsp.(*Server).diagnose(0xc00021c460, 0x1b300e0, 0xc00874dbf0, 0x1b41fa0, 0xc01974c460, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:177 +0x77b
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshot.func1()
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:93 +0x70
golang.org/x/tools/internal/lsp.(*debouncer).debounce(0xc000954080, 0xc000546260, 0x11, 0x87, 0xee6b280, 0xc02798def8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debounce.go:79 +0x38a
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshot(0xc00021c460, 0x1b41fa0, 0xc01974c460, 0xc0140dd000, 0x91, 0x100, 0xc014ac1201)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:92 +0x427
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles.func2(0xc014a744f0, 0xc00021c460, 0x2, 0x1b41fa0, 0xc01974c460, 0xc0140dd000, 0x91, 0x100)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:233 +0xa5
created by golang.org/x/tools/internal/lsp.(*Server).didModifyFiles
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:231 +0x2a7

goroutine 31016 [semacquire]:
sync.runtime_Semacquire(0xc014a744f8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc014a744f0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles.func3(0xc014a744f0, 0xc00f5f4d58, 0x1, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:238 +0x2b
created by golang.org/x/tools/internal/lsp.(*Server).didModifyFiles
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:237 +0x315
[Info - 9:53:42 AM] Connection to server got closed. Server will restart.
[Info - 9:53:42 AM] 2021/01/28 09:53:42 go env for /Users/kgr/git/iscu-integration
(root /Users/kgr/git/iscu-integration)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GOSUMDB=sum.golang.org
GONOSUMDB=github.com/hkraftno
GOPROXY=https://proxy.golang.org,direct
GO111MODULE=
GOFLAGS=
GOPATH=/Users/kgr/go
GOROOT=/usr/local/go
GOMOD=/Users/kgr/git/iscu-integration/go.mod
GOMODCACHE=/Users/kgr/go/pkg/mod
GOPRIVATE=github.com/hkraftno
GOCACHE=/Users/kgr/Library/Caches/go-build
GOINSECURE=
GONOPROXY=github.com/hkraftno

[Info - 9:53:42 AM] 2021/01/28 09:53:42 go env for /Users/kgr/git/iscu-integration/functions/workorderexporter
(root /Users/kgr/git/iscu-integration/functions/workorderexporter)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GOINSECURE=
GO111MODULE=
GOMOD=/Users/kgr/git/iscu-integration/functions/workorderexporter/go.mod
GONOPROXY=github.com/hkraftno
GONOSUMDB=github.com/hkraftno
GOPROXY=https://proxy.golang.org,direct
GOCACHE=/Users/kgr/Library/Caches/go-build
GOFLAGS=
GOPRIVATE=github.com/hkraftno
GOROOT=/usr/local/go
GOMODCACHE=/Users/kgr/go/pkg/mod
GOPATH=/Users/kgr/go
GOSUMDB=sum.golang.org

[Info - 9:53:43 AM] 2021/01/28 09:53:43 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

[Info - 9:53:44 AM] 2021/01/28 09:53:44 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[builtin github.com/hkraftno/iscu-integration/...]
packages=141

[Error - 9:53:44 AM] 2021/01/28 09:53:44 creating workspace dir: mkdir /var/folders/t6/_thzdn7x6099k892jtfxnnf40000gn/T/gopls-70334.workspace: file exists

[Info - 9:53:47 AM] 2021/01/28 09:53:47 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]
packages=1

[Info - 9:53:47 AM] 2021/01/28 09:53:47 go/packages.Load
snapshot=0
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]

[Info - 9:53:47 AM] 2021/01/28 09:53:47 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]
packages=1

[Info - 9:53:47 AM] 2021/01/28 09:53:47 go/packages.Load
snapshot=0
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]

[Info - 9:54:15 AM] 2021/01/28 09:54:15 background imports cache refresh starting

[Info - 9:54:15 AM] 2021/01/28 09:54:15 background refresh finished after 74.005046ms

[Info - 9:57:54 AM] 2021/01/28 09:57:54 background imports cache refresh starting

[Info - 9:57:54 AM] 2021/01/28 09:57:54 background refresh finished after 24.850063ms

[Info - 9:58:59 AM] 2021/01/28 09:58:59 go/packages.Load
snapshot=9
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go file=/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]
packages=1

[Info - 9:58:59 AM] 2021/01/28 09:58:59 go/packages.Load
snapshot=9
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]

[Info - 9:59:00 AM] 2021/01/28 09:59:00 go/packages.Load
snapshot=9
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]
packages=1

[Info - 9:59:00 AM] 2021/01/28 09:59:00 go/packages.Load
snapshot=9
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]

[Error - 9:59:00 AM] 2021/01/28 09:59:00 errors loading workspace: You are working in a nested module. Please open it as a separate workspace folder.
snapshot=9
directory=file:///Users/kgr/git/iscu-integration

[Error - 10:24:59 AM] 2021/01/28 10:24:59 go/packages.Load: err: exit status 1: stderr: go: inconsistent vendoring in /Users/kgr/git/iscu-integration/functions/workorderexporter:
cloud.google.com/go@v0.74.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/hkraftno/iscu-integration@v0.0.0-20201230100031-0ef1bdcf2643: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/hkraftno/service-definitions@v0.0.0-20191216132531-f47c3ea22cc3: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
go.uber.org/zap@v1.16.0: is explicitly required in go.mod, but not marked as explicit in vendor/modules.txt
github.com/hkraftno/iscu-integration: is replaced in go.mod, but not marked as replaced in vendor/modules.txt
github.com/hkraftno/service-definitions: is replaced in go.mod, but not marked as replaced in vendor/modules.txt

run 'go mod vendor' to sync, or use -mod=mod or -mod=readonly to ignore the vendor directory

snapshot=3
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[github.com/hkraftno/iscu-integration/functions/workorderexporter]
packages=0

[Info - 10:25:00 AM] 2021/01/28 10:25:00 go/packages.Load
snapshot=3
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[github.com/hkraftno/iscu-integration/functions/workorderexporter]
packages=1

[Info - 10:25:00 AM] 2021/01/28 10:25:00 go/packages.Load
snapshot=3
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/haugnett.go /Users/kgr/git/iscu-integration/functions/workorderexporter/main.go /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]

fatal error: concurrent map iteration and map write

goroutine 21182 [running]:
runtime.throw(0x1a1c457, 0x26)
/usr/local/go/src/runtime/panic.go:1116 +0x72 fp=0xc0005f3010 sp=0xc0005f2fe0 pc=0x1038a12
runtime.mapiternext(0xc0005f3108)
/usr/local/go/src/runtime/map.go:853 +0x554 fp=0xc0005f3090 sp=0xc0005f3010 pc=0x1012e94
golang.org/x/tools/internal/lsp/cache.(*snapshot).knownFilesInDir(0xc0001a42a0, 0x1b300e0, 0xc007a0c180, 0xc0181151a0, 0x5f, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:720 +0xa5 fp=0xc0005f3178 sp=0xc0005f3090 pc=0x1748ec5
golang.org/x/tools/internal/lsp/cache.knownFilesInDir(0x1b300e0, 0xc007a0c180, 0xc00c76e570, 0x2, 0x2, 0xc0181151a0, 0x5f, 0x2)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/session.go:566 +0x9d fp=0xc0005f31f0 sp=0xc0005f3178 pc=0x17420dd
golang.org/x/tools/internal/lsp/cache.(*Session).ExpandModificationsToDirectories(0xc000800c40, 0x1b300e0, 0xc007a0c180, 0xc009e80000, 0x523, 0x600, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/session.go:527 +0x46a fp=0xc0005f3428 sp=0xc0005f31f0 pc=0x1741b6a
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles(0xc0001a4460, 0x1b300e0, 0xc007a0c180, 0xc009e80000, 0x523, 0x600, 0x2, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:222 +0x103 fp=0xc0005f3570 sp=0xc0005f3428 pc=0x18009a3
golang.org/x/tools/internal/lsp.(*Server).didChangeWatchedFiles(0xc0001a4460, 0x1b300e0, 0xc007a0c180, 0xc0081c8060, 0x0, 0xc0010d2580)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:172 +0x1ef fp=0xc0005f3678 sp=0xc0005f3570 pc=0x180032f
golang.org/x/tools/internal/lsp.(*Server).DidChangeWatchedFiles(0xc0001a4460, 0x1b300e0, 0xc007a0c180, 0xc0081c8060, 0xc0081c8060, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/server_gen.go:48 +0x49 fp=0xc0005f36b8 sp=0xc0005f3678 pc=0x17fc8e9
golang.org/x/tools/internal/lsp/protocol.serverDispatch(0x1b300e0, 0xc007a0c180, 0x1b44880, 0xc0001a4460, 0xc007a8a000, 0xa31a580, 0xc007a0c0c0, 0xc0010d20b0, 0x1b300e0, 0xc007a0cff0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/protocol/tsserver.go:147 +0x4fa7 fp=0xc0005f3a20 sp=0xc0005f36b8 pc=0x1288187
golang.org/x/tools/internal/lsp/protocol.ServerHandler.func1(0x1b300e0, 0xc007a0c180, 0xc007a8a000, 0xa31a580, 0xc007a0c0c0, 0x1b50f3e6329, 0x1fa3900)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/protocol/protocol.go:63 +0xc5 fp=0xc0005f3ab0 sp=0xc0005f3a20 pc=0x128d325
golang.org/x/tools/internal/lsp/lsprpc.handshaker.func1(0x1b300e0, 0xc007a0c180, 0xc007a8a000, 0xa31a580, 0xc007a0c0c0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/lsprpc/lsprpc.go:559 +0x452 fp=0xc0005f3ee0 sp=0xc0005f3ab0 pc=0x180cc12
golang.org/x/tools/internal/jsonrpc2.MustReplyHandler.func1(0x1b300e0, 0xc007a0c180, 0xc00826c2e0, 0xa31a580, 0xc007a0c0c0, 0xc00fa847b0, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:35 +0xcf fp=0xc0005f3f48 sp=0xc0005f3ee0 pc=0x12694ef
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2(0xc003c64540, 0xc007a0d0e0, 0xc0007fe120, 0x1b300e0, 0xc007a0c180, 0xc00826c2e0, 0xa31a580, 0xc007a0c0c0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:103 +0x86 fp=0xc0005f3fa0 sp=0xc0005f3f48 pc=0x1269c86
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1374 +0x1 fp=0xc0005f3fa8 sp=0xc0005f3fa0 pc=0x1070ca1
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:100 +0x173

goroutine 1 [chan receive, 31 minutes]:
golang.org/x/tools/internal/lsp/lsprpc.(*StreamServer).ServeStream(0xc0000bcec0, 0x1b300e0, 0xc0003284e0, 0x1b34b80, 0xc00009c6e0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/lsprpc/lsprpc.go:88 +0x353
golang.org/x/tools/internal/lsp/cmd.(*Serve).Run(0xc0000d4170, 0x1b300e0, 0xc0000cef90, 0xc000132030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cmd/serve.go:110 +0x6ec
golang.org/x/tools/internal/tool.Run(0x1b300e0, 0xc0000cef90, 0x1b33ce0, 0xc0000d4170, 0xc000132030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:152 +0x2a2
golang.org/x/tools/internal/lsp/cmd.(*Application).Run(0xc0000d4140, 0x1b30060, 0xc000122000, 0xc000132030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cmd/cmd.go:147 +0x347
golang.org/x/tools/internal/tool.Run(0x1b30060, 0xc000122000, 0x1b33ca0, 0xc0000d4140, 0xc000132030, 0x1, 0x1, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:152 +0x2a2
golang.org/x/tools/internal/tool.Main(0x1b30060, 0xc000122000, 0x1b33ca0, 0xc0000d4140, 0xc000132030, 0x1, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:91 +0x138
main.main()
/Users/kgr/go/pkg/mod/golang.org/x/tools/gopls@v0.6.4/main.go:25 +0xdb

goroutine 64 [chan receive]:
golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory.func1(0xc00009c640, 0xc000036df0, 0xc0000e0000, 0x1b300e0, 0xc0000cef90)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debug/serve.go:447 +0x65
created by golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debug/serve.go:445 +0x99

goroutine 65 [syscall]:
syscall.syscall(0x1085ea0, 0x0, 0xc0000e2000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/sys_darwin.go:63 +0x2e
syscall.read(0x0, 0xc0000e2000, 0x1000, 0x1000, 0xc00006b728, 0x103b69c, 0xc00006b538)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1242 +0x66
syscall.Read(0x0, 0xc0000e2000, 0x1000, 0x1000, 0x7ffff800000, 0x2, 0xc000126008)
/usr/local/go/src/syscall/syscall_unix.go:187 +0x49
internal/poll.ignoringEINTR(0x1a50048, 0x0, 0xc0000e2000, 0x1000, 0x1000, 0x2, 0x1000000000000, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:567 +0x52
internal/poll.(*FD).Read(0xc000126000, 0xc0000e2000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:155 +0x149
os.(*File).read(...)
/usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0xc000124000, 0xc0000e2000, 0x1000, 0x1000, 0xc00006b6ec, 0x2, 0x2)
/usr/local/go/src/os/file.go:116 +0x71
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc0000cf020)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:121 +0x116
created by golang.org/x/tools/internal/fakenet.NewConn
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:26 +0x2e9

goroutine 98 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc0000cf050)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:115 +0xd2
created by golang.org/x/tools/internal/fakenet.NewConn
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:27 +0x30f

goroutine 101 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).do(0xc0000cf020, 0xc0000e2000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:103 +0x1e5
golang.org/x/tools/internal/fakenet.(*fakeConn).Read(0xc0000bbfc0, 0xc0000e2000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:67 +0x4d
bufio.(*Reader).fill(0xc0000c5680)
/usr/local/go/src/bufio/bufio.go:101 +0x105
bufio.(*Reader).ReadSlice(0xc0000c5680, 0xa, 0x0, 0x1b2e460, 0xc000132100, 0x6, 0x18a99e0)
/usr/local/go/src/bufio/bufio.go:360 +0x3d
bufio.(*Reader).collectFragments(0xc0000c5680, 0xc000253b0a, 0x1269e73, 0x40, 0x1a4e900, 0xc009ffa2a0, 0xc00acd7620, 0xc0007fe120, 0x1b300e0, 0xc00acd6570, ...)
/usr/local/go/src/bufio/bufio.go:435 +0x7a
bufio.(*Reader).ReadString(0xc0000c5680, 0xa, 0xc00006d600, 0xc00c644170, 0xc000253cd8, 0x128d811)
/usr/local/go/src/bufio/bufio.go:483 +0x4c
golang.org/x/tools/internal/jsonrpc2.(*headerStream).Read(0xc0000bcf20, 0x1b300e0, 0xc0003284e0, 0xa31a580, 0xc00acd6480, 0x0, 0x0, 0x1b300e0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/stream.go:110 +0x98
golang.org/x/tools/internal/jsonrpc2.(*conn).run(0xc00009c6e0, 0x1b300e0, 0xc0003284e0, 0xc000132940)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/conn.go:196 +0xa2
created by golang.org/x/tools/internal/jsonrpc2.(*conn).Go
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/conn.go:189 +0x5d

goroutine 21484 [semacquire]:
sync.runtime_Semacquire(0xc001e140a8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc001e140a0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles.func3(0xc001e140a0, 0xc008bb7378, 0x1, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:238 +0x2b
created by golang.org/x/tools/internal/lsp.(*Server).didModifyFiles
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:237 +0x315

goroutine 21482 [semacquire]:
sync.runtime_Semacquire(0xc007c74fb8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc007c74fb0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
golang.org/x/tools/internal/memoize.(*Generation).Destroy(0xc007c74f90)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/memoize/memoize.go:74 +0x56
created by golang.org/x/tools/internal/lsp/cache.(*View).invalidateContent
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/view.go:624 +0x1ed

goroutine 20285 [chan receive]:
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2(0xc009ffa2a0, 0xc00acd7620, 0xc0007fe120, 0x1b300e0, 0xc00acd6570, 0xc007f99b80, 0xa31a580, 0xc00acd6480)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:101 +0x38
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:100 +0x173

goroutine 21483 [runnable]:
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0001a42a0, 0x1b300a0, 0xc0189f91a0, 0xc015c134c0, 0x1f, 0x1, 0xc015c134c0, 0x1f, 0x1fd60e0, 0xec5f233b0ad3cb00)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:158 +0x6d1
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0001a42a0, 0x1b300a0, 0xc0189f91a0, 0xc015c134c0, 0x1f, 0x1, 0xc01925aa20, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0001a42a0, 0x1b300a0, 0xc0189f91a0, 0xc015c13e00, 0x1f, 0x1, 0xc015c13e00, 0x1f, 0x1fd60e0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0001a42a0, 0x1b300a0, 0xc0189f91a0, 0xc015c13e00, 0x1f, 0x1, 0x8, 0x10, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0001a42a0, 0x1b300a0, 0xc0189f91a0, 0xc0168d7620, 0x16, 0x1, 0xc0168d7620, 0x16, 0x1fd60e0, 0xc8baf62725619f00)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0001a42a0, 0x1b300a0, 0xc0189f91a0, 0xc0168d7620, 0x16, 0x1, 0xc0012eeb40, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0001a42a0, 0x1b300a0, 0xc0189f91a0, 0xc00e6712c0, 0x35, 0x1, 0xc00e6712c0, 0x35, 0x1fd60e0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0001a42a0, 0x1b300a0, 0xc0189f91a0, 0xc00e6712c0, 0x35, 0x1, 0x2, 0x4, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0001a42a0, 0x1b300a0, 0xc0189f91a0, 0xc00ecf5bc0, 0x40, 0x2, 0xc00ecf5bc0, 0x40, 0xc00ff4b828, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0001a42a0, 0x1b300a0, 0xc0189f91a0, 0xc00ecf5bc0, 0x40, 0x2, 0xc000b874a0, 0xc0055d9380, 0xc000749e10)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).load(0xc0001a42a0, 0x1b300a0, 0xc0189f91a0, 0x0, 0xc00c8cd9d0, 0x1, 0x1, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/load.go:169 +0xd77
golang.org/x/tools/internal/lsp/cache.(*snapshot).reloadWorkspace(0xc0001a42a0, 0x1b300e0, 0xc0068a7da0, 0xa54c448, 0xc005d374c0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:1135 +0x43d
golang.org/x/tools/internal/lsp/cache.(*snapshot).awaitLoadedAllErrors(0xc0001a42a0, 0x1b300e0, 0xc0068a7da0, 0xfb000000018a96e0, 0x1014cbb)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:1078 +0x67
golang.org/x/tools/internal/lsp/cache.(*snapshot).awaitLoaded(0xc0001a42a0, 0x1b300e0, 0xc0068a7da0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:997 +0x5b
golang.org/x/tools/internal/lsp/cache.(*snapshot).WorkspacePackages(0xc0001a42a0, 0x1b300e0, 0xc0068a7da0, 0xc000784140, 0x49, 0x0, 0xc00c8cd7c0, 0x2)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:729 +0x5a
golang.org/x/tools/internal/lsp.(*Server).diagnose(0xc0001a4460, 0x1b300e0, 0xc0068a60f0, 0x1b41fa0, 0xc0001a42a0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:177 +0x77b
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshot.func1()
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:93 +0x70
golang.org/x/tools/internal/lsp.(*debouncer).debounce(0xc0007fe070, 0xc000514320, 0x11, 0x3, 0xee6b280, 0xc0055d9ef8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debounce.go:79 +0x38a
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshot(0xc0001a4460, 0x1b41fa0, 0xc0001a42a0, 0xc0083bd000, 0xd2, 0x100, 0xc026fbf001)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:92 +0x427
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles.func2(0xc001e140a0, 0xc0001a4460, 0x2, 0x1b41fa0, 0xc0001a42a0, 0xc0083bd000, 0xd2, 0x100)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:233 +0xa5
created by golang.org/x/tools/internal/lsp.(*Server).didModifyFiles
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:231 +0x2a7
[Info - 10:25:00 AM] Connection to server got closed. Server will restart.
[Info - 10:25:00 AM] 2021/01/28 10:25:00 go env for /Users/kgr/git/iscu-integration
(root /Users/kgr/git/iscu-integration)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GONOSUMDB=github.com/hkraftno
GOINSECURE=
GOCACHE=/Users/kgr/Library/Caches/go-build
GOFLAGS=
GOMOD=/Users/kgr/git/iscu-integration/go.mod
GOPATH=/Users/kgr/go
GOPROXY=https://proxy.golang.org,direct
GOMODCACHE=/Users/kgr/go/pkg/mod
GOPRIVATE=github.com/hkraftno
GOROOT=/usr/local/go
GOSUMDB=sum.golang.org
GO111MODULE=
GONOPROXY=github.com/hkraftno

[Info - 10:25:01 AM] 2021/01/28 10:25:01 go env for /Users/kgr/git/iscu-integration/functions/workorderexporter
(root /Users/kgr/git/iscu-integration/functions/workorderexporter)
(go version go version go1.15 darwin/amd64)
(valid build configuration = true)
(build flags: [])
GOSUMDB=sum.golang.org
GOMODCACHE=/Users/kgr/go/pkg/mod
GO111MODULE=
GOFLAGS=
GOINSECURE=
GOMOD=/Users/kgr/git/iscu-integration/functions/workorderexporter/go.mod
GOPRIVATE=github.com/hkraftno
GOPROXY=https://proxy.golang.org,direct
GOROOT=/usr/local/go
GOCACHE=/Users/kgr/Library/Caches/go-build
GONOPROXY=github.com/hkraftno
GONOSUMDB=github.com/hkraftno
GOPATH=/Users/kgr/go

[Info - 10:25:01 AM] 2021/01/28 10:25:01 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

[Info - 10:25:02 AM] 2021/01/28 10:25:02 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[builtin github.com/hkraftno/iscu-integration/...]
packages=141

[Error - 10:25:02 AM] 2021/01/28 10:25:02 creating workspace dir: mkdir /var/folders/t6/_thzdn7x6099k892jtfxnnf40000gn/T/gopls-70334.workspace: file exists

[Info - 10:25:06 AM] 2021/01/28 10:25:06 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]
packages=1

[Info - 10:25:06 AM] 2021/01/28 10:25:06 go/packages.Load
snapshot=0
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]

[Info - 10:25:06 AM] 2021/01/28 10:25:06 go/packages.Load
snapshot=0
directory=/Users/kgr/git/iscu-integration
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]
packages=1

[Info - 10:25:06 AM] 2021/01/28 10:25:06 go/packages.Load
snapshot=0
package="command-line-arguments"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]

[Info - 10:41:07 AM] 2021/01/28 10:41:07 go/packages.Load
snapshot=3
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

[Info - 10:42:05 AM] 2021/01/28 10:42:05 go/packages.Load
snapshot=5
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[builtin github.com/hkraftno/iscu-integration/functions/workorderexporter/...]
packages=2

[Info - 10:42:14 AM] 2021/01/28 10:42:14 background imports cache refresh starting

[Info - 10:42:14 AM] 2021/01/28 10:42:14 background refresh finished after 75.498603ms

[Info - 10:42:32 AM] 2021/01/28 10:42:32 go/packages.Load
snapshot=29
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]
packages=1

[Info - 10:42:32 AM] 2021/01/28 10:42:32 go/packages.Load
snapshot=29
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/haugnett.go /Users/kgr/git/iscu-integration/functions/workorderexporter/main.go /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]

[Info - 10:42:32 AM] 2021/01/28 10:42:32 go/packages.Load
snapshot=29
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[file=/Users/kgr/git/iscu-integration/functions/workorderexporter/main.go]
packages=1

[Info - 10:42:32 AM] 2021/01/28 10:42:32 go/packages.Load
snapshot=29
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/haugnett.go /Users/kgr/git/iscu-integration/functions/workorderexporter/main.go /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]

[Error - 10:42:32 AM] 2021/01/28 10:42:32 no signature help: cannot find signature for Fun *ast.SelectorExpr (&{json Encoder})
position={88 15}

[Info - 10:42:45 AM] 2021/01/28 10:42:45 background imports cache refresh starting

[Info - 10:42:45 AM] 2021/01/28 10:42:45 background refresh finished after 24.731397ms

[Info - 10:43:16 AM] 2021/01/28 10:43:16 background imports cache refresh starting

[Info - 10:43:16 AM] 2021/01/28 10:43:16 background refresh finished after 25.056415ms

[Info - 10:43:27 AM] 2021/01/28 10:43:27 go/packages.Load
snapshot=82
directory=/Users/kgr/git/iscu-integration/functions/workorderexporter
query=[github.com/hkraftno/iscu-integration/functions/workorderexporter]
packages=1

[Info - 10:43:27 AM] 2021/01/28 10:43:27 go/packages.Load
snapshot=82
package="github.com/hkraftno/iscu-integration/functions/workorderexporter"
files=[/Users/kgr/git/iscu-integration/functions/workorderexporter/haugnett.go /Users/kgr/git/iscu-integration/functions/workorderexporter/main.go /Users/kgr/git/iscu-integration/functions/workorderexporter/mapping.go]

fatal error: concurrent map iteration and map write

goroutine 27097 [running]:
runtime.throw(0x1a1c457, 0x26)
/usr/local/go/src/runtime/panic.go:1116 +0x72 fp=0xc025e15010 sp=0xc025e14fe0 pc=0x1038a12
runtime.mapiternext(0xc025e15108)
/usr/local/go/src/runtime/map.go:853 +0x554 fp=0xc025e15090 sp=0xc025e15010 pc=0x1012e94
golang.org/x/tools/internal/lsp/cache.(*snapshot).knownFilesInDir(0xc0280201c0, 0x1b300e0, 0xc00fb41ec0, 0xc0296ca720, 0x5a, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:720 +0xa5 fp=0xc025e15178 sp=0xc025e15090 pc=0x1748ec5
golang.org/x/tools/internal/lsp/cache.knownFilesInDir(0x1b300e0, 0xc00fb41ec0, 0xc007a88060, 0x2, 0x2, 0xc0296ca720, 0x5a, 0x4)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/session.go:566 +0x9d fp=0xc025e151f0 sp=0xc025e15178 pc=0x17420dd
golang.org/x/tools/internal/lsp/cache.(*Session).ExpandModificationsToDirectories(0xc0007f6bd0, 0x1b300e0, 0xc00fb41ec0, 0xc02a69a000, 0x5f0, 0x600, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/session.go:527 +0x46a fp=0xc025e15428 sp=0xc025e151f0 pc=0x1741b6a
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles(0xc000214460, 0x1b300e0, 0xc00fb41ec0, 0xc02a69a000, 0x5f0, 0x600, 0x2, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:222 +0x103 fp=0xc025e15570 sp=0xc025e15428 pc=0x18009a3
golang.org/x/tools/internal/lsp.(*Server).didChangeWatchedFiles(0xc000214460, 0x1b300e0, 0xc00fb41ec0, 0xc00a9b0800, 0x0, 0xc01919c160)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:172 +0x1ef fp=0xc025e15678 sp=0xc025e15570 pc=0x180032f
golang.org/x/tools/internal/lsp.(*Server).DidChangeWatchedFiles(0xc000214460, 0x1b300e0, 0xc00fb41ec0, 0xc00a9b0800, 0xc00a9b0800, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/server_gen.go:48 +0x49 fp=0xc025e156b8 sp=0xc025e15678 pc=0x17fc8e9
golang.org/x/tools/internal/lsp/protocol.serverDispatch(0x1b300e0, 0xc00fb41ec0, 0x1b44880, 0xc000214460, 0xc00fc90210, 0xa225440, 0xc00fb41320, 0xc01919c000, 0x1b300e0, 0xc00fc17890)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/protocol/tsserver.go:147 +0x4fa7 fp=0xc025e15a20 sp=0xc025e156b8 pc=0x1288187
golang.org/x/tools/internal/lsp/protocol.ServerHandler.func1(0x1b300e0, 0xc00fb41ec0, 0xc00fc90210, 0xa225440, 0xc00fb41320, 0x1019704082e, 0x1fa3900)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/protocol/protocol.go:63 +0xc5 fp=0xc025e15ab0 sp=0xc025e15a20 pc=0x128d325
golang.org/x/tools/internal/lsp/lsprpc.handshaker.func1(0x1b300e0, 0xc00fb41ec0, 0xc00fc90210, 0xa225440, 0xc00fb41320, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/lsprpc/lsprpc.go:559 +0x452 fp=0xc025e15ee0 sp=0xc025e15ab0 pc=0x180cc12
golang.org/x/tools/internal/jsonrpc2.MustReplyHandler.func1(0x1b300e0, 0xc00fb41ec0, 0xc00a87dd00, 0xa225440, 0xc00fb41320, 0xc01b4f8330, 0x1042576)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:35 +0xcf fp=0xc025e15f48 sp=0xc025e15ee0 pc=0x12694ef
golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1.2(0xc0281017a0, 0xc00fc17f80, 0xc0007f4120, 0x1b300e0, 0xc00fb41ec0, 0xc00a87dd00, 0xa225440, 0xc00fb41320)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:103 +0x86 fp=0xc025e15fa0 sp=0xc025e15f48 pc=0x1269c86
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1374 +0x1 fp=0xc025e15fa8 sp=0xc025e15fa0 pc=0x1070ca1
created by golang.org/x/tools/internal/jsonrpc2.AsyncHandler.func1
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/handler.go:100 +0x173

goroutine 1 [chan receive, 18 minutes]:
golang.org/x/tools/internal/lsp/lsprpc.(*StreamServer).ServeStream(0xc00017f9c0, 0x1b300e0, 0xc000330c60, 0x1b34b80, 0xc000124b90, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/lsprpc/lsprpc.go:88 +0x353
golang.org/x/tools/internal/lsp/cmd.(*Serve).Run(0xc000336170, 0x1b300e0, 0xc000330a20, 0xc00019e030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cmd/serve.go:110 +0x6ec
golang.org/x/tools/internal/tool.Run(0x1b300e0, 0xc000330a20, 0x1b33ce0, 0xc000336170, 0xc00019e030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:152 +0x2a2
golang.org/x/tools/internal/lsp/cmd.(*Application).Run(0xc000336140, 0x1b30060, 0xc00018a000, 0xc00019e030, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cmd/cmd.go:147 +0x347
golang.org/x/tools/internal/tool.Run(0x1b30060, 0xc00018a000, 0x1b33ca0, 0xc000336140, 0xc00019e030, 0x1, 0x1, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:152 +0x2a2
golang.org/x/tools/internal/tool.Main(0x1b30060, 0xc00018a000, 0x1b33ca0, 0xc000336140, 0xc00019e030, 0x1, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/tool/tool.go:91 +0x138
main.main()
/Users/kgr/go/pkg/mod/golang.org/x/tools/gopls@v0.6.4/main.go:25 +0xdb

goroutine 73 [chan receive]:
golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory.func1(0xc000124af0, 0xc0001211a0, 0xc00033c000, 0x1b300e0, 0xc000330a20)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debug/serve.go:447 +0x65
created by golang.org/x/tools/internal/lsp/debug.(*Instance).MonitorMemory
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debug/serve.go:445 +0x99

goroutine 74 [syscall]:
syscall.syscall(0x1085ea0, 0x0, 0xc00033e000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/sys_darwin.go:63 +0x2e
syscall.read(0x0, 0xc00033e000, 0x1000, 0x1000, 0xc008b42f28, 0x103b69c, 0xc008b42d38)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1242 +0x66
syscall.Read(0x0, 0xc00033e000, 0x1000, 0x1000, 0x7ffff800000, 0x2, 0xc000190008)
/usr/local/go/src/syscall/syscall_unix.go:187 +0x49
internal/poll.ignoringEINTR(0x1a50048, 0x0, 0xc00033e000, 0x1000, 0x1000, 0x2, 0x1000000000000, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:567 +0x52
internal/poll.(*FD).Read(0xc000190000, 0xc00033e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:155 +0x149
os.(*File).read(...)
/usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0xc00018e000, 0xc00033e000, 0x1000, 0x1000, 0xc008b42eec, 0x2, 0x2)
/usr/local/go/src/os/file.go:116 +0x71
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc000330ab0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:121 +0x116
created by golang.org/x/tools/internal/fakenet.NewConn
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:26 +0x2e9

goroutine 75 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).run(0xc000330ae0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:115 +0xd2
created by golang.org/x/tools/internal/fakenet.NewConn
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:27 +0x30f

goroutine 60 [select]:
golang.org/x/tools/internal/fakenet.(*connFeeder).do(0xc000330ab0, 0xc00033e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:103 +0x1e5
golang.org/x/tools/internal/fakenet.(*fakeConn).Read(0xc00032f480, 0xc00033e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/fakenet/conn.go:67 +0x4d
bufio.(*Reader).fill(0xc00032b3e0)
/usr/local/go/src/bufio/bufio.go:101 +0x105
bufio.(*Reader).ReadSlice(0xc00032b3e0, 0xa, 0x0, 0x1b2e460, 0xc00019e100, 0x6, 0x18a99e0)
/usr/local/go/src/bufio/bufio.go:360 +0x3d
bufio.(*Reader).collectFragments(0xc00032b3e0, 0xc025e19b0a, 0x1269e73, 0x40, 0x1a4e900, 0xc0281017a0, 0xc00fc17f80, 0xc0007f4120, 0x1b300e0, 0xc00fb41ec0, ...)
/usr/local/go/src/bufio/bufio.go:435 +0x7a
bufio.(*Reader).ReadString(0xc00032b3e0, 0xa, 0xc000680900, 0xc0077bc140, 0xc025e19cd8, 0x128d811)
/usr/local/go/src/bufio/bufio.go:483 +0x4c
golang.org/x/tools/internal/jsonrpc2.(*headerStream).Read(0xc00017fa20, 0x1b300e0, 0xc000330c60, 0xa225440, 0xc00fb41320, 0x0, 0x0, 0x1b300e0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/stream.go:110 +0x98
golang.org/x/tools/internal/jsonrpc2.(*conn).run(0xc000124b90, 0x1b300e0, 0xc000330c60, 0xc0002ce3c0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/conn.go:196 +0xa2
created by golang.org/x/tools/internal/jsonrpc2.(*conn).Go
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/jsonrpc2/conn.go:189 +0x5d

goroutine 27091 [runnable]:
syscall.syscall(0x1086160, 0x7, 0xc01c92a038, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/sys_darwin.go:63 +0x2e
syscall.Fstat(0x7, 0xc01c92a038, 0x1010418, 0xd0)
/usr/local/go/src/syscall/zsyscall_darwin_amd64.go:1947 +0x65
internal/poll.(*FD).Fstat(0xc00a83c000, 0xc01c92a038, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:455 +0xa5
os.(*File).Stat(0xc012524000, 0x61, 0x0, 0x0, 0xc012524000)
/usr/local/go/src/os/stat_unix.go:20 +0x65
io/ioutil.ReadFile(0xc000925f17, 0x61, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/io/ioutil/ioutil.go:62 +0xb3
golang.org/x/tools/internal/lsp/cache.readFile(0x1b300a0, 0xc011da9da0, 0xc000925f10, 0x68, 0x1b34dc0, 0xc01c882000, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/cache.go:129 +0x3a5
golang.org/x/tools/internal/lsp/cache.(*Cache).getFile(0xc000124b40, 0x1b300a0, 0xc011da9da0, 0xc000925f10, 0x68, 0x0, 0x1, 0xc000889b80)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/cache.go:104 +0x18b
golang.org/x/tools/internal/lsp/cache.(*snapshot).getFileLocked(0xc0280201c0, 0x1b300a0, 0xc011da9da0, 0xc001600a50, 0x0, 0x0, 0x1, 0xc000889b80)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:962 +0xd1
golang.org/x/tools/internal/lsp/cache.(*snapshot).GetVersionedFile(0xc0280201c0, 0x1b300a0, 0xc011da9da0, 0xc0289ac7e0, 0x68, 0x0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:949 +0xe7
golang.org/x/tools/internal/lsp/cache.(*snapshot).GetFile(...)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:954
golang.org/x/tools/internal/lsp/cache.(*snapshot).parseGoHandles(0xc0280201c0, 0x1b300a0, 0xc011da9da0, 0xc00e29d400, 0x12, 0x20, 0x1, 0xd53dd4e3e095453c, 0xc01c040600, 0xc, ...)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:256 +0xf0
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0280201c0, 0x1b300a0, 0xc011da9da0, 0xc025f20aa0, 0x16, 0x1, 0xc025f20aa0, 0x16, 0x1fd60e0, 0x727aac7109e16400)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:121 +0xc6
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0280201c0, 0x1b300a0, 0xc011da9da0, 0xc025f20aa0, 0x16, 0x1, 0xc015348c60, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0280201c0, 0x1b300a0, 0xc011da9da0, 0xc02af73580, 0x35, 0x1, 0xc02af73580, 0x35, 0x1fd60e0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0280201c0, 0x1b300a0, 0xc011da9da0, 0xc02af73580, 0x35, 0x1, 0x2, 0x4, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildKey(0xc0280201c0, 0x1b300a0, 0xc011da9da0, 0xc02b20da40, 0x40, 0x2, 0xc02b20da40, 0x40, 0xc012257ca8, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:146 +0x449
golang.org/x/tools/internal/lsp/cache.(*snapshot).buildPackageHandle(0xc0280201c0, 0x1b300a0, 0xc011da9da0, 0xc02b20da40, 0x40, 0x2, 0xc019204420, 0xc0296c8f60, 0xc01a0969c0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/check.go:67 +0xbb
golang.org/x/tools/internal/lsp/cache.(*snapshot).load(0xc0280201c0, 0x1b300a0, 0xc011da9da0, 0x0, 0xc00798d0d0, 0x1, 0x1, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/load.go:169 +0xd77
golang.org/x/tools/internal/lsp/cache.(*snapshot).reloadWorkspace(0xc0280201c0, 0x1b300e0, 0xc00e641770, 0x0, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:1135 +0x43d
golang.org/x/tools/internal/lsp/cache.(*snapshot).awaitLoadedAllErrors(0xc0280201c0, 0x1b300e0, 0xc00e641770, 0xc0296c93b8, 0x174b1a8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:1078 +0x67
golang.org/x/tools/internal/lsp/cache.(*snapshot).GetCriticalError(0xc0280201c0, 0x1b300e0, 0xc00e641770, 0xa2daee0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/snapshot.go:1011 +0x5a
golang.org/x/tools/internal/lsp/cache.(*snapshot).ModTidy(0xc0280201c0, 0x1b300e0, 0xc00e641770, 0xc01f842200, 0xc01d6a01b0, 0xc01f842200, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/mod_tidy.go:74 +0x1b1
golang.org/x/tools/internal/lsp/mod.ErrorsForMod(0x1b300e0, 0xc00e641770, 0x1b41fa0, 0xc0280201c0, 0xa2daee0, 0xc01d6a01b0, 0xc01d6a01b0, 0x0, 0x0, 0xc00e641b60, ...)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/mod/diagnostics.go:62 +0x127
golang.org/x/tools/internal/lsp/mod.Diagnostics(0x1b300e0, 0xc00e641770, 0x1b41fa0, 0xc0280201c0, 0x0, 0x0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/mod/diagnostics.go:29 +0x76b
golang.org/x/tools/internal/lsp.(*Server).diagnose(0xc000214460, 0x1b300e0, 0xc00ea424e0, 0x1b41fa0, 0xc0280201c0, 0x0)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:160 +0x36e
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshot.func1()
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:93 +0x70
golang.org/x/tools/internal/lsp.(*debouncer).debounce(0xc0007f4070, 0xc0004ac240, 0x11, 0x52, 0xee6b280, 0xc0296c9ef8)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/debounce.go:79 +0x38a
golang.org/x/tools/internal/lsp.(*Server).diagnoseSnapshot(0xc000214460, 0x1b41fa0, 0xc0280201c0, 0xc005bc0000, 0xe9, 0x100, 0xc0002e5001)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/diagnostics.go:92 +0x427
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles.func2(0xc01bee21b0, 0xc000214460, 0x2, 0x1b41fa0, 0xc0280201c0, 0xc005bc0000, 0xe9, 0x100)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:233 +0xa5
created by golang.org/x/tools/internal/lsp.(*Server).didModifyFiles
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:231 +0x2a7

goroutine 27092 [semacquire]:
sync.runtime_Semacquire(0xc01bee21b8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc01bee21b0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
golang.org/x/tools/internal/lsp.(*Server).didModifyFiles.func3(0xc01bee21b0, 0xc01e02e7b0, 0x1, 0x1)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:238 +0x2b
created by golang.org/x/tools/internal/lsp.(*Server).didModifyFiles
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/text_synchronization.go:237 +0x315

goroutine 22891 [semacquire, 2 minutes]:
sync.runtime_Semacquire(0xc01f669888)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc01f669880)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
golang.org/x/tools/internal/memoize.(*Generation).Destroy(0xc01f669860)
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/memoize/memoize.go:74 +0x56
created by golang.org/x/tools/internal/lsp/cache.(*View).invalidateContent
/Users/kgr/go/pkg/mod/golang.org/x/tools@v0.1.1-0.20210119222907-0a1a9685734a/internal/lsp/cache/view.go:624 +0x1ed
[Error - 10:43:27 AM] Connection to server got closed. Server will not be restarted.

Failed to auto-collect gopls trace: unrecognized crash pattern.

OPTIONAL: If you would like to share more information, you can attach your complete gopls logs.

NOTE: THESE MAY CONTAIN SENSITIVE INFORMATION ABOUT YOUR CODEBASE.
DO NOT SHARE LOGS IF YOU ARE WORKING IN A PRIVATE REPOSITORY.

<OPTIONAL: ATTACH LOGS HERE>

@hyangah hyangah changed the title gopls: automated issue report (crash) x/tools/gopls/internal/lsp/cache: fatal error: concurrent map iteration and map write Jan 28, 2021
@hyangah
Copy link
Contributor

hyangah commented Jan 28, 2021

@karl-gustav Thanks for attaching the stack trace! I will transfer this to the gopls issue tracker.

@hyangah hyangah transferred this issue from golang/vscode-go Jan 28, 2021
@gopherbot gopherbot added Tools This label describes issues relating to any tools in the x/tools repository. gopls Issues related to the Go language server, gopls. labels Jan 28, 2021
@gopherbot gopherbot added this to the Unreleased milestone Jan 28, 2021
@gopherbot
Copy link

Change https://golang.org/cl/287573 mentions this issue: internal/lsp/cache: lock during knownFilesInDir

@stamblerre stamblerre modified the milestones: Unreleased, gopls/v0.6.5 Jan 28, 2021
@golang golang locked and limited conversation to collaborators Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge gopls Issues related to the Go language server, gopls. Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

4 participants