Skip to content

completionItem/resolve symbolOriginInfo: unknown data type for moduleSymbol #1950

@pedro757

Description

@pedro757

Stack trace

[ERROR][2025-10-24 13:51:45] /usr/share/nvim/runtime/lua/vim/lsp/log.lua:151	"rpc"	"tsgo"	"stderr"	"[13:51:45.441] Processed 1 file changes in 58.276µs\n"
[ERROR][2025-10-24 13:51:45] /usr/share/nvim/runtime/lua/vim/lsp/log.lua:151	"rpc"	"tsgo"	"stderr"	"======== Cloning snapshot 49 ========\n[13:51:45.441] Reason: RequestedLanguageService (pending file changes) - [file:///home/myUser/Documents/myProject/apps/nextjs/app/(app)/creativa/ventas/agregar/v2/action.tsx]\n[13:51:45.441] DidChangeFiles\n\t[13:51:45.441] Checking for changes affecting config files\n\t\t[13:51:45.441] Summarizing file changes\n\t\t[13:51:45.441] Checking if any changed files are config files\n\t[13:51:45.441] Marking project /home/myUser/Documents/myProject/apps/nextjs/tsconfig.json as dirty due to changes in /home/myUser/Documents/myProject/apps/nextjs/app/(app)/creativa/ventas/agregar/v2/action.tsx\n[13:51:45.441] DidRequestFile\n\t[13:51:45.441] Acquiring config for project\n\t[13:51:45.441] CompilerHost\n\t[13:51:45.448] Program update for /home/myUser/Documents/myProject/apps/nextjs/tsconfig.json completed in 6.46578ms\n[13:51:45.448] Finished cloning snapshot 49 into snapshot 50 in 6.505742ms\n\n\n"
[ERROR][2025-10-24 13:51:45] /usr/share/nvim/runtime/lua/vim/lsp/log.lua:151	"rpc"	"tsgo"	"stderr"	"panic handling request completionItem/resolve symbolOriginInfo: unknown data type for moduleSymbol(): <nil> goroutine 36467 [running]:\nruntime/debug.Stack()\n\truntime/debug/stack.go:26 +0x5e\ngithub.com/microsoft/typescript-go/internal/lsp.(*Server).recover(0xc0000d2dc0, 0xc13f0d4990)\n\tgithub.com/microsoft/typescript-go/internal/lsp/server.go:567 +0x58\npanic({0xb147a0?, 0xc058b99460?})\n\truntime/panic.go:783 +0x132\ngithub.com/microsoft/typescript-go/internal/ls.(*symbolOriginInfo).moduleSymbol(...)\n\tgithub.com/microsoft/typescript-go/internal/ls/completions.go:243\ngithub.com/microsoft/typescript-go/internal/ls.(*LanguageService).getCompletionItemActions(0xc13f0d4b10, {0xea88c0, 0xc0563758b0}, 0xc1668ae608, 0xc159ef1208, 0x403b, 0xc0574a4e40, 0xc058bc4000)\n\tgithub.com/microsoft/typescript-go/internal/ls/completions.go:5340 +0x614\ngithub.com/microsoft/typescript-go/internal/ls.(*LanguageService).getCompletionItemDetails(0xc13f0d4b10, {0xea88c0, 0xc0563758b0}, 0xd?, 0x403b, 0xc159ef1208, 0xc0505d72c0, 0xc0574a4e40, 0xc00014fa70)\n\tgithub.com/microsoft/typescript-go/internal/ls/completions.go:5093 +0x5f9\ngithub.com/microsoft/typescript-go/internal/ls.(*LanguageService).ResolveCompletionItem(0xc13f0d4b10, {0xea88c0, 0xc0563758b0}, 0xc0505d72c0, 0xc0574a4e40, 0xc00014fa70)\n\tgithub.com/microsoft/typescript-go/internal/ls/completions.go:5021 +0x9b\ngithub.com/microsoft/typescript-go/internal/lsp.(*Server).handleCompletionItemResolve(0xc0000d2dc0, {0xea88c0, 0xc0563758b0}, 0xc0505d72c0, 0xc13f0d4990)\n\tgithub.com/microsoft/typescript-go/internal/lsp/server.go:852 +0x133\ngithub.com/microsoft/typescript-go/internal/lsp.init.func1.registerRequestHandler[...].27({0xea88c0, 0xc0563758b0}, 0xc13f0d4990)\n\tgithub.com/microsoft/typescript-go/internal/lsp/server.go:529 +0xb6\ngithub.com/microsoft/typescript-go/internal/lsp.(*Server).handleRequestOrNotification(0xc0000d2dc0, {0xea88c0, 0xc0563758b0}, 0xc13f0d4990)\n\tgithub.com/microsoft/typescript-go/internal/lsp/server.go:449 +0x10d\ngithub.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop.func1()\n\tgithub.com/microsoft/typescript-go/internal/lsp/server.go:354 +0x3a\ncreated by github.com/microsoft/typescript-go/internal/lsp.(*Server).dispatchLoop in goroutine 11\n\tgithub.com/microsoft/typescript-go/internal/lsp/server.go:374 +0x9ad\n\n"
[ERROR][2025-10-24 13:51:45] /usr/share/nvim/runtime/lua/vim/lsp/log.lua:151	"No callback found for server response id 170"
[ERROR][2025-10-24 13:51:45] /usr/share/nvim/runtime/lua/vim/lsp/log.lua:151	"LSP[tsgo]"	"on_error"	{ code = "NO_RESULT_CALLBACK_FOUND", err = { id = 170, jsonrpc = "2.0", result = vim.NIL } }

Steps to reproduce

  1. type const abc = [].
  2. delete the dot above const abc = []
  3. type a dot again to continue const abc = [].map
  4. errors

version: 7.0.0-dev.20251024.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions