-
Notifications
You must be signed in to change notification settings - Fork 17
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
Configuration problem #178
Comments
Hello @wojciech-kulik Thanks for reporting. Sorry for your troubles. It's seems an issue with telescope integration, perhaps the project info isn't correctly stored.
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as resolved.
This comment was marked as resolved.
Ok, I managed to fix this problem. It turned out that I needed cargo, so one extra step was missing - to install:
Then I ran However, now I can see logs, so I will try to investigate what's the problem and I will let you know. Thanks for your patience! |
This comment was marked as outdated.
This comment was marked as outdated.
@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. |
@wojciech-kulik I just ran the https://github.com/wojciech-kulik/SwiftUI-Redux-Demo on my environment.
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
|
@wojciech-kulik Quick update. It turned out the project did compile successfully. However, Next I'm going fix the issue with the parser seeing Finally, with new release of xclog and updating the tag in xbase it should work flawlessly. |
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! 🚀 🎊 |
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: kkharji/xbase#178, kkharji/xbase#179
@wojciech-kulik please update your local version of xbase to latest version and should work without any issues 🤞🤞 |
I updated xbase, but I still get some errors: Also, I have problems with LSP, I'm not sure if this is related with sourcekit-lsp or xbase but I'm never able to go to declaration/implementation or something like that. For example:
Is it possible at all to make swift LSP work properly for iOS projects? I think I read somewhere that LSP doesn't understand project structure so it doesn't work across multiple Swift files. Is it true? |
hmmm just to confirm, you did run make install in xbase root, right?
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) |
Congratulations 🎉🎉🎉
Yes, the empty list. I had the exact same issue and that led to #182. In my case I had
Yeah in term of reference sourcekit it self lacks support, Xcode has custom setup to enable this. Please open a feature request for that. I will look into having the feature builtin.
Not sure, but if it does not work, then same as the above.
Great suggestion, it should be super easy to implement (xbase has its own syntax highlighting for logs) please open a feature request. |
I updated my answer while you answered (now it works) 🎊 I've got one last thing. Does xbase support xcworkspace? Most of my projects is using CocoaPods which generate You could reproduce it on this project: |
@wojciech-kulik Please feel free to close the issue if the problem is solved. The issue is getting too big🫢. Also don't forget feature requests for your suggestions |
Yes, I believe it is supported according to #86 and #101. I will double check it tomorrow and open an issue and mention you in case, it does not. |
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 likeAppDelegate.swift
and I use<leader>b
mapping then I always get:I tried to follow debug steps but there are no logs.
The text was updated successfully, but these errors were encountered: