Comments (73)
@wojciech-kulik I plan to detected the new file when no flags and infer it from other file in same directory. it need some time to implement. this way no need to others except tell me there is a new file.
from xcode-build-server.
In newest master, I hack unknown swift file as new file, and If other files in the same directory have compile flags, this file will be inserted into the module compile flags and notify LSP for module compile flags changes. the hack flags now is only available in memory, restart will lost it until reopen the new file. a newest compile is needed to make flags persistent.
this feature now is only enabled by environment variable XBS_FEAT_NEWFILE=1
. I'm not quite sure yet if this feature is stable enough as a default behavior. You can try it first and let me know what you think. @wojciech-kulik @fireplusteam
from xcode-build-server.
The New File Infer Flag Feature currently default to true.
from xcode-build-server.
Hello! I'm here to provide feedback on the XBS_FEAT_NEWFILE
feature.
- I've installed the latest version of xcode-build-server:
brew upgrade --fetch-HEAD xcode-build-server
- I added environment variables to my
.vscode/settings.json
to enable the Swift VSCode extension to start the build server with the required settings:
{
"swift.swiftEnvironmentVariables": {
"XBS_FEAT_NEWFILE": "1",
"SOURCEKIT_LOGGING": "1"
}
}
- I restarted the LSP service using the Command Palette (โ+P):
> Swift: Restart LSP Server
Everything works smoothly; after adding a file, it becomes visible to the LSP server. Thank you for your work!
from xcode-build-server.
@SolaWing will you release the new version to Homebrew?
Brew New Version Wait Merge: Homebrew/homebrew-core#169037
from xcode-build-server.
for repo which build fast, trigger incremental build to update flags and index, indeed is a much reliable way. It should be default and recommend to most users.
async parser can further reduce the responsive time as piping build log to parser..
background build and index may also implement in xcode-build-server as long as I know how to trigger a build. file changes event can also be detected by check xcode project file. this way may improve experience to all editor users.
I previous thought to treat no-flags file as new file, and hack flag from neighbors file, will still usable, but it should only used by which repo is very large and build is extremely slow and can't wait for building.
from xcode-build-server.
@fireplusteam I fixed this bug by newest master. cause a condition that python treat empty dict as false and fallback to global cache, and won't clear..
from xcode-build-server.
Since this issue is too long, and new file feature is implemented and seems no new problems, I will close this. Feel free to open New Issue If you has any problem.
from xcode-build-server.
As I understand, to introduce this "hack" it would require changes on your side, right?
Yes, flags is editor independent, and only I can pass the final flags to lsp.
I think most commercial projects will run incremental build 20s+, even for small changes. So I think it's too long to wait for something in the background. In this case it's better to run a build, at least a user can see the progress.
though background build is possible, BSP not interact with editor directly and also currently no api to notify progress to soucekit-lsp. I think I should first implement the new file hack, then real-time log parser, and then background build.
from xcode-build-server.
@PBHDK your log seems fine, LSP not report error, and you flags correctly get from compile file as follow:
Flags
''sourcekit: [2:sourcekitd_send_request_sync-before:15883: 0.0163] { key.request: source.request.editor.open, key.name: "/Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift", key.compilerargs: [ "-module-name", "Example_macOS", "-Onone", "-enforce-exclusivity=checked", "/Users/paul/src/HaishinKit.swift/Examples/macOS/PlaybackViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSStoryboard.Name+Extension.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/MainWindowController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSObject+Extension.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/MainSplitViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/SCStreamPublishViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/DnDDelegate.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/FLVAnalyzerViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/MenuViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/iOS/NetStreamSwitcher.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/DnDableView.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/Data+Extension.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/FLVReader.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSViewController+Extension.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/PreferenceViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/VisualEffect.swift", "/Users/paul/src/HaishinKit.swift/Examples/iOS/Preference.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/CameraIngestViewController.swift", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources/GeneratedAssetSymbols.swift", "-enable-upcoming-feature", "ExistentialAny", "-sdk", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk", "-target", "arm64-apple-macos13.0", "-enable-bare-slash-regex", "-g", "-module-cache-path", "/Users/paul/Library/Developer/Xcode/DerivedData/ModuleCache.noindex", "-Xfrontend", "-serialize-debugging-options", "-enable-testing", "-index-store-path", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Index.noindex/DataStore", "-swift-version", "5", "-I", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug", "-F", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug", "-c", "-j10", "-enable-batch-mode", "-incremental", "-Xcc", "-ivfsstatcache", "-Xcc", "/Users/paul/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx14.4-23E208-13f6e737bddbb37f317b3579f3535bf5.sdkstatcache", "-output-file-map", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example macOS-OutputFileMap.json", "-save-temps", "-no-color-diagnostics", "-serialize-diagnostics", "-emit-dependencies", "-emit-module", "-emit-module-path", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example_macOS.swiftmodule", "-validate-clang-modules-once", "-clang-build-session-file", "/Users/paul/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/swift-overrides.hmap", "-emit-const-values", "-Xfrontend", "-const-gather-protocols-file", "-Xfrontend", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example macOS_const_extract_protocols.json", "-Xcc", "-iquote", "-Xcc", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-generated-files.hmap", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-own-target-headers.hmap", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-all-non-framework-target-headers.hmap", "-Xcc", "-ivfsoverlay", "-Xcc", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/all-product-headers.yaml", "-Xcc", "-iquote", "-Xcc", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-project-headers.hmap", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug/include", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources-normal/arm64", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources/arm64", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources", "-Xcc", "-DDEBUG=1", "-emit-objc-header", "-emit-objc-header-path", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example_macOS-Swift.h", "-working-directory", "/Users/paul/src/HaishinKit.swift", "-experimental-emit-module-separately", "-disable-cmo" ], key.sourcetext: "import Cocoa\nimport HaishinKit\nimport Logboard\n\nlet logger = LBLogger.with(\"com.haishinkit.Exsample.macOS\")\n\n@NSApplicationMain\nclass AppDelegate: NSObject, NSApplicationDelegate {\n var window: NSWindow!\n\n func applicationDidFinishLaunching(_ aNotification: Notification) {\n LBLogger.with(HaishinKitIdentifier).level = .info\n FeatureUtil.setEnabled(for: .multiTrackAudioMixing, isEnabled: true)\n }\n}\n" }you may check if your flags correctly and consistent with your build command.
from xcode-build-server.
Btw. Apple adds experimental feature with background indexing: apple/sourcekit-lsp#1416
YES, But it only support SwfitPM. I think we still need to implement xcode background index ourselves..
from xcode-build-server.
xcode sends specific request to XCBBuildServer to retrieve the index data for a specific file, it's very similar like to build a single file. I wrote a proxy for XCBBuildSever in python and logged everything. It's just binary messages behind the scenes
So a clients (xcode) sends:
INDEXING_INFO_REQUESTED\xc5\x17\x83{"filePath":"/Users/Ievgenii_Mykhalevskyi/Desktop/source7/Experiences/Shop/Sources/UI/ShopViewController.swift
XCCBuildServer communicate with swiftc or whats ever and then sends back some sort of response
INDEXING_INFO_RECEIVED\x92\xd9@7b584ba584266c03a8382b4234005f322ce020d2de46fd50b2ccb49369b7ccfd\xc5\x1dAbplist00\xa1\x01\xd8\x02\x03\x04\x05\x06\x07\x08\t\n\x0b\x0c\r\x0e\x0f\x13\\_\x10\x0fLanguageDialect
from xcode-build-server.
Great discovery! Is it possible to replicate this behavior in this tool? Or would it be too complex?
from xcode-build-server.
it's simple to recreate
You need to install pyinstaller
on a mac
then unarchive the Archive.zip, you need to build python file like a binary
pyinstaller --onefile XCBBuildService.py
Then rename XCBBuildService file in xCode folder to XCBBuildService-origin which is located in
/Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/MacOS/XCBBuildService
create a simlink to a newly generated binary by pyinstaller
ln -s path/to/Your_XCBBuildServiceProxy/dist/XCBBuildService /Applications/Xcode.app/Contents/SharedFrameworks/XCBuild.framework/Versions/A/PlugIns/XCBBuildService.bundle/Contents/MacOS/XCBBuildService
you may want to modify the script to log to a file (you can edit it and forward to any file). there're multiple options and see the results.
Currently it supports to run a modify the request from xcodebuild tool to compile a single file without rebuilding the whole project. (Just runtime injection into json) or you can run the build without stopping the building process if you get some compile errors (useful if you made a modification but have some compile errors, so it will update the indexes even there 1000 errors :) )
from xcode-build-server.
Hmm, does it require to disable SIP? Modifying files inside the Xcode.app won't work without that, I guess?
Thank you for the detailed description! I will definitely check it out!
@SolaWing maybe it would be worth embedding it in xcode-build-server
if possible?
from xcode-build-server.
I did it without disabling SIP
from xcode-build-server.
for full indexed, whole build is needed. this is true even in xcode: when there have multiple targets deps, dep need to build first to make userโs import works.
But for simple update the outdated data, rerun this fileโs build command normally enough.
xcode-build-server can optimize to index in background after a full build with log generated and reuse file flags last build.
but for new file, still has to trigger incremental build to update flags. currently all flag info is come from build logs, so xcode-build-server canโt recognize new file without build. (maybe add a command to notice new file without build and integrate with other plugin? new file is easy to inject to module compile flags)
actually I have a debug command to trigger single file compile command for test update index, but for background index, it need more works like observe file change, etc.
I'm less inclined to use XCBBuildService because it's an internal private service of xcode and has potential stability compatibility risks. Unless background compilation of a single file can not workable and this private service is the only way.
from xcode-build-server.
In my plugin, I know whenever the file is added, so I could forward some command to xcode-build-server
if needed.
from xcode-build-server.
@wojciech-kulik , anyway Xcode starts a build to get indexes with the parameter
continueBuildingAfterErrors = True
to mimic this you can use xcodebuild -jobs 4 or -jobs 2 and export the following environmental variable if you use xcbuildservice proxy.
export continueBuildingAfterErrors=True
That works for me if you have a lot of modules in the project, as in my case.
You can trigger it only if you switch between files belonging to different modules and you make some modification in any of the modules or add a new file. If you have a lot of modules, refresh the compile flags seems is not working as you need to compile a changed module anyway
from xcode-build-server.
@wojciech-kulik , you can write the script which would setup proxy for xcbbuildserver automatically and uninstall it and use in a plugin
from xcode-build-server.
Also there's a drawback which I don't know how to resolve (seems like limitation of sourcekit), if you've made a change in module A, and there're errors in module A, even a recompile would not refresh indexes and in module B new added classes in module A would not be indexed (only old ones). Only successful build of module A refreshes indexes in module B.
from xcode-build-server.
@fireplusteam The approach with xcodebuild service would probably work. However, as it's supposed to be for general use, I would like to avoid messing around with someone's Xcode and modifying Xcode.app
directly.
I think it should be addressed either on the LSP or BSP side if possible.
actually I have a debug command to trigger single file compile command for test update index
@SolaWing is it possible to integrate it with my plugin? I know which file is added/deleted/modified, I could notify xcode-build-server about those changes.
from xcode-build-server.
Great to hear, no rush!
I'm glad to hear that potentially it could resolve the problem!
from xcode-build-server.
Not sure if we want to have this as files can move to another folder/target/rename/delete etc
and it's not something that xcode build server should handle, if you need to update flags, you can trigger low level task with with xcodebuild and it works great for me even for really big big project
from xcode-build-server.
I'm not familiar with the internals of BSP and Xcode indexing. Could you please provide some information on what should be done after CRUD operation to fix the LSP? Do you mean to just run the build?
from xcode-build-server.
Not sure if we want to have this as files can move to another folder/target/rename/delete etc and it's not something that xcode build server should handle, if you need to update flags, you can trigger low level task with with xcodebuild and it works great for me even for really big big project
@fireplusteam so this feature I plan to only enable when explicit set. and when flags updated from build, will use the build flag and drop the temporary flags, so the new file flags only affected gap between new file and build. if something wrong, rebuild should be ok.
I'm not familiar with the internals of BSP and Xcode indexing. Could you please provide some information on what should be done after CRUD operation to fix the LSP? Do you mean to just run the build?
build did fix the new file issue. but xcode-build-server only get new flags after building finish. Therefore based on compilation time, this update time may be longer.
from xcode-build-server.
@wojciech-kulik here's my extension to VS code
https://github.com/fireplusteam/ios_vs_code
I stole one file from you related to project management written in ruby :)
You can see how it works in files AutocompleteWatcher.ts
and compile_module.sh
, you can set number of jobs to xcodebuild and rerun it only on certain types of events like (adding a new file, something changes in a module and you switch to another one, delete the file, or move a file from one place to another). Basically, I run incremental rebuild if project file is change or some file is changed in some module and a user switched over to another module in the editor (works great). If a user runs build manually autowatcher is cancelled as it's not needed at the moment.
Also if you run xCode with my proxy you will see that xCode indexing system does the same. It starts the continuous build with continueBuildingAfterErrors=True of a project with low priority. So my proxy is just to set overide continueBuildingAfterErrors variable when building with xcodebuild and go. You can use -jobs
of xcodebuild tool to simulate the same behavior.
extension supports tests,snapshots, debug, builds, built-in xcode-build-server, modify project structure/etc
@SolaWing I would rather request the async parser just in time while it's building
from xcode-build-server.
I added a new file and tried running xcodebuild
on the side. However, it's very slow. In my case after adding a file, the incremental build takes 22 seconds and after that I need to restart LSP, otherwise I still see errors.
Isn't there any more efficient way to update the index, even if only within the same module?
I noticed that Xcode starts swift-frontend
tool for some operations. Not sure if it's relevant for this process. You can get a path to it by xcrun -f swift-frontend
.
from xcode-build-server.
@wojciech-kulik you can check your log to see how time spending. if your new-file module is at first compile, then real-time log parser may be help to update the flags quickly. else if the expected compile still slow, we have to hack the flags temporarily to make it work, as I previously says.
from xcode-build-server.
As I understand, to introduce this "hack" it would require changes on your side, right?
I think most commercial projects will run incremental build 20s+, even for small changes. So I think it's too long to wait for something in the background. In this case it's better to run a build, at least a user can see the progress.
So, I think the only way to ease the UX in this case is some "hack" as you said, based on other flags from this modules, to do it quickly even if it's not 100% correct.
from xcode-build-server.
Sounds good ๐
from xcode-build-server.
Thinking about that! Do we really want the background build implemented on xcode-build-server as it's up to the client to decide when to start the build and how to start it? The only responsibility of xcode-build-server is to async parse the log file while it's building if possible?
@wojciech-kulik , Also I don't have to restart the lsp server after a new build is started. My project is really really big (more then 200+ modules and lot of libraries), and 20s is not so much. I tested in Xcode and when you add some new files to some module, it usually takes some time to update indexes as well in Xcode because it starts the same kind of rebuild but the only difference is that Xcode is quicker to report the issue. I suspect that the same kind or almost the same speed can be achieved by async parser. Of course Xcode indexing system can prioritise what to rebuild first but that's something that hard to achieve at this point
from xcode-build-server.
Yes, I agree, the build triggered by BSP is not necessary, the client can decide when and how to trigger that. It also gives some flexibility like progress tracking. Also, I think sourcekit-lsp is considering background indexing.
from xcode-build-server.
@wojciech-kulik , looks like I reproduced your case, I used to watch to xcode build with xcode build server, which automatically refreshes the source-lsp, but by manually parsing -a of build logs, I need to restart LSP to make a new flag working.
@SolaWing could you please take a look if it properly notifies LSP if we manually parse logs with parse -a <some_file>
and add/rename a file?
from xcode-build-server.
@fireplusteam how reproduce the case? xcode-build-server will watch buildServer.json and itโs compile files, when the file updated, xcode-build-server will reload to notify lap new flags. normally this should works, including add new file and rebuild. except a known limited case: index store path is pass to sourcekit-lsp as init response and canโt changes. index store path normally wonโt change unless build changes build root
if you enable debug logger, you can see the flags xcode-build-server sent to lsp and check if it is correct and updated after updating compile file
from xcode-build-server.
server.py.zip
I did that change and it started to work fine with parse -a
from xcode-build-server.
server.py.zip I did that change and it started to work fine with parse -a
@fireplusteam seems you comment out branch and always treat as xcode kind.. it seems not affect the autoreload, as long as you updated the compile file, or auto updated by xcactivitylog...
also notice to avoid modify .compile file same, there is a compile_path.lock to ensure to no parallel parse. when already has a parse, further parse will be ignored. if you run your manual parse, the background log parse after build will be blocked and ignored, until the lock file removed(may not remove when parser is killed..) or outdated(180s). But no matter which way, LSP flags should updated when .compile file changes, except there is exception and BSP crashs..
you can export SOURCEKIT_LOGGING=3 to see details logs, to see how BSP send flags and what flags to LSP, and then reproduce the problem, then we can confirm which part is wrong.
from xcode-build-server.
@SolaWing , I restarted a Mac and looks like it fixes something with lsp server, now it works, thanks
I'm not using manual parse, just tried it out but something went wrong, now it also works :)
from xcode-build-server.
Yesterday I also had the same issue. When I added a new file to the project, rebuilt it but lsp still couldn't recognize the new class. I also tried to make a clean build, but it didn't help. After restarting lsp it starts to work properly. I'm using manual build log parse command from the tutorial
from xcode-build-server.
@lelonco did your index-store-path changed? if not, please export SOURCEKIT_LOGGING=3
to see details logs and reproduce it, to check if the flags from xcode-build-server to LSP is correct
from xcode-build-server.
I tried it and it worked like a charm on the first try ๐ฅ ๐!
This will significantly improve the workflow!
I will test it more next week. Thank you for all the effort! ๐ช ๐ป
from xcode-build-server.
awesome! i will waiting this version in homebrew
from xcode-build-server.
@SolaWing , I tested without XBS_FEAT_NEWFILE=1 set. I'm adding a new file and recompile but indexes are not updated until I restart lsp server.
from xcode-build-server.
@SolaWing it's working with 9425d7b commit
I use "kind": "xcode"
from xcode-build-server.
@fireplusteam can you give me the detail logs by set env var SOURCEKIT_LOGGING=3?
from xcode-build-server.
@SolaWing , here is the log with XBS_FEAT_NEWFILE=1 enabled. For me it's working in some cases. Here is the log when it's not working after I added a new file and triggered recompile
NewFile6.swift
was added
Without XBS_FEAT_NEWFILE it's not working as well, however with the mentioned above commit everything working fine
example.txt
from xcode-build-server.
example.zip
Test project in which I reproduced it
from xcode-build-server.
@SolaWing , working great, thanks
I will test it more in the next couple of days
from xcode-build-server.
@SolaWing will you release the new version to Homebrew?
from xcode-build-server.
I would love to confirm how it works, but recently my LSP is getting super crazy, constantly stops working and I have to restart Neovim. I'm not sure what's causing that. Most likely not xcode-build-server because I even tried downgrading it to 1.0.0 with the same result
from xcode-build-server.
@wojciech-kulik that was happening to me last week before this release too but I haven't been able to nail it down.
from xcode-build-server.
Maybe some update to some plugin is crashing LSP? nvim-lspconfig, telescope, or something using LSP directly?
from xcode-build-server.
I would love to confirm how it works, but recently my LSP is getting super crazy, constantly stops working and I have to restart Neovim. I'm not sure what's causing that. Most likely not xcode-build-server because I even tried downgrading it to 1.0.0 with the same result
maybe lsp crash, or you has so many compile and cpu&memory is not enough?
from xcode-build-server.
on my side sourcekit-lsp crashing almost always (9 times from 10) when i insert some autocomplete suggestions from copilot (as example), or making bunch of copy/paste in insert mode. Didn't found how to fix it, so i just restarting sourcekit manually each time whenever it falls
from xcode-build-server.
Swift may compile slowly (stuck) or crash for some complex boundary scenes. You can diff the code to observe the behavior of the Swift compiler. Most of the slow compilation problems of Swift can be avoided by supplementing type information and splitting expressions. If the compilation problem is reproducible, you can prepare a minimal reproducible demo and submit an issue to Apple.
from xcode-build-server.
I'm still experiencing constantly failing LSP. Next week I will be disabling plugins like Copilot to figure out what's going on.
from xcode-build-server.
@wojciech-kulik did your cpu ok? lsp may stuck on complex syntax and consume a lot of cpu, and unresponsive to any request. if so, you may check what syntax make it crazy
from xcode-build-server.
Yes, my CPU is ok. Currently it happens with every project. I suspect that some plugin update messed up something.
from xcode-build-server.
I'm also experiencing that, it works well for a few minutes but then sourcekitd starts erroring out and it never recovers.
@SolaWing It's not complicated syntax, even just a very straightforward View in SwiftUI in a very simple project breaks it.
from xcode-build-server.
@akaralar do you use the Copilot plugin? Maybe we can start by disabling it, as it is directly related with LSP.
from xcode-build-server.
No I don't use Copilot, I doubt that's the problem.
from xcode-build-server.
Maybe we could try downgrading lsp-config then?
from xcode-build-server.
Mine usually fails with
sourcekit: -32001: sourcekitd request failed: error response (Request Failed): Loading the standard library failed
Although right now it wants to work again ๐คทโโ๏ธ Definitely there is some flakiness but can't say if it's LSP or something else.
from xcode-build-server.
On my side the same, today it works well so far, but even yesterday it was constantly crashing... I will be observing the issue
from xcode-build-server.
Weird thing, this week I'm not experiencing this issue. I switched to another project for iOS (before I was working a lot on macOS app) and also in the meantime I updated all plugins.
Maybe the problem has been resolved in some update, or it occurs perhaps only with macOS apps?
from xcode-build-server.
I use only coc.nvim and xcode-build-server, and rarely encounter sourcekit-lsp crashes, except some wired syntax which make build also crash. so I think you should first try found a stable reproduce path, and minimum your environment, to figure out what is the issue..
from xcode-build-server.
Maybe the problem has been resolved in some update, or it occurs perhaps only with macOS apps?
I don't think that's the case, I've updated all my plugins just a few days ago and I only develop for iOS.
I've also found that for me if it happens at some point โ it will always happen in the same place. Like I can restart LSP and repeat my actions 10 times in a row, and it will crash 10 times in a row.
However since the crash log points at something within swift-syntax maybe it only happens in projects/files that use it?
from xcode-build-server.
Isn't swift-syntax used for Swift Macros? Maybe macros are causing issues in your case?
from xcode-build-server.
Probably, but I wasn't able to see a direct connection, it happens even with completions not related to macros and even in files where macros are not used. Maybe macros elsewhere in the project are causing it
from xcode-build-server.
Mine usually fails with
sourcekit: -32001: sourcekitd request failed: error response (Request Failed): Loading the standard library failed
Same for me.
Any update on this?
Has anyone tried using the sourcekit-lsp development branch version? Does it happen there too?
from xcode-build-server.
@PBHDK you can upload your detail log with SOURCEKIT_LOGGING=3, to see if flags is correct for lsp.
from xcode-build-server.
@PBHDK you can upload your detail log with SOURCEKIT_LOGGING=3, to see if flags is correct for lsp.
Thanks for getting back to me, @SolaWing!
See below.
Logs:
[START][2024-06-01 11:22:23] LSP logging initiated
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" '[2024-06-01 11:22:23.892] SourceKitServer: Request<initialize>(\n id: 1,\n clientID: ObjectIdentifier(0x000060000316c200),\n params: InitializeRequest(processId: Optional(44189), clientInfo: Optional(LanguageServerProtocol.InitializeRequest.ClientInfo(name: "Neovim", version: Optional("0.10.0-dev"))), locale: nil, rootPath: Optional("/Users/paul/src/HaishinKit.swift"), rootURI: Optional(LanguageServerProtocol.DocumentURI(storage: file:///Users/paul/src/HaishinKit.swift)), initializationOptions: Optional(LanguageServerProtocol.LSPAny.dictionary([:])), capabilities: LanguageServerProtocol.ClientCapabilities(workspace: Optional(LanguageServerProtocol.WorkspaceClientCapabilities(applyEdit: Optional(true), workspaceEdit: Optional(LanguageServerProtocol.WorkspaceClientCapabilities.WorkspaceEdit(documentChanges: nil)), didChangeConfiguration: Optional(LanguageServerProtocol.DynamicRegistrationCapability(dynamicRegistration: Optional(false))), didChangeWatchedFiles: Optional(LanguageServerProtocol.DynamicRegistrationCapability(dynamicRegistration: Optional(true))), symbol: Optional(LanguageServerProtocol.WorkspaceClientCapabilities.Symbol(dynamicRegistration: Optional(false), symbolKind: Optional(LanguageServerProtocol.WorkspaceClientCapabilities.Symbol.SymbolKind(valueSet: Optional([LanguageServerProtocol.SymbolKind(rawValue: 1), LanguageServerProtocol.SymbolKind(rawValue: 2), LanguageServerProtocol.SymbolKind(rawValue: 3), LanguageServerProtocol.SymbolKind(rawValue: 4), LanguageServerProtocol.SymbolKind(rawValue: 5), LanguageServerProtocol.SymbolKind(rawValue: 6), LanguageServerProtocol.SymbolKind(rawValue: 7), LanguageServerProtocol.SymbolKind(rawValue: 8), LanguageServerProtocol.SymbolKind(rawValue: 9), LanguageServerProtocol.SymbolKind(rawValue: 10), LanguageServerProtocol.SymbolKind(rawValue: 11), LanguageServerProtocol.SymbolKind(rawValue: 12), LanguageServerProtocol.SymbolKind(rawValue: 13), LanguageServerProtocol.SymbolKind(rawValue: 14), LanguageServerProtocol.SymbolKind(rawValue: 15), LanguageServerProtocol.SymbolKind(rawValue: 16), LanguageServerProtocol.SymbolKind(rawValue: 17), LanguageServerProtocol.SymbolKind(rawValue: 18), LanguageServerProtocol.SymbolKind(rawValue: 19), LanguageServerProtocol.SymbolKind(rawValue: 20), LanguageServerProtocol.SymbolKind(rawValue: 21), LanguageServerProtocol.SymbolKind(rawValue: 22), LanguageServerProtocol.SymbolKind(rawValue: 23), LanguageServerProtocol.SymbolKind(rawValue: 24), LanguageServerProtocol.SymbolKind(rawValue: 25), LanguageServerProtocol.SymbolKind(rawValue: 26)]))))), executeCommand: nil, workspaceFolders: Optional(true), configuration: Optional(true), semanticTokens: Optional(LanguageServerProtocol.RefreshRegistrationCapability(refreshSupport: Optional(true))), codeLens: nil, fileOperations: nil, inlineValue: nil, inlayHint: Optional(LanguageServerProtocol.RefreshRegistrationCapability(refreshSupport: Optional(true))), diagnostics: nil)), textDocument: Optional(LanguageServerProtocol.TextDocumentClientCapabilities(synchronization: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.Synchronization(dynamicRegistration: Optional(false), willSave: Optional(true), willSaveWaitUntil: Optional(true), didSave: Optional(true))), completion: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.Completion(dynamicRegistration: Optional(false), completionItem: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.Completion.CompletionItem(snippetSupport: Optional(true), commitCharactersSupport: Optional(true), documentationFormat: Optional([LanguageServerProtocol.MarkupKind(rawValue: "markdown"), LanguageServerProtocol.MarkupKind(rawValue: "plaintext")]), deprecatedSupport: Optional(true), preselectSupport: Optional(true))), completionItemKind: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.Completion.CompletionItemKind(valueSet: Optional([LanguageServerProtocol.CompletionItemKind(rawValue: 1), LanguageServerProtocol.CompletionItemKind(rawValue: 2), LanguageServerProtocol.CompletionItemKind(rawValue: 3), LanguageServerProtocol.CompletionItemKind(rawValue: 4), LanguageServerProtocol.CompletionItemKind(rawValue: 5), LanguageServerProtocol.CompletionItemKind(rawValue: 6), LanguageServerProtocol.CompletionItemKind(rawValue: 7), LanguageServerProtocol.CompletionItemKind(rawValue: 8), LanguageServerProtocol.CompletionItemKind(rawValue: 9), LanguageServerProtocol.CompletionItemKind(rawValue: 10), LanguageServerProtocol.CompletionItemKind(rawValue: 11), LanguageServerProtocol.CompletionItemKind(rawValue: 12), LanguageServerProtocol.CompletionItemKind(rawValue: 13), LanguageServerProtocol.CompletionItemKind(rawValue: 14), LanguageServerProtocol.CompletionItemKind(rawValue: 15), LanguageServerProtocol.CompletionItemKind(rawValue: 16), LanguageServerProtocol.CompletionItemKind(rawValue: 17), LanguageServerProtocol.CompletionItemKind(rawValue: 18), LanguageServerProtocol.CompletionItemKind(rawValue: 19), LanguageServerProtocol.CompletionItemKind(rawValue: 20), LanguageServerProtocol.CompletionItemKind(rawValue: 21), LanguageServerProtocol.CompletionItemKind(rawValue: 22), LanguageServerProtocol.CompletionItemKind(rawValue: 23), LanguageServerProtocol.CompletionItemKind(rawValue: 24), LanguageServerProtocol.CompletionItemKind(rawValue: 25)]))), contextSupport: Optional(true))), hover: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.Hover(dynamicRegistration: Optional(true), contentFormat: Optional([LanguageServerProtocol.MarkupKind(rawValue: "markdown"), LanguageServerProtocol.MarkupKind(rawValue: "plaintext")]))), signatureHelp: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.SignatureHelp(dynamicRegistration: Optional(false), signatureInformation: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.SignatureHelp.SignatureInformation(documentationFormat: Optional([LanguageServerProtocol.MarkupKind(rawValue: "markdown"), LanguageServerProtocol.MarkupKind(rawValue: "plaintext")]), parameterInformation: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.SignatureHelp.SignatureInformation.ParameterInformation(labelOffsetSupport: Optional(true))))))), declaration: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.DynamicRegistrationLinkSupportCapability(dynamicRegistration: nil, linkSupport: Optional(true))), definition: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.DynamicRegistrationLinkSupportCapability(dynamicRegistration: Optional(true), linkSupport: Optional(true))), typeDefinition: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.DynamicRegistrationLinkSupportCapability(dynamicRegistration: nil, linkSupport: Optional(true))), implementation: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.DynamicRegistrationLinkSupportCapability(dynamicRegistration: nil, linkSupport: Optional(true))), references: Optional(LanguageServerProtocol.DynamicRegistrationCapability(dynamicRegistration: Optional(false))), documentHighlight: Optional(LanguageServerProtocol.DynamicRegistrationCapability(dynamicRegistration: Optional(false))), documentSymbol: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.DocumentSymbol(dynamicRegistration: Optional(false), symbolKind: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.DocumentSymbol.SymbolKind(valueSet: Optional([LanguageServerProtocol.SymbolKind(rawValue: 1), LanguageServerProtocol.SymbolKind(rawValue: 2), LanguageServerProtocol.SymbolKind(rawValue: 3), LanguageServerProtocol.SymbolKind(rawValue: 4), LanguageServerProtocol.SymbolKind(rawValue: 5), LanguageServerProtocol.SymbolKind(rawValue: 6), LanguageServerProtocol.SymbolKind(rawValue: 7), LanguageServerProtocol.SymbolKind(rawValue: 8), LanguageServerProtocol.SymbolKind(rawValue: 9), LanguageServerProtocol.SymbolKind(rawValue: 10), LanguageServerProtocol.SymbolKind(rawValue: 11), LanguageServerProtocol.SymbolKind(rawValue: 12), LanguageServerProtocol.SymbolKind(rawValue: 13), LanguageServerProtocol.SymbolKind(rawValue: 14), LanguageServerProtocol.SymbolKind(rawValue: 15), LanguageServerProtocol.SymbolKind(rawValue: 16), LanguageServerProtocol.Sy'
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" 'mbolKind(rawValue: 17), LanguageServerProtocol.SymbolKind(rawValue: 18), LanguageServerProtocol.SymbolKind(rawValue: 19), LanguageServerProtocol.SymbolKind(rawValue: 20), LanguageServerProtocol.SymbolKind(rawValue: 21), LanguageServerProtocol.SymbolKind(rawValue: 22), LanguageServerProtocol.SymbolKind(rawValue: 23), LanguageServerProtocol.SymbolKind(rawValue: 24), LanguageServerProtocol.SymbolKind(rawValue: 25), LanguageServerProtocol.SymbolKind(rawValue: 26)]))), hierarchicalDocumentSymbolSupport: Optional(true))), codeAction: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.CodeAction(dynamicRegistration: Optional(true), codeActionLiteralSupport: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.CodeAction.CodeActionLiteralSupport(codeActionKind: LanguageServerProtocol.TextDocumentClientCapabilities.CodeAction.CodeActionLiteralSupport.CodeActionKind(valueSet: [LanguageServerProtocol.CodeActionKind(rawValue: ""), LanguageServerProtocol.CodeActionKind(rawValue: "quickfix"), LanguageServerProtocol.CodeActionKind(rawValue: "refactor"), LanguageServerProtocol.CodeActionKind(rawValue: "refactor.extract"), LanguageServerProtocol.CodeActionKind(rawValue: "refactor.inline"), LanguageServerProtocol.CodeActionKind(rawValue: "refactor.rewrite"), LanguageServerProtocol.CodeActionKind(rawValue: "source"), LanguageServerProtocol.CodeActionKind(rawValue: "source.organizeImports")]))))), codeLens: nil, documentLink: nil, colorProvider: nil, formatting: Optional(LanguageServerProtocol.DynamicRegistrationCapability(dynamicRegistration: Optional(true))), rangeFormatting: Optional(LanguageServerProtocol.DynamicRegistrationCapability(dynamicRegistration: Optional(true))), onTypeFormatting: nil, rename: Optional(LanguageServerProtocol.DynamicRegistrationCapability(dynamicRegistration: Optional(true))), publishDiagnostics: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.PublishDiagnostics(relatedInformation: Optional(true), codeActionsInline: nil, codeDescriptionSupport: nil)), foldingRange: nil, selectionRange: nil, linkedEditingRange: nil, callHierarchy: Optional(LanguageServerProtocol.DynamicRegistrationCapability(dynamicRegistration: Optional(false))), semanticTokens: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.SemanticTokens(dynamicRegistration: Optional(false), requests: LanguageServerProtocol.TextDocumentClientCapabilities.SemanticTokensRequestsClientCapabilities(range: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.TextDocumentClientCapabilities.SemanticTokensRangeClientCapabilities>.bool(false)), full: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.TextDocumentClientCapabilities.SemanticTokensFullClientCapabilities>.value(LanguageServerProtocol.TextDocumentClientCapabilities.SemanticTokensFullClientCapabilities(delta: Optional(true))))), tokenTypes: ["namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator", "decorator"], tokenModifiers: ["declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary"], formats: [LanguageServerProtocol.TokenFormat(rawValue: "relative")], overlappingTokenSupport: Optional(true), multilineTokenSupport: Optional(false))), moniker: nil, typeHierarchy: nil, inlineValue: nil, inlayHint: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.InlayHint(dynamicRegistration: Optional(true), resolveSupport: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.InlayHint.ResolveSupport(properties: ["textEdits", "tooltip", "location", "command"])))), diagnostic: Optional(LanguageServerProtocol.TextDocumentClientCapabilities.Diagnostic(dynamicRegistration: Optional(false), relatedDocumentSupport: nil)))), notebookDocument: nil, window: Optional(LanguageServerProtocol.WindowClientCapabilities(workDoneProgress: Optional(true), showMessage: Optional(LanguageServerProtocol.WindowClientCapabilities.ShowMessageRequest(messageActionItem: Optional(LanguageServerProtocol.WindowClientCapabilities.ShowMessageRequest.MessageActionItem(additionalPropertiesSupport: Optional(false))))), showDocument: Optional(LanguageServerProtocol.WindowClientCapabilities.ShowDocument(support: true)))), general: Optional(LanguageServerProtocol.GeneralClientCapabilities(staleRequestSupport: nil, regularExpressions: nil, markdown: nil, positionEncodings: Optional([LanguageServerProtocol.GeneralClientCapabilities.PositionEncodingKind.utf16]))), experimental: nil), trace: Optional(LanguageServerProtocol.Tracing.off), workspaceFolders: Optional([LanguageServerProtocol.WorkspaceFolder(uri: LanguageServerProtocol.DocumentURI(storage: file:///Users/paul/src/HaishinKit.swift), name: "/Users/paul/src/HaishinKit.swift")]))\n)\n'
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" '[2024-06-01 11:22:23.900] SourceKitServer: Response<initialize(1)>(\n success(LanguageServerProtocol.InitializeResult(capabilities: LanguageServerProtocol.ServerCapabilities(positionEncoding: nil, textDocumentSync: Optional(LanguageServerProtocol.TextDocumentSync.options(LanguageServerProtocol.TextDocumentSyncOptions(openClose: Optional(true), change: Optional(LanguageServerProtocol.TextDocumentSyncKind.incremental), willSave: Optional(true), willSaveWaitUntil: Optional(false), save: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.TextDocumentSyncOptions.SaveOptions>.value(LanguageServerProtocol.TextDocumentSyncOptions.SaveOptions(includeText: Optional(false))))))), notebookDocumentSync: nil, hoverProvider: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.HoverOptions>.bool(true)), completionProvider: Optional(LanguageServerProtocol.CompletionOptions(resolveProvider: Optional(false), triggerCharacters: Optional(["."]), allCommitCharacters: nil, completionItem: nil, workDoneProgress: nil)), signatureHelpProvider: nil, definitionProvider: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.DefinitionOptions>.bool(true)), typeDefinitionProvider: nil, implementationProvider: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.TextDocumentAndStaticRegistrationOptions>.bool(true)), referencesProvider: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.ReferenceOptions>.bool(true)), documentHighlightProvider: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.DocumentHighlightOptions>.bool(true)), documentSymbolProvider: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.DocumentSymbolOptions>.bool(true)), workspaceSymbolProvider: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.WorkspaceSymbolOptions>.bool(true)), codeActionProvider: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.CodeActionServerCapabilities>.value(LanguageServerProtocol.CodeActionServerCapabilities.supportsCodeActionRequestsWithLiterals(LanguageServerProtocol.CodeActionOptions(codeActionKinds: nil, resolveProvider: nil, workDoneProgress: nil)))), codeLensProvider: nil, documentFormattingProvider: nil, documentRangeFormattingProvider: nil, documentOnTypeFormattingProvider: nil, renameProvider: nil, documentLinkProvider: nil, colorProvider: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.TextDocumentAndStaticRegistrationOptions>.bool(true)), foldingRangeProvider: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.TextDocumentAndStaticRegistrationOptions>.bool(true)), declarationProvider: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.TextDocumentAndStaticRegistrationOptions>.bool(true)), executeCommandProvider: Optional(LanguageServerProtocol.ExecuteCommandOptions(commands: ["semantic.refactor.command"], workDoneProgress: nil)), workspace: Optional(LanguageServerProtocol.WorkspaceServerCapabilities(workspaceFolders: Optional(LanguageServerProtocol.WorkspaceServerCapabilities.WorkspaceFolders(supported: Optional(true), changeNotifications: Optional(LanguageServerProtocol.ValueOrBool<Swift.String>.bool(true)))))), callHierarchyProvider: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.TextDocumentAndStaticRegistrationOptions>.bool(true)), typeHierarchyProvider: Optional(LanguageServerProtocol.ValueOrBool<LanguageServerProtocol.TextDocumentAndStaticRegistrationOptions>.bool(true)), semanticTokensProvider: nil, inlayHintProvider: nil, diagnosticProvider: nil, selectionRangeProvider: nil, linkedEditingRangeProvider: nil, monikerProvider: nil, inlineValueProvider: nil, experimental: nil)))\n)\n'
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "INFO:root:# xcode build server with python 3.12.3 (main, Apr 9 2024, 08:09:14) [Clang 15.0.0 (clang-1500.3.9.4)]]\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "INFO:server:Xcode Build Server Startup\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" 'DEBUG:server:Req --> {"params":{"displayName":"SourceKit-LSP","bspVersion":"2.0","capabilities":{"languageIds":["c","cpp","objective-c","objective-cpp","swift"]},"rootUri":"file:\\/\\/\\/Users\\/paul\\/src\\/HaishinKit.swift\\/","version":"1.0"},"jsonrpc":"2.0","id":1,"method":"build\\/initialize"}\n'
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "INFO:server:use flags from /Users/paul/Library/Caches/xcode-build-server/-Users-paul-src-HaishinKit.swift/compile_file-Example macOS-2ee64099720786ced430893c666a30a7\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" 'DEBUG:server:Res <-- {"jsonrpc": "2.0", "id": 1, "result": {"displayName": "xcode build server", "version": "0.1", "bspVersion": "2.0", "rootUri": "file:///Users/paul/src/HaishinKit.swift/", "capabilities": {"languageIds": ["c", "cpp", "objective-c", "objective-cpp", "swift"]}, "data": {"indexDatabasePath": "/Users/paul/Library/Caches/xcode-build-server/-Users-paul-src-HaishinKit.swift/indexDatabasePath-67dbc88b2bf999f9b8425587c08799cd", "indexStorePath": "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Index.noindex/DataStore"}}}\n'
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "[2024-06-01 11:22:23.916] initialized build server xcode build server\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" 'DEBUG:server:Req --> {"params":{},"jsonrpc":"2.0","method":"build\\/initialized"}\n'
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "[2024-06-01 11:22:23.917] opened IndexStoreDB at /Users/paul/Library/Caches/xcode-build-server/-Users-paul-src-HaishinKit.swift/indexDatabasePath-67dbc88b2bf999f9b8425587c08799cd with store path /Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Index.noindex/DataStore\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "[2024-06-01 11:22:23.918] SourceKitServer: Notification<initialized>(\n clientID: ObjectIdentifier(0x000060000316c200),\n params: InitializedNotification()\n)\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" '[2024-06-01 11:22:23.918] SourceKitServer: Notification<textDocument/didOpen>(\n clientID: ObjectIdentifier(0x000060000316c200),\n params: DidOpenTextDocumentNotification(textDocument: LanguageServerProtocol.TextDocumentItem(uri: LanguageServerProtocol.DocumentURI(storage: file:///Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift), language: swift, version: 0, text: "import Cocoa\\nimport HaishinKit\\nimport Logboard\\n\\nlet logger = LBLogger.with(\\"com.haishinkit.Exsample.macOS\\")\\n\\n@NSApplicationMain\\nclass AppDelegate: NSObject, NSApplicationDelegate {\\n var window: NSWindow!\\n\\n func applicationDidFinishLaunching(_ aNotification: Notification) {\\n LBLogger.with(HaishinKitIdentifier).level = .info\\n FeatureUtil.setEnabled(for: .multiTrackAudioMixing, isEnabled: true)\\n }\\n}\\n"))\n)\n'
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [2:sourcekitd_initialize:6147: 0.0000] initializing\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "[2024-06-01 11:22:23.922] Using toolchain XcodeDefault (com.apple.dt.toolchain.XcodeDefault) for DocumentURI(storage: file:///Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift)\n[2024-06-01 11:22:23.922] registerForChangeNotifications(/Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift)\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" '[2024-06-01 11:22:23.922] mainFilesContainingFile(/Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift) -> [LanguageServerProtocol.DocumentURI(storage: file:///Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift)]\nDEBUG:server:Req --> {"jsonrpc":"2.0","id":2,"params":{"action":"register","uri":"file:\\/\\/\\/Users\\/paul\\/src\\/HaishinKit.swift\\/Examples\\/macOS\\/AppDelegate.swift"},"method":"textDocument\\/registerForChanges"}\nDEBUG:server:Res <-- {"jsonrpc": "2.0", "id": 2, "result": null}\n'
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" 'DEBUG:server:Res <-- {"jsonrpc": "2.0", "method": "build/sourceKitOptionsChanged", "params": {"uri": "file:///Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift", "updatedOptions": {"options": ["-module-name", "Example_macOS", "-Onone", "-enforce-exclusivity=checked", "/Users/paul/src/HaishinKit.swift/Examples/macOS/PlaybackViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSStoryboard.Name+Extension.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/MainWindowController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSObject+Extension.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/MainSplitViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/SCStreamPublishViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/DnDDelegate.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/FLVAnalyzerViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/MenuViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/iOS/NetStreamSwitcher.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/DnDableView.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/Data+Extension.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/FLVReader.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSViewController+Extension.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/PreferenceViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/VisualEffect.swift", "/Users/paul/src/HaishinKit.swift/Examples/iOS/Preference.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/CameraIngestViewController.swift", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources/GeneratedAssetSymbols.swift", "-enable-upcoming-feature", "ExistentialAny", "-sdk", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk", "-target", "arm64-apple-macos13.0", "-enable-bare-slash-regex", "-g", "-module-cache-path", "/Users/paul/Library/Developer/Xcode/DerivedData/ModuleCache.noindex", "-Xfrontend", "-serialize-debugging-options", "-enable-testing", "-index-store-path", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Index.noindex/DataStore", "-swift-version", "5", "-I", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug", "-F", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug", "-c", "-j10", "-enable-batch-mode", "-incremental", "-Xcc", "-ivfsstatcache", "-Xcc", "/Users/paul/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx14.4-23E208-13f6e737bddbb37f317b3579f3535bf5.sdkstatcache", "-output-file-map", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example macOS-OutputFileMap.json", "-save-temps", "-no-color-diagnostics", "-serialize-diagnostics", "-emit-dependencies", "-emit-module", "-emit-module-path", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example_macOS.swiftmodule", "-validate-clang-modules-once", "-clang-build-session-file", "/Users/paul/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/swift-overrides.hmap", "-emit-const-values", "-Xfrontend", "-const-gather-protocols-file", "-Xfrontend", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example macOS_const_extract_protocols.json", "-Xcc", "-iquote", "-Xcc", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-generated-files.hmap", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-own-target-headers.hmap", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-all-non-framework-target-headers.hmap", "-Xcc", "-ivfsoverlay", "-Xcc", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/all-product-headers.yaml", "-Xcc", "-iquote", "-Xcc", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-project-headers.hmap", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug/include", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources-normal/arm64", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources/arm64", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources", "-Xcc", "-DDEBUG=1", "-emit-objc-header", "-emit-objc-header-path", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example_macOS-Swift.h", "-working-directory", "/Users/paul/src/HaishinKit.swift", "-experimental-emit-module-separately", "-disable-cmo"], "workingDirectory": "/Users/paul/src/HaishinKit.swift"}}}\n'
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" 'sourcekit: [2:sourcekitd_send_request_sync-before:15883: 0.0163] {\n key.request: source.request.editor.open,\n key.name: "/Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift",\n key.compilerargs: [\n "-module-name",\n "Example_macOS",\n "-Onone",\n "-enforce-exclusivity=checked",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/PlaybackViewController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSStoryboard.Name+Extension.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/MainWindowController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSObject+Extension.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/MainSplitViewController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/SCStreamPublishViewController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/DnDDelegate.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/FLVAnalyzerViewController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/MenuViewController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/iOS/NetStreamSwitcher.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/DnDableView.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/Data+Extension.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/FLVReader.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSViewController+Extension.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/PreferenceViewController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/VisualEffect.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/iOS/Preference.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/CameraIngestViewController.swift",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources/GeneratedAssetSymbols.swift",\n "-enable-upcoming-feature",\n "ExistentialAny",\n "-sdk",\n "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk",\n "-target",\n "arm64-apple-macos13.0",\n "-enable-bare-slash-regex",\n "-g",\n "-module-cache-path",\n "/Users/paul/Library/Developer/Xcode/DerivedData/ModuleCache.noindex",\n "-Xfrontend",\n "-serialize-debugging-options",\n "-enable-testing",\n "-index-store-path",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Index.noindex/DataStore",\n "-swift-version",\n "5",\n "-I",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug",\n "-F",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug",\n "-c",\n "-j10",\n "-enable-batch-mode",\n "-incremental",\n "-Xcc",\n "-ivfsstatcache",\n "-Xcc",\n "/Users/paul/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx14.4-23E208-13f6e737bddbb37f317b3579f3535bf5.sdkstatcache",\n "-output-file-map",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example macOS-OutputFileMap.json",\n "-save-temps",\n "-no-color-diagnostics",\n "-serialize-diagnostics",\n "-emit-dependencies",\n "-emit-module",\n "-emit-module-path",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example_macOS.swiftmodule",\n "-validate-clang-modules-once",\n "-clang-build-session-file",\n "/Users/paul/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/swift-overrides.hmap",\n "-emit-const-values",\n "-Xfrontend",\n "-const-gather-protocols-file",\n "-Xfrontend",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example macOS_const_extract_protocols.json",\n "-Xcc",\n "-iquote",\n "-Xcc",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-generated-files.hmap",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-own-target-headers.hmap",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-all-non-framework-target-headers.hmap",\n "-Xcc",\n "-ivfsoverlay",\n "-Xcc",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/all-product-headers.yaml",\n "-Xcc",\n "-iquote",\n "-Xcc",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-project-headers.hmap",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug/include",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources-normal/arm64",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources/arm64",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources",\n "-Xcc",\n "-DDEBUG=1",\n "-emit-objc-header",\n "-emit-objc-header-path",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example_macOS-Swift.h",\n "-working-directory",\n "/Users/paul/src/HaishinKit.swift",\n "-experimental-emit-module-separately",\n "-disable-cmo"\n ],\n key.sourcetext: "import Cocoa\\nimport HaishinKit\\nimport Logboard\\n\\nlet logger = LBLogger.with(\\"com.haishinkit.Exsample.macOS\\")\\n\\n@NSApplicationMain\\nclass AppDelegate: NSObject, NSApplicationDelegate {\\n var window: NSWindow!\\n\\n func applicationDidFinishLaunching(_ aNotification: Notification) {\\n LBLogger.with(HaishinKitIdentifier).level = .info\\n FeatureUtil.setEnabled(for: .multiTrackAudioMixing, isEnabled: true)\\n }\\n}\\n"\n}\n'
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" '[2024-06-01 11:22:23.935] BuildServerHandler: Notification<build/sourceKitOptionsChanged>(\n clientID: ObjectIdentifier(0x0000600003164700),\n params: FileOptionsChangedNotification(uri: LanguageServerProtocol.DocumentURI(storage: file:///Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift), updatedOptions: BuildServerProtocol.SourceKitOptionsResult(options: ["-module-name", "Example_macOS", "-Onone", "-enforce-exclusivity=checked", "/Users/paul/src/HaishinKit.swift/Examples/macOS/PlaybackViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSStoryboard.Name+Extension.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/MainWindowController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSObject+Extension.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/MainSplitViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/SCStreamPublishViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/DnDDelegate.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/FLVAnalyzerViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/MenuViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/iOS/NetStreamSwitcher.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/DnDableView.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/Data+Extension.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/FLVReader.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSViewController+Extension.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/PreferenceViewController.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/VisualEffect.swift", "/Users/paul/src/HaishinKit.swift/Examples/iOS/Preference.swift", "/Users/paul/src/HaishinKit.swift/Examples/macOS/CameraIngestViewController.swift", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources/GeneratedAssetSymbols.swift", "-enable-upcoming-feature", "ExistentialAny", "-sdk", "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk", "-target", "arm64-apple-macos13.0", "-enable-bare-slash-regex", "-g", "-module-cache-path", "/Users/paul/Library/Developer/Xcode/DerivedData/ModuleCache.noindex", "-Xfrontend", "-serialize-debugging-options", "-enable-testing", "-index-store-path", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Index.noindex/DataStore", "-swift-version", "5", "-I", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug", "-F", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug", "-c", "-j10", "-enable-batch-mode", "-incremental", "-Xcc", "-ivfsstatcache", "-Xcc", "/Users/paul/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx14.4-23E208-13f6e737bddbb37f317b3579f3535bf5.sdkstatcache", "-output-file-map", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example macOS-OutputFileMap.json", "-save-temps", "-no-color-diagnostics", "-serialize-diagnostics", "-emit-dependencies", "-emit-module", "-emit-module-path", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example_macOS.swiftmodule", "-validate-clang-modules-once", "-clang-build-session-file", "/Users/paul/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/swift-overrides.hmap", "-emit-const-values", "-Xfrontend", "-const-gather-protocols-file", "-Xfrontend", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example macOS_const_extract_protocols.json", "-Xcc", "-iquote", "-Xcc", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-generated-files.hmap", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-own-target-headers.hmap", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-all-non-framework-target-headers.hmap", "-Xcc", "-ivfsoverlay", "-Xcc", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/all-product-headers.yaml", "-Xcc", "-iquote", "-Xcc", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-project-headers.hmap", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug/include", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources-normal/arm64", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources/arm64", "-Xcc", "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources", "-Xcc", "-DDEBUG=1", "-emit-objc-header", "-emit-objc-header-path", "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example_macOS-Swift.h", "-working-directory", "/Users/paul/src/HaishinKit.swift", "-experimental-emit-module-separately", "-disable-cmo"], workingDirectory: Optional("/Users/paul/src/HaishinKit.swift")))\n)\n[2024-06-01 11:22:23.935] Initial build settings received for opened file DocumentURI(storage: file:///Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift)\n'
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" '[2024-06-01 11:22:23.935] {\n key.request: source.request.editor.open,\n key.name: "/Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift",\n key.compilerargs: [\n "-module-name",\n "Example_macOS",\n "-Onone",\n "-enforce-exclusivity=checked",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/PlaybackViewController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSStoryboard.Name+Extension.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/MainWindowController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSObject+Extension.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/MainSplitViewController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/SCStreamPublishViewController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/DnDDelegate.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/FLVAnalyzerViewController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/MenuViewController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/iOS/NetStreamSwitcher.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/DnDableView.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/Data+Extension.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/FLVReader.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/Extension/NSViewController+Extension.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/PreferenceViewController.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/VisualEffect.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/iOS/Preference.swift",\n "/Users/paul/src/HaishinKit.swift/Examples/macOS/CameraIngestViewController.swift",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources/GeneratedAssetSymbols.swift",\n "-enable-upcoming-feature",\n "ExistentialAny",\n "-sdk",\n "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk",\n "-target",\n "arm64-apple-macos13.0",\n "-enable-bare-slash-regex",\n "-g",\n "-module-cache-path",\n "/Users/paul/Library/Developer/Xcode/DerivedData/ModuleCache.noindex",\n "-Xfrontend",\n "-serialize-debugging-options",\n "-enable-testing",\n "-index-store-path",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Index.noindex/DataStore",\n "-swift-version",\n "5",\n "-I",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug",\n "-F",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug",\n "-c",\n "-j10",\n "-enable-batch-mode",\n "-incremental",\n "-Xcc",\n "-ivfsstatcache",\n "-Xcc",\n "/Users/paul/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/macosx14.4-23E208-13f6e737bddbb37f317b3579f3535bf5.sdkstatcache",\n "-output-file-map",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example macOS-OutputFileMap.json",\n "-save-temps",\n "-no-color-diagnostics",\n "-serialize-diagnostics",\n "-emit-dependencies",\n "-emit-module",\n "-emit-module-path",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example_macOS.swiftmodule",\n "-validate-clang-modules-once",\n "-clang-build-session-file",\n "/Users/paul/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/swift-overrides.hmap",\n "-emit-const-values",\n "-Xfrontend",\n "-const-gather-protocols-file",\n "-Xfrontend",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example macOS_const_extract_protocols.json",\n "-Xcc",\n "-iquote",\n "-Xcc",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-generated-files.hmap",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-own-target-headers.hmap",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-all-non-framework-target-headers.hmap",\n "-Xcc",\n "-ivfsoverlay",\n "-Xcc",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/all-product-headers.yaml",\n "-Xcc",\n "-iquote",\n "-Xcc",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Example macOS-project-headers.hmap",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Products/Debug/include",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources-normal/arm64",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources/arm64",\n "-Xcc",\n "-I/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/DerivedSources",\n "-Xcc",\n "-DDEBUG=1",\n "-emit-objc-header",\n "-emit-objc-header-path",\n "/Users/paul/Library/Developer/Xcode/DerivedData/HaishinKit-bdioopwgildymzdsmhomtezhaams/Build/Intermediates.noindex/HaishinKit.build/Debug/Example macOS.build/Objects-normal/arm64/Example_macOS-Swift.h",\n "-working-directory",\n "/Users/paul/src/HaishinKit.swift",\n "-experimental-emit-module-separately",\n "-disable-cmo"\n ],\n key.sourcetext: "import Cocoa\\nimport HaishinKit\\nimport Logboard\\n\\nlet logger = LBLogger.with(\\"com.haishinkit.Exsample.macOS\\")\\n\\n@NSApplicationMain\\nclass AppDelegate: NSObject, NSApplicationDelegate {\\n var window: NSWindow!\\n\\n func applicationDidFinishLaunching(_ aNotification: Notification) {\\n LBLogger.with(HaishinKitIdentifier).level = .info\\n FeatureUtil.setEnabled(for: .multiTrackAudioMixing, isEnabled: true)\\n }\\n}\\n"\n}\n'
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "[2024-06-01 11:22:23.940] mainFilesContainingFile(/Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift) -> [LanguageServerProtocol.DocumentURI(storage: file:///Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift)]\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0452] service queried UID for: source.request.enable_request_barriers\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0453] service queried UID for: source.request.configuration.global\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0453] service queried UID for: source.request.protocol_version\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0454] service queried UID for: source.request.compiler_version\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0454] service queried UID for: source.request.crash_exit\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0455] service queried UID for: source.request.test_notification\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0455] service queried UID for: source.request.statistics\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0456] service queried UID for: source.request.demangle\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0457] service queried UID for: source.request.mangle_simple_class\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0458] service queried UID for: source.request.enable-compile-notifications\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0459] service queried UID for: source.request.buildsettings.register\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0459] service queried UID for: source.request.dependency_updated\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0459] service queried UID for: source.request.docinfo\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0460] service queried UID for: source.request.editor.open\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0478] service queried UID for: source.diagnostic.stage.swift.parse\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0479] service queried UID for: source.lang.swift.decl.var.global\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0479] service queried UID for: source.lang.swift.accessibility.internal\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0480] service queried UID for: source.lang.swift.expr.argument\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0480] service queried UID for: source.lang.swift.expr.call\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0481] service queried UID for: source.decl.attribute.NSApplicationMain\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0482] service queried UID for: source.lang.swift.decl.var.instance\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0483] service queried UID for: source.lang.swift.decl.var.parameter\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0483] service queried UID for: source.lang.swift.decl.function.method.instance\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0483] service queried UID for: source.lang.swift.structure.elem.typeref\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0484] service queried UID for: source.lang.swift.decl.class\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0484] service queried UID for: source.lang.swift.syntaxtype.keyword\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0485] service queried UID for: source.lang.swift.syntaxtype.identifier\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0485] service queried UID for: source.lang.swift.syntaxtype.string\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0486] service queried UID for: source.lang.swift.syntaxtype.attribute.builtin\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" "sourcekit: [4:handleInternalUIDRequest:4615: 0.0486] service queried UID for: source.lang.swift.syntaxtype.typeidentifier\n"
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" 'sourcekit: [2:sourcekitd_send_request_sync-after:15883: 0.0487] {\n key.offset: 0,\n key.length: 423,\n key.diagnostic_stage: source.diagnostic.stage.swift.parse,\n key.syntaxmap: [\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 0,\n key.length: 6\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 7,\n key.length: 5\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 13,\n key.length: 6\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 20,\n key.length: 10\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 31,\n key.length: 6\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 38,\n key.length: 8\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 48,\n key.length: 3\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 52,\n key.length: 6\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 61,\n key.length: 8\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 70,\n key.length: 4\n },\n {\n key.kind: source.lang.swift.syntaxtype.string,\n key.offset: 75,\n key.length: 31\n },\n {\n key.kind: source.lang.swift.syntaxtype.attribute.builtin,\n key.offset: 109,\n key.length: 18\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 128,\n key.length: 5\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 134,\n key.length: 11\n },\n {\n key.kind: source.lang.swift.syntaxtype.typeidentifier,\n key.offset: 147,\n key.length: 8\n },\n {\n key.kind: source.lang.swift.syntaxtype.typeidentifier,\n key.offset: 157,\n key.length: 21\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 185,\n key.length: 3\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 189,\n key.length: 6\n },\n {\n key.kind: source.lang.swift.syntaxtype.typeidentifier,\n key.offset: 197,\n key.length: 8\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 212,\n key.length: 4\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 217,\n key.length: 29\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 247,\n key.length: 1\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 249,\n key.length: 13\n },\n {\n key.kind: source.lang.swift.syntaxtype.typeidentifier,\n key.offset: 264,\n key.length: 12\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 288,\n key.length: 8\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 297,\n key.length: 4\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 302,\n key.length: 20\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 324,\n key.length: 5\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 333,\n key.length: 4\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 346,\n key.length: 11\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 358,\n key.length: 10\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 369,\n key.length: 3\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 375,\n key.length: 21\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 398,\n key.length: 9\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 409,\n key.length: 4\n }\n ],\n key.substructure: [\n {\n key.kind: source.lang.swift.decl.var.global,\n key.accessibility: source.lang.swift.accessibility.internal,\n key.name: "logger",\n key.offset: 48,\n key.length: 59,\n key.nameoffset: 52,\n key.namelength: 6\n },\n {\n key.kind: source.lang.swift.expr.call,\n key.name: "LBLogger.with",\n key.offset: 61,\n key.length: 46,\n key.nameoffset: 61,\n key.namelength: 13,\n key.bodyoffset: 75,\n key.bodylength: 31,\n key.substructure: [\n {\n key.kind: source.lang.swift.expr.argument,\n key.offset: 75,\n key.length: 31,\n key.bodyoffset: 75,\n key.bodylength: 31\n }\n ]\n },\n {\n key.kind: source.lang.swift.decl.class,\n key.accessibility: source.lang.swift.accessibility.internal,\n key.name: "AppDelegate",\n key.offset: 128,\n key.length: 294,\n key.nameoffset: 134,\n key.namelength: 11,\n key.bodyoffset: 180,\n key.bodylength: 241,\n key.inheritedtypes: [\n {\n key.name: "NSObject"\n },\n {\n key.name: "NSApplicationDelegate"\n }\n ],\n key.attributes: [\n {\n key.offset: 109,\n key.length: 18,\n key.attribute: source.decl.attribute.NSApplicationMain\n }\n ],\n key.elements: [\n {\n key.kind: source.lang.swift.structure.elem.typeref,\n key.offset: 147,\n key.length: 8\n },\n {\n key.kind: source.lang.swift.structure.elem.typeref,\n key.offset: 157,\n key.length: 21\n }\n ],\n key.substructure: [\n {\n key.kind: source.lang.swift.decl.var.instance,\n key.accessibility: source.lang.swift.accessibility.internal,\n key.setter_accessibility: source.lang.swift.accessibility.internal,\n key.name: "window",\n key.offset: 185,\n key.length: 21,\n key.typename: "NSWindow!",\n key.nameoffset: 189,\n key.namelength: 6\n },\n {\n key.kind: source.lang.swift.decl.function.method.instance,\n key.accessibility: source.lang.swift.accessibility.internal,\n key.name: "applicationDidFinishLaunching(_:)",\n key.offset: 212,\n key.length: 208,\n key.nameoffset: 217,\n key.namelength: 60,\n key.bodyoffset: 279,\n key.bodylength: 140,\n key.substructure: [\n {\n key.kind: source.lang.swift.decl.var.parameter,\n key.name: "aNotification",\n key.offset: 247,\n key.length: 29,\n key.typename: "Notification"\n },\n {\n key.kind: source.lang.swift.expr.call,\n key.name: "LBLogger.with",\n key.offset: 288,\n key.length: 35,\n key.nameoffset: 288,\n key.namelength: 13,\n key.bodyoffset: 302,\n key.bodylength: 20,\n key.substructure: [\n {\n key.kind: source.lang.swift.expr.argument,\n key.offset: 302,\n key.length: 20,\n key.bodyoffset: 302,\n key.bodylength: 20\n }\n ]\n },\n {\n key.kind: source.lang.swift.expr.call,\n key.name: "FeatureUtil.setEnabled",\n key.offset: 346,\n key.length: 68,\n key.nameoffset: 346,\n key.namelength: 22,\n key.bodyoffset: 369,\n key.bodylength: 44,\n key.substructure: [\n {\n key.kind: source.lang.swift.expr.argument,\n key.name: "for",\n key.offset: 369,\n key.length: 27,\n key.nameoffset: 369,\n key.namelength: 3,\n key.bodyoffset: 374,\n key.bodylength: 22\n },\n '
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" ' {\n key.kind: source.lang.swift.expr.argument,\n key.name: "isEnabled",\n key.offset: 398,\n key.length: 15,\n key.nameoffset: 398,\n key.namelength: 9,\n key.bodyoffset: 409,\n key.bodylength: 4\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n[2024-06-01 11:22:23.967] {\n key.offset: 0,\n key.length: 423,\n key.diagnostic_stage: source.diagnostic.stage.swift.parse,\n key.syntaxmap: [\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 0,\n key.length: 6\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 7,\n key.length: 5\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 13,\n key.length: 6\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 20,\n key.length: 10\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 31,\n key.length: 6\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 38,\n key.length: 8\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 48,\n key.length: 3\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 52,\n key.length: 6\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 61,\n key.length: 8\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 70,\n key.length: 4\n },\n {\n key.kind: source.lang.swift.syntaxtype.string,\n key.offset: 75,\n key.length: 31\n },\n {\n key.kind: source.lang.swift.syntaxtype.attribute.builtin,\n key.offset: 109,\n key.length: 18\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 128,\n key.length: 5\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 134,\n key.length: 11\n },\n {\n key.kind: source.lang.swift.syntaxtype.typeidentifier,\n key.offset: 147,\n key.length: 8\n },\n {\n key.kind: source.lang.swift.syntaxtype.typeidentifier,\n key.offset: 157,\n key.length: 21\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 185,\n key.length: 3\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 189,\n key.length: 6\n },\n {\n key.kind: source.lang.swift.syntaxtype.typeidentifier,\n key.offset: 197,\n key.length: 8\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 212,\n key.length: 4\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 217,\n key.length: 29\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 247,\n key.length: 1\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 249,\n key.length: 13\n },\n {\n key.kind: source.lang.swift.syntaxtype.typeidentifier,\n key.offset: 264,\n key.length: 12\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 288,\n key.length: 8\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 297,\n key.length: 4\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 302,\n key.length: 20\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 324,\n key.length: 5\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 333,\n key.length: 4\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 346,\n key.length: 11\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 358,\n key.length: 10\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 369,\n key.length: 3\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 375,\n key.length: 21\n },\n {\n key.kind: source.lang.swift.syntaxtype.identifier,\n key.offset: 398,\n key.length: 9\n },\n {\n key.kind: source.lang.swift.syntaxtype.keyword,\n key.offset: 409,\n key.length: 4\n }\n ],\n key.substructure: [\n {\n key.kind: source.lang.swift.decl.var.global,\n key.accessibility: source.lang.swift.accessibility.internal,\n key.name: "logger",\n key.offset: 48,\n key.length: 59,\n key.nameoffset: 52,\n key.namelength: 6\n },\n {\n key.kind: source.lang.swift.expr.call,\n key.name: "LBLogger.with",\n key.offset: 61,\n key.length: 46,\n key.nameoffset: 61,\n key.namelength: 13,\n key.bodyoffset: 75,\n key.bodylength: 31,\n key.substructure: [\n {\n key.kind: source.lang.swift.expr.argument,\n key.offset: 75,\n key.length: 31,\n key.bodyoffset: 75,\n key.bodylength: 31\n }\n ]\n },\n {\n key.kind: source.lang.swift.decl.class,\n key.accessibility: source.lang.swift.accessibility.internal,\n key.name: "AppDelegate",\n key.offset: 128,\n key.length: 294,\n key.nameoffset: 134,\n key.namelength: 11,\n key.bodyoffset: 180,\n key.bodylength: 241,\n key.inheritedtypes: [\n {\n key.name: "NSObject"\n },\n {\n key.name: "NSApplicationDelegate"\n }\n ],\n key.attributes: [\n {\n key.offset: 109,\n key.length: 18,\n key.attribute: source.decl.attribute.NSApplicationMain\n }\n ],\n key.elements: [\n {\n key.kind: source.lang.swift.structure.elem.typeref,\n key.offset: 147,\n key.length: 8\n },\n {\n key.kind: source.lang.swift.structure.elem.typeref,\n key.offset: 157,\n key.length: 21\n }\n ],\n key.substructure: [\n {\n key.kind: source.lang.swift.decl.var.instance,\n key.accessibility: source.lang.swift.accessibility.internal,\n key.setter_accessibility: source.lang.swift.accessibility.internal,\n key.name: "window",\n key.offset: 185,\n key.length: 21,\n key.typename: "NSWindow!",\n key.nameoffset: 189,\n key.namelength: 6\n },\n {\n key.kind: source.lang.swift.decl.function.method.instance,\n key.accessibility: source.lang.swift.accessibility.internal,\n key.name: "applicationDidFinishLaunching(_:)",\n key.offset: 212,\n key.length: 208,\n key.nameoffset: 217,\n key.namelength: 60,\n key.bodyoffset: 279,\n key.bodylength: 140,\n key.substructure: [\n {\n key.kind: source.lang.swift.decl.var.parameter,\n key.name: "aNotification",\n key.offset: 247,\n key.length: 29,\n key.typename: "Notification"\n },\n {\n key.kind: source.lang.swift.expr.call,\n key.name: "LBLogger.with",\n key.offset: 288,\n key.length: 35,\n key.nameoffset: 288,\n key.namelength: 13,\n key.bodyoffset: 302,\n key.bodylength: 20,\n key.substructure: [\n {\n key.kind: source.lang.swift.expr.argument,\n key.offset: 302,\n key.length: 20,\n key.bodyoffset: 302,\n key.bodylength: 20\n }\n ]\n },\n {\n key.kind: source.lang.swift.expr.call,\n key.name: "FeatureUtil.setEnabled",\n key.offset: 346,\n key.length: 68,\n key.nameoffset: 346,\n key.namelength: 22,\n key.bodyoffset: 369,\n key.bodylength: 44,\n '
[ERROR][2024-06-01 11:22:23] .../vim/lsp/rpc.lua:770 "rpc" "/usr/bin/sourcekit-lsp" "stderr" ' key.substructure: [\n {\n key.kind: source.lang.swift.expr.argument,\n key.name: "for",\n key.offset: 369,\n key.length: 27,\n key.nameoffset: 369,\n key.namelength: 3,\n key.bodyoffset: 374,\n key.bodylength: 22\n },\n {\n key.kind: source.lang.swift.expr.argument,\n key.name: "isEnabled",\n key.offset: 398,\n key.length: 15,\n key.nameoffset: 398,\n key.namelength: 9,\n key.bodyoffset: 409,\n key.bodylength: 4\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n}\n[2024-06-01 11:22:23.968] SourceKitServer: Notification<textDocument/publishDiagnostics>(\n clientID: ObjectIdentifier(0x0000600000a7c180),\n params: PublishDiagnosticsNotification(uri: LanguageServerProtocol.DocumentURI(storage: file:///Users/paul/src/HaishinKit.swift/Examples/macOS/AppDelegate.swift), version: Optional(0), diagnostics: [])\n)\n[2024-06-01 11:22:23.968] updateSyntaxTree(for:with:) took 0.39 ms to execute\n'
What can you spot?
from xcode-build-server.
Btw. Apple adds experimental feature with background indexing: swiftlang/sourcekit-lsp#1416
from xcode-build-server.
Related Issues (20)
- Support for Xcode 15.3 HOT 9
- iOS project issues with XCode 15.3 HOT 19
- Question: is LSP restart required after updating `buildServer.json`? HOT 1
- Parse log with UnicodeDecodeError HOT 2
- Does this works with bazel? HOT 2
- Xcode 15.3 - loading standard library failed error HOT 11
- Does it work with Clang or ObjectiveC? HOT 8
- Description of the process HOT 3
- Detecting changes in other files HOT 12
- Does this project work with Cocoapods? HOT 1
- Is it possible to support generated `.swiftinterface` files? HOT 1
- [Fix] Cross References Not Working with LSP HOT 2
- False positives (for functions) and duplicates (for properties) for vim.lsp.buf.definition() HOT 12
- Issues with Autocomplete HOT 2
- Document setting correct sourcekit-lsp path HOT 1
- Xcode 16 beta support HOT 5
- Bazel support HOT 6
- [Proposal] Support for multiple schemes HOT 1
- Errors in LSP logs HOT 21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xcode-build-server.