Skip to content

[Bug] vue-language-server not working at all and intelephense only works under debug log level #85

@LimLLL

Description

@LimLLL

I'm using mcp-language-server through Claude code. Some weird thing happens, vue-language-server not working at all, here's the log:

[ { "debug": "Starting connection with timeout of 30000ms", "timestamp": "2025-09-26T03:18:02.577Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" }, { "error": "Server stderr: 2025/09/26 11:18:02.593598 [INFO][core] MCP Language Server starting\n2025/09/26 11:18:02.594217 [DEBUG][core] Monitoring parent process: 1457288\n2025/09/26 11:18:02.594898 [DEBUG][lsp] Making call: method=initialize id=1\n2025/09/26 11:18:02.596129 [DEBUG][lsp] Sending message: method=initialize id=1\n2025/09/26 11:18:02.596142 [DEBUG][wire] -> Sending: {\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"initialize\",\"params\":{\"processId\":1457815,\"clientInfo\":{\"name\":\"mcp-language-server\",\"version\":\"0.1.0\"},\"rootPath\":\"/home/xxxxxx/docker_data/xxxxxx/web\",\"rootUri\":\"file:///home/xxxxxx/docker_data/xxxxxx/web\",\"capabilities\":{\"workspace\":{\"didChangeConfiguration\":{\"dynamicRegistration\":true},\"didChangeWatchedFiles\":{\"dynamicRegistration\":true,\"relativePatternSupport\":true},\"configuration\":true},\"textDocument\":{\"synchronization\":{\"dynamicRegistration\":true,\"didSave\":true},\"completion\":{\"completionItem\":{}},\"documentSymbol\":{},\"codeAction\":{\"codeActionLiteralSupport\":{\"codeActionKind\":{\"valueSet\":[]}}},\"codeLens\":{\"dynamicRegistration\":true},\"publishDiagnostics\":{\"versionSupport\":true},\"semanticTokens\":{\"requests\":{\"range\":null,\"full\":null},\"tokenTypes\":[],\"tokenModifiers\":[],\"formats\":[]}},\"window\":{}},\"initializationOptions\":{\"codelenses\":{\"generate\":true,\"regenerate_cgo\":true,\"test\":true,\"tidy\":true,\"upgrade_dependency\":true,\"vendor\":true,\"vulncheck\":false}},\"workDoneToken\":null,\"workspaceFolders\":[{\"uri\":\"file:///home/xxxxxx/docker_data/xxxxxx/web\",\"name\":\"/home/xxxxxx/docker_data/xxxxxx/web\"}]}}\n2025/09/26 11:18:02.596154 [DEBUG][lsp] Waiting for response to request ID: 1", "timestamp": "2025-09-26T03:18:02.603Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" }, { "error": "Server stderr: 2025/09/26 11:18:03.241003 [DEBUG][wire] <- Header: Content-Length: 1537", "timestamp": "2025-09-26T03:18:03.241Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" }, { "error": "Server stderr: 2025/09/26 11:18:03.241277 [DEBUG][wire] <- Received: {\"jsonrpc\":\"2.0\",\"id\":1,\"result\":{\"capabilities\":{\"textDocumentSync\":2,\"workspace\":{\"workspaceFolders\":{\"supported\":true,\"changeNotifications\":true}},\"selectionRangeProvider\":true,\"foldingRangeProvider\":true,\"linkedEditingRangeProvider\":true,\"colorProvider\":true,\"documentSymbolProvider\":true,\"documentFormattingProvider\":true,\"documentRangeFormattingProvider\":true,\"referencesProvider\":true,\"definitionProvider\":true,\"hoverProvider\":true,\"documentHighlightProvider\":true,\"renameProvider\":{\"prepareProvider\":true},\"documentLinkProvider\":{},\"inlayHintProvider\":{},\"completionProvider\":{\"triggerCharacters\":[\"/\",\"-\",\":\",\"\\\"\",\"@\",\".\",\"<\",\"=\",\">\",\"+\",\"^\",\"*\",\"(\",\")\",\"#\",\"[\",\"]\",\"$\",\"{\",\"}\"],\"resolveProvider\":true},\"semanticTokensProvider\":{\"full\":true,\"range\":true,\"legend\":{\"tokenTypes\":[\"namespace\",\"class\",\"enum\",\"interface\",\"typeParameter\",\"type\",\"parameter\",\"variable\",\"property\",\"enumMember\",\"function\",\"method\",\"component\"],\"tokenModifiers\":[\"declaration\",\"readonly\",\"static\",\"async\",\"defaultLibrary\",\"local\"]}},\"codeActionProvider\":{\"codeActionKinds\":[\"refactor\"],\"resolveProvider\":true},\"documentOnTypeFormattingProvider\":{\"firstTriggerCharacter\":\";\",\"moreTriggerCharacter\":[\"}\",\"\\n\"]},\"experimental\":{\"autoInsertionProvider\":{\"triggerCharacters\":[\"}\",\"=\",\">\",\"/\",\"\\\\w\"],\"configurationSections\":[[\"vue.autoInsert.bracketSpacing\"],[\"html.autoCreateQuotes\"],[\"html.autoClosingTags\",\"javascript.autoClosingTags\",\"typescript.autoClosingTags\"],[\"html.autoClosingTags\"],[\"vue.autoInsert.dotValue\"]]},\"documentDropEditsProvider\":true}}}}\n2025/09/26 11:18:03.241428 [DEBUG][lsp] Received response for ID: 1\n2025/09/26 11:18:03.241439 [DEBUG][lsp] Sending response for ID 1 to handler\n2025/09/26 11:18:03.241468 [DEBUG][lsp] Received response for request ID: 1", "timestamp": "2025-09-26T03:18:03.242Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" }, { "error": "Server stderr: 2025/09/26 11:18:03.242232 [DEBUG][lsp] Sending notification: method=initialized\n2025/09/26 11:18:03.242263 [DEBUG][lsp] Sending message: method=initialized id=<null>\n2025/09/26 11:18:03.242272 [DEBUG][wire] -> Sending: {\"jsonrpc\":\"2.0\",\"method\":\"initialized\",\"params\":{}}\n2025/09/26 11:18:03.242298 [DEBUG][lsp] Sending notification: method=initialized\n2025/09/26 11:18:03.242321 [DEBUG][lsp] Sending message: method=initialized id=<null>\n2025/09/26 11:18:03.242328 [DEBUG][wire] -> Sending: {\"jsonrpc\":\"2.0\",\"method\":\"initialized\",\"params\":{}}\n2025/09/26 11:18:03.242475 [DEBUG][core] Server capabilities: {PositionEncoding:<nil> TextDocumentSync:2 NotebookDocumentSync:<nil> CompletionProvider:0xc0002a0050 HoverProvider:0xc0002a3b10 SignatureHelpProvider:<nil> DeclarationProvider:<nil> DefinitionProvider:0xc0002a3b00 TypeDefinitionProvider:<nil> ImplementationProvider:<nil> ReferencesProvider:0xc0002a3af0 DocumentHighlightProvider:0xc0002a3b20 DocumentSymbolProvider:0xc0002a3ac0 CodeActionProvider:map[codeActionKinds:[refactor] resolveProvider:true] CodeLensProvider:<nil> DocumentLinkProvider:0xc00031939c ColorProvider:0xc0002a3ab0 WorkspaceSymbolProvider:<nil> DocumentFormattingProvider:0xc0002a3ad0 DocumentRangeFormattingProvider:0xc0002a3ae0 DocumentOnTypeFormattingProvider:0xc000349290 RenameProvider:map[prepareProvider:true] FoldingRangeProvider:0xc0002a3a90 SelectionRangeProvider:0xc0002a3a80 ExecuteCommandProvider:<nil> CallHierarchyProvider:<nil> LinkedEditingRangeProvider:0xc0002a3aa0 SemanticTokensProvider:map[full:true legend:map[tokenModifiers:[declaration readonly static async defaultLibrary local] tokenTypes:[namespace class enum interface typeParameter type parameter variable property enumMember function method component]] range:true] MonikerProvider:<nil> TypeHierarchyProvider:<nil> InlineValueProvider:<nil> InlayHintProvider:map[] DiagnosticProvider:<nil> InlineCompletionProvider:<nil> Workspace:0xc00031d1e8 Experimental:map[autoInsertionProvider:map[configurationSections:[[vue.autoInsert.bracketSpacing] [html.autoCreateQuotes] [html.autoClosingTags javascript.autoClosingTags typescript.autoClosingTags] [html.autoClosingTags] [vue.autoInsert.dotValue]] triggerCharacters:[} = > / \\w]] documentDropEditsProvider:true]}\n2025/09/26 11:18:03.244565 [DEBUG][wire] <- Header: Content-Length: 201\n2025/09/26 11:18:03.244644 [DEBUG][wire] <- Received: {\"jsonrpc\":\"2.0\",\"id\":0,\"method\":\"client/registerCapability\",\"params\":{\"registrations\":[{\"id\":\"6a317cf0-55f0-4b6d-8257-4dcceb1ecc1a\",\"method\":\"workspace/didChangeConfiguration\",\"registerOptions\":{}}]}}\n2025/09/26 11:18:03.244685 [DEBUG][lsp] Received request from server: method=client/registerCapability id=0\n2025/09/26 11:18:03.244694 [DEBUG][lsp] Processing server request: method=client/registerCapability id=0\n2025/09/26 11:18:03.244764 [INFO][lsp] Registration received for method: workspace/didChangeConfiguration, id: 6a317cf0-55f0-4b6d-8257-4dcceb1ecc1a\n2025/09/26 11:18:03.244807 [DEBUG][lsp] Sending message: method= id=0\n2025/09/26 11:18:03.244815 [DEBUG][wire] -> Sending: {\"jsonrpc\":\"2.0\",\"id\":0,\"result\":null}\n2025/09/26 11:18:03.244844 [DEBUG][wire] <- Header: Content-Length: 99\n2025/09/26 11:18:03.244858 [DEBUG][wire] <- Received: {\"jsonrpc\":\"2.0\",\"id\":1,\"method\":\"workspace/configuration\",\"params\":{\"items\":[{\"section\":\"http\"}]}}\n2025/09/26 11:18:03.244879 [DEBUG][lsp] Received request from server: method=workspace/configuration id=1\n2025/09/26 11:18:03.244887 [DEBUG][lsp] Processing server request: method=workspace/configuration id=1\n2025/09/26 11:18:03.244913 [DEBUG][lsp] Sending message: method= id=1\n2025/09/26 11:18:03.244924 [DEBUG][wire] -> Sending: {\"jsonrpc\":\"2.0\",\"id\":1,\"result\":[{}]}\n2025/09/26 11:18:03.245013 [INFO][watcher] Initialized gitignore matcher for /home/xxxxxx/docker_data/xxxxxx/web\n2025/09/26 11:18:03.245259 [DEBUG][watcher] Skipping watching excluded directory: /home/xxxxxx/docker_data/xxxxxx/web/.vscode\n2025/09/26 11:18:03.245284 [DEBUG][watcher] Skipping watching excluded directory: /home/xxxxxx/docker_data/xxxxxx/web/node_modules\n2025/09/26 11:18:03.245289 [DEBUG][wire] <- Header: Content-Length: 201\n2025/09/26 11:18:03.245378 [DEBUG][wire] <- Received: {\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"client/registerCapability\",\"params\":{\"registrations\":[{\"id\":\"5c746267-8335-46e8-87bf-38e8bacab6f7\",\"method\":\"workspace/didChangeConfiguration\",\"registerOptions\":{}}]}}\n2025/09/26 11:18:03.245443 [DEBUG][lsp] Received request from server: method=client/registerCapability id=2\n2025/09/26 11:18:03.245457 [DEBUG][lsp] Processing server request: method=client/registerCapability id=2\n2025/09/26 11:18:03.245501 [INFO][lsp] Registration received for method: workspace/didChangeConfiguration, id: 5c746267-8335-46e8-87bf-38e8bacab6f7\n2025/09/26 11:18:03.245558 [DEBUG][lsp] Sending message: method= id=2\n2025/09/26 11:18:03.245566 [DEBUG][wire] -> Sending: {\"jsonrpc\":\"2.0\",\"id\":2,\"result\":null}", "timestamp": "2025-09-26T03:18:03.249Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" }, { "error": "Server stderr: 2025/09/26 11:18:04.242636 [DEBUG][core] Registering MCP tools\n2025/09/26 11:18:04.242740 [INFO][core] Successfully registered all MCP tools", "timestamp": "2025-09-26T03:18:04.243Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" }, { "debug": "Successfully connected to stdio server in 1671ms", "timestamp": "2025-09-26T03:18:04.246Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" }, { "debug": "Connection established with capabilities: {\"hasTools\":true,\"hasPrompts\":false,\"hasResources\":false,\"serverVersion\":{\"name\":\"MCP Language Server\",\"version\":\"v0.0.2\"}}", "timestamp": "2025-09-26T03:18:04.247Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" }, { "debug": "Calling MCP tool: diagnostics", "timestamp": "2025-09-26T03:19:36.833Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" }, { "error": "Server stderr: 2025/09/26 11:19:36.834641 [DEBUG][core] Executing diagnostics for file: /home/xxxxxx/docker_data/xxxxxx/web/src/App.vue\n2025/09/26 11:19:36.834749 [DEBUG][lsp] Sending notification: method=textDocument/didOpen\n2025/09/26 11:19:36.834917 [DEBUG][lsp] Sending message: method=textDocument/didOpen id=<null>\n2025/09/26 11:19:36.834933 [DEBUG][wire] -> Sending: {\"jsonrpc\":\"2.0\",\"method\":\"textDocument/didOpen\",\"params\":{\"textDocument\":{\"uri\":\"file:///home/xxxxxx/docker_data/xxxxxx/web/src/App.vue\",\"languageId\":\"\",\"version\":1,\"text\":\"\\u003cscript lang=\\\"ts\\\" setup\\u003e\\nimport {\\n darkTheme,\\n dateZhCN,\\n dateEnUS,\\n lightTheme,\\n NConfigProvider,\\n NGlobalStyle,\\n NModalProvider,\\n NDialogProvider,\\n NMessageProvider,\\n NNotificationProvider,\\n zhCN,\\n enUS,\\n type GlobalThemeOverrides,\\n} from 'naive-ui';\\nimport {useThemeStore} from \\\"@/stores/theme\\\";\\nimport {computed, onMounted, watch} from \\\"vue\\\";\\nimport Boot from \\\"@/Boot.vue\\\";\\nimport {useLocaleStore} from \\\"@/stores/locale\\\";\\n\\nconst themeStore = useThemeStore()\\nconst localeStore = useLocaleStore()\\nconst theme = computed(() =\\u003e themeStore.isDark ? darkTheme : lightTheme)\\nconst themeOverrides : GlobalThemeOverrides = {\\n common: {\\n fontWeightStrong: '600',\\n primaryColor: '#0094c5',\\n borderRadius: '8px',\\n borderRadiusSmall: '5px',\\n },\\n}\\n\\nconst setBodyTheme = (isDark: boolean) =\\u003e {\\n if (isDark) {\\n document.body.classList.add('dark')\\n } else {\\n document.body.classList.remove('dark')\\n }\\n}\\n\\nonMounted(() =\\u003e {\\n // 设置 body 上的 dark 类\\n // 这么做是因为 native ui 中使用编程式 api 的组件时,dom 在 app 外,会导致 tailwindcss 的 dark 失效\\n setBodyTheme(themeStore.isDark)\\n watch(() =\\u003e themeStore.isDark, value =\\u003e setBodyTheme(value))\\n})\\n\\n\\u003c/script\\u003e\\n\\n\\u003ctemplate\\u003e\\n \\u003cNConfigProvider\\n :date-locale=\\\"localeStore.locale === 'zh-CN' ? dateZhCN : dateEnUS\\\"\\n :locale=\\\"localeStore.locale === 'zh-CN' ? zhCN : enUS\\\"\\n :theme=\\\"theme\\\"\\n :theme-overrides=\\\"themeOverrides\\\"\\n abstract\\n \\u003e\\n \\u003cNGlobalStyle/\\u003e\\n\\n \\u003cNModalProvider\\u003e\\n \\u003cNNotificationProvider placement=\\\"top-right\\\" :max=\\\"6\\\"\\u003e\\n \\u003cNMessageProvider placement=\\\"bottom-right\\\"\\u003e\\n \\u003cNDialogProvider\\u003e\\n \\u003cBoot/\\u003e\\n \\u003c/NDialogProvider\\u003e\\n \\u003c/NMessageProvider\\u003e\\n \\u003c/NNotificationProvider\\u003e\\n \\u003c/NModalProvider\\u003e\\n \\u003c/NConfigProvider\\u003e\\n\\u003c/template\\u003e\\n\"}}}\n2025/09/26 11:19:36.834972 [DEBUG][lsp] Opened file: /home/xxxxxx/docker_data/xxxxxx/web/src/App.vue", "timestamp": "2025-09-26T03:19:36.857Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" }, { "error": "Server stderr: 2025/09/26 11:19:37.090494 [DEBUG][wire] <- Header: Content-Length: 168", "timestamp": "2025-09-26T03:19:37.090Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" }, { "error": "Server stderr: 2025/09/26 11:19:37.091131 [DEBUG][wire] <- Received: {\"jsonrpc\":\"2.0\",\"method\":\"tsserver/request\",\"params\":[[1,\"_vue:projectInfo\",{\"file\":\"/home/xxxxxx/docker_data/xxxxxx/web/src/App.vue\",\"needFileNameList\":false}]]}\n2025/09/26 11:19:37.091180 [DEBUG][lsp] Received notification: method=tsserver/request\n2025/09/26 11:19:37.091190 [DEBUG][lsp] No handler for notification: tsserver/request", "timestamp": "2025-09-26T03:19:37.091Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" }, { "error": "Server stderr: 2025/09/26 11:19:39.835546 [DEBUG][lsp] Making call: method=textDocument/diagnostic id=2\n2025/09/26 11:19:39.835757 [DEBUG][lsp] Sending message: method=textDocument/diagnostic id=2\n2025/09/26 11:19:39.835797 [DEBUG][wire] -> Sending: {\"jsonrpc\":\"2.0\",\"id\":2,\"method\":\"textDocument/diagnostic\",\"params\":{\"textDocument\":{\"uri\":\"file:///home/xxxxxx/docker_data/xxxxxx/web/src/App.vue\"},\"workDoneToken\":null}}\n2025/09/26 11:19:39.835820 [DEBUG][lsp] Waiting for response to request ID: 2", "timestamp": "2025-09-26T03:19:39.836Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" }, { "debug": "Tool 'diagnostics' still running (30s elapsed)", "timestamp": "2025-09-26T03:20:07.538Z", "sessionId": "a3630c76-9195-4dfb-a967-88f3575c5708", "cwd": "/home/xxxxxx/docker_data/xxxxxx" } ] 

It just hangs forever. And for intelephense, it will only work when i set the log level to debug level(the log file is too large that i cant upload it here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions