-
Notifications
You must be signed in to change notification settings - Fork 27
Integration with Swift Development Snapshot? (support for smart rename) #34
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
Comments
It shouldn't has any issue. can you run it with environment also notice main branch version maybe not stable as release version |
Do you know how can I run it this way? lspconfig["sourcekit"].setup({
capabilities = capabilities,
on_attach = on_attach,
cmd = {
"SOURCEKIT_LOGGING=3 /Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin/sourcekit-lsp",
},
} This way it doesn't work, it says the path is incorrect |
you can set env in parent process like vim or terminal, child process will inherit it. |
I include logs after setting SOURCEKIT_LOGGING=3 |
It seems different swift toolchain may not compatible. since you use newest toolchain from lsp, you should compile from this toolchain too. this may fix any potential compatible issue. second, I found there is error: I will test this case when I have time |
I also tried to run the latest snapshot and looks like it doesn't know about a parameter
|
It appeared after using
Ok, thank you!
Do you know how to change toolchain when using Xcode? |
And thank you for your amazing work! This tool allowed me to move my iOS development to Neovim. I also built a plugin that integrates all needed Xcode-actions into Neovim. If you also develop iOS/macOS apps you may want to check it out: https://github.com/wojciech-kulik/xcodebuild.nvim |
also you can try to set |
I just push |
@SolaWing , for me it works fine with your fix, thanks |
Also, go to reference works much better with the latest sourcekit-lsp :) |
I can't build the project from Xcode using other toolchain. Any idea why?
|
It turned out that it doesn't work with one of the dependencies. However, this swift version is not stable enough to use it for work. 50% of my iOS projects don't work with it. But it's good to know that finally, smart rename will work with the new release, I checked it and it renamed classes correctly 🔥 . |
Hi, I'm trying to figure out if there is any chance to support smart rename. I found this conversation:
swiftlang/sourcekit-lsp#498
and they say that it is supported by the latest swift development snapshot. So I installed it and I switched my lsp cmd to:
I see that the lsp client is attached but the code completion stopped working completely. When I run
:LspLog
I see only:I'm not sure if it is a problem with LSP itself or with xcode-build-server? Is there any difference whether I use sourcekit-lsp from Xcode or from this package?
The text was updated successfully, but these errors were encountered: