New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refreshing LSP after adding a new file? #56
Comments
I actually mapped LSP Reloading on xL for this exact purpouse |
I found the connected ticket: apple/sourcekit-lsp#969. I guess it's worth subscribing there :). |
xcode-build-server normally doesn't need to restart as soon as parse logs. It will watch updated logs to send new flags to lsp. |
@SolaWing maybe some notification from BSP to LSP is needed to refresh diagnostics? |
currently only flags changes can be notified from BSP. and if flags is correct, LSP can figure out diagnostics. defs and refs seems to depend on the index-store file, which updated by the build command |
ok, I will check this issue one more time and I will create a ticket for sourcekit-lsp then |
@SolaWing is also trying to workaround this problem directly in xcode-build-server. The issue to track: SolaWing/xcode-build-server#43 |
xcode-build-server v1.1.0 has been released. It should improve the workflow with new files. In case of any issue please report it directly to: https://github.com/SolaWing/xcode-build-server |
When you add a new file, it always shows some errors because the LSP is unable to place this file in a project structure yet. You need to build the project and usually restart LSP.
Maybe it is possible to somehow improve this process?
Ideas:
xcode-builld-server parse .nvim/xcodebuild/original_logs.log -o .nvim/xcodebuild/.compile
?sourcekit-lsp
in their repo they say:The text was updated successfully, but these errors were encountered: