Closed mjovanc closed 1 month ago
I just copied your sqllite example and replaced the njord dependency with your example and it worked fine after also fixing the relative db file path. Maybe it is only a rust analyser issue.
@Angr1st Thanks for checking this. It might actually be. I'm using IntelliJ with the Rust plugin. We are soon ready for release and if this is not working, that is not good. I will try in VS Code with Rust Analyzer as well to confirm.
How exactly are you surfacing this error? Im using helix and when I do go to definition of the njord::sqllite it puts me into the sqllite::mod.rs file. If I dont active the sqllite feature I get build errors regarding the missing sqllite module.
Hmm, I can't reproduce this issue either, it seems to work fine for me
Attaching some screenshots just to show. I have done cargo clean, invalidate all caches etc. It seems to be an issue with the Rust plugin and/or IntelliJ. Maybe @bravit can take a look? I have no idea if this is still supported. Closing this for now since you can't reproduce it.
When trying to use the njord dependency using git repo link as well as feature flag on latest it doesn't activate the specific code.
For example adding this:
It should active this code inside
njord/src/lib.rs
:But it doesn't, the Rust analyzer says: