Skip to content

The LS crashed the underlying CLI process #6

Closed
@kittaakos

Description

@kittaakos
root ERROR Arduino: panic: runtime error: slice bounds out of range

goroutine 22 [running]:

root ERROR Arduino: github.com/bcmi-labs/arduino-language-server/handler.applyTextChange(0xc000240000, 0x7e, 0x7, 0x2e, 0x8, 0x0, 0x0, 0x0, 0x10114e9, 0xc0001b0000)
        /Users/vsts/agent/2.155.1/work/1/s/handler/sourcemap.go:120 +0x2e5
github.com/bcmi-labs/arduino-language-server/handler.(*InoHandler).updateFileData(0xc0000b8000, 0xc0000dc320, 0xc00023c180, 0x6a, 0xc0000d31a0)
        /Users/vsts/agent/2.155.1/work/1/s/handler/handler.go:323 +0x562
github.com/bcmi-labs/arduino-language-server/handler.(*InoHandler).ino2cppDidChangeTextDocumentParams(0xc0000b8000, 0xc0000784b0, 0x16, 0x1)
        /Users/vsts/agent/2.155.1/work/1/s/handler/handler.go:435 +0x109
github.com/bcmi-labs/arduino-language-server/handler.(*InoHandler).transformParamsToClangd(0xc0000b8000, 0x11a0620, 0xc0000a0000, 0xc0001babe0, 0x16, 0x1131000, 0xc0000784b0, 0x0, 0x0, 0x0, ...)
        /Users/vsts/agent/2.155.1/work/1/s/handler/handler.go:219 +0x497
github.com/bcmi-labs/arduino-language-server/handler.(*InoHandler).FromStdio(0xc0000b8000, 0x11a0620, 0xc0000a0000, 0xc0000f4080, 0xc0001c60f0, 0x0, 0x0, 0x0, 0x0)
        /Users/vsts/agent/2.155.1/work/1/s/handler/handler.go:119 +0x595
github.com/sourcegraph/jsonrpc2.(*HandlerWithErrorConfigurer).Handle(0xc0000c2060, 0x11a0620, 0xc0000a0000, 0xc0000f4080, 0xc0001c60f0)
        /Users/vsts/go/pkg/mod/github.com/sourcegraph/jsonrpc2@v0.0.0-20190106185902-35a74f039c6a/handler_with_error.go:21 +0x73
created by github.com/sourcegraph/jsonrpc2.asyncHandler.Handle
        /Users/vsts/go/pkg/mod/github.com/sourcegraph/jsonrpc2@v0.0.0-20190106185902-35a74f039c6a/async.go:16 +0x6b


Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions