xcode-build-server: Errors in LSP logs

Hi! I’m getting recently some issues from LSP.

Any idea what could be causing it? I’m not sure if it’s something xcode-build-server related or not.

[ERROR][2024-08-30 12:38:55] .../vim/lsp/rpc.lua:770	"rpc"	"node"	"stderr"	"(node:73637) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 change listeners added to [EventEmitter]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit\n(Use `node --trace-warnings ...` to show where the warning was created)\n"
[START][2024-08-30 15:15:01] LSP logging initiated
[ERROR][2024-08-30 15:15:01] .../vim/lsp/rpc.lua:770	"rpc"	"node"	"stderr"	"(node:22472) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 change listeners added to [EventEmitter]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit\n(Use `node --trace-warnings ...` to show where the warning was created)\n"
[ERROR][2024-08-30 16:25:39] .../vim/lsp/rpc.lua:770	"rpc"	"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp"	"stderr"	'[2024-08-30 16:25:39.767] failed to construct TextEdits from response [\n  {\n    key.offset: 3097,\n    key.length: 0,\n    key.sourcetext: "<#Range<Int>#>"\n  }\n]\n'
[ERROR][2024-08-30 16:25:39] .../vim/lsp/rpc.lua:770	"rpc"	"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp"	"stderr"	'[2024-08-30 16:25:39.960] failed to construct TextEdits from response [\n  {\n    key.offset: 3097,\n    key.length: 0,\n    key.sourcetext: "<#Range<Int>#>"\n  }\n]\n'
[ERROR][2024-08-30 16:30:59] .../vim/lsp/rpc.lua:770	"rpc"	"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp"	"stderr"	"/AppleInternal/Library/BuildRoots/226e9c8c-edb1-11ee-8f17-a65dcee5a99e/Library/Caches/com.apple.xbs/Sources/SourceKitLSP/dependencies/swift-syntax/Sources/SwiftParser/Lexer/Cursor.swift:620: Fatal error\n"
[START][2024-08-30 17:33:34] LSP logging initiated
[ERROR][2024-08-30 17:33:34] .../vim/lsp/rpc.lua:770	"rpc"	"node"	"stderr"	"(node:4438) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 change listeners added to [EventEmitter]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit\n(Use `node --trace-warnings ...` to show where the warning was created)\n"
[ERROR][2024-08-30 17:34:39] .../vim/lsp/rpc.lua:770	"rpc"	"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp"	"stderr"	"/AppleInternal/Library/BuildRoots/226e9c8c-edb1-11ee-8f17-a65dcee5a99e/Library/Caches/com.apple.xbs/Sources/SourceKitLSP/dependencies/swift-syntax/Sources/SwiftParser/Lexer/Cursor.swift:620: Fatal error\n"
[ERROR][2024-08-30 17:43:11] ...lsp/handlers.lua:623	'[fetchCompletions] Unhandled status from server: 429 {"error":{"code":"429","message":"Requests to the Completions_Create Operation under Azure OpenAI API version 2023-09-15-preview have exceeded call rate limit of your current OpenAI S0 pricing tier. Please retry after 1 second. Please go here: https://aka.ms/oai/quotaincrease if you would like to further increase the default rate limit."},"policy_id":"DeploymentRatelimit-User"}\n'
[ERROR][2024-08-30 17:43:11] ...lsp/handlers.lua:623	'[fetchCompletions] Unhandled status from server: 429 {"error":{"code":"429","message":"Requests to the Completions_Create Operation under Azure OpenAI API version 2023-09-15-preview have exceeded call rate limit of your current OpenAI S0 pricing tier. Please retry after 1 second. Please go here: https://aka.ms/oai/quotaincrease if you would like to further increase the default rate limit."},"policy_id":"DeploymentRatelimit-User"}\n'
[ERROR][2024-08-30 18:13:47] .../vim/lsp/rpc.lua:770	"rpc"	"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp"	"stderr"	"[2024-08-30 18:13:47.042] triggerFromIncompleteCompletions with incompatible completion session; expected DocumentURI(storage: file:///Users/wkulik/repositories/MyApp-macos/MyApp/Resources/AppConstants.swift)@8097, but got DocumentURI(storage: file:///Users/wkulik/repositories/MyApp-macos/MyApp/Resources/AppConstants.swift)@8104\n"
[ERROR][2024-08-30 18:23:45] .../vim/lsp/rpc.lua:770	"rpc"	"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp"	"stderr"	"[2024-08-30 18:23:45.614] triggerFromIncompleteCompletions with incompatible completion session; expected DocumentURI(storage: file:///Users/wkulik/repositories/MyApp-macos/MyApp/Modules/Main/Root/UtilsView.swift)@810, but got DocumentURI(storage: file:///Users/wkulik/repositories/MyApp-macos/MyApp/Modules/Main/Root/UtilsView.swift)@814\n"
[ERROR][2024-08-30 18:24:06] .../vim/lsp/rpc.lua:770	"rpc"	"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/sourcekit-lsp"	"stderr"	"/AppleInternal/Library/BuildRoots/226e9c8c-edb1-11ee-8f17-a65dcee5a99e/Library/Caches/com.apple.xbs/Sources/SourceKitLSP/dependencies/swift-syntax/Sources/SwiftParser/Lexer/Cursor.swift:620: Fatal error\n"

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 22 (9 by maintainers)

Most upvoted comments

I updated macOS to Sequoia and Xcode to 16 and it suddenly all works 🎊. Probably it was a bug and they fixed that. Also, finally, the smart rename is available in the latest version of sourcekit-lsp ^^.