xbase: Configuration problem
I’m using macOS 13.3.1, M1 Pro, Xcode 14.3, lazyvim and I’m unable to make this plugin work.
I tested it on 3 projects and on all of them I get the same error. All those projects are using xcodegen for project generation.
So I installed the plugin like that:

Then I open nvim in the root folder of my project, where project.yml is located, I open some swift file like AppDelegate.swift and I use <leader>b mapping then I always get:

I tried to follow debug steps but there are no logs.
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 21 (11 by maintainers)
Commits related to this issue
- feat: support SwiftDriver (#3) Adds support for SwiftDriver compile commands. Note, This PR also remove escape chars from file-path of file list to fix error reading the file content. See: https:... — committed to xbase-lab/xclog by kkharji a year ago
- fix: treating swift-frontend as error (#4) See: https://github.com/kkharji/xbase/issues/178, https://github.com/kkharji/xbase/issues/179 — committed to xbase-lab/xclog by kkharji a year ago
I added feature requests mentioned in this conversation: #188, #189, #190. Thank you one more time for all the help! Great job 🎊 🚀 🔥
This is my config:
I’ve got
iPhone 14installed, but I’m still not seeing it on the listUPDATE: Uhh, I missed
iOS = { "iPhone 14" }. Now It works!hmmm just to confirm, you did run make install in xbase root, right? edit: also git pull
Yes, and that’s why xbase has it’s own build server called sourcekit helper that solves these issues.
edit: my bad, for lsp to work now, you would need to remove .compile manually. It must be reading the old one (gets automatically updated on project structure change)
Great to hear! Thank you for the update. I’m glad you were able to crack it! Good job and thank you for your engagement! 🚀 🎊
@wojciech-kulik Quick update.
It turned out the project did compile successfully. However,
SwiftDriverwasn’t support in xcode log parser at all. Now, in local environment I can confirm that LSP features works.Next I’m going fix the issue with the parser seeing
SwiftCompileandswift-frontendas an error 😒, which the main cause of “the decode function error” in neovim. I must’ve add catch all logic to treat any unrecognizable log as error, if that the case, … what a bad decision it was.Finally, with new release of xclog and updating the tag in xbase it should work flawlessly.
@wojciech-kulik I just ran the https://github.com/wojciech-kulik/SwiftUI-Redux-Demo on my environment.
.compilewas created with empty array.I’m guessing permission issues, with some parsing issues. I will build in debug and run the build command manually to see whats wrong exactly. More later
My Environment
Machine
Output
Xcode
Output
Neovim
Output
Debugging
ps aux | grep "xbase/xbase"returns two results (on for grep and xbase process.buildServer.jsonand.compilewas created.XBase Logs
Output
XBase build server logs
Output (after navigating to a file. In that case Store.swift)
Neovim State
Output (after the project as registred successfully)
Neovim Server Roots
Output (after the project as registred successfully)
@wojciech-kulik Thanks so much for debugging, reaching to the root of it, and providing a repo I can use to debug further.
I will try today use the repo to debug it further and make it work.