Hello! Any tips for making Cursive / IntelliJ see extra libraries from a user lein profile?
I have added a profile called scicloj-noj to ~/.lein/profiles.clj and it works on the command line:
lein with-profile scicloj-noj repl
user=> (require 'tablecloth.api)
nil ; i.e. everything is ok
but IntelliJ shows functions from the lib’s namespaces as unknown.
I have opened the Leiningen tool windonw + checked the noj profile there + clicked the Refresh button. I have also tried to do “refresh lein. dependencies” in the project explorer window. When I start the REPL, I have also added the profile to that so loading the file into the repl works just fine. It is just IntelliJ that does not want to see the library as being on the classpath 😭
https://cursive-ide.com/userguide/leiningen.html read
> you would use lein deps :tree to show this, but Cursive will show you this within the IDE too, also in the Leiningen toolwindow. The dependencies are nested in a tree structure so you can see how each dependency was pulled into your project
but the only things I see in that window is Profiles and my-project:1.0.0 > Dependencies so I can see direct deps of my project but I do not see any dependencies from any extra profile.That should definitely work, is the project open? Can I try it out? If not, could you make a small repro project that I could try?
Hello! Sadly it is proprietary. I can try to make a small repro, yes.
While you’re here - the https://cursive-ide.com/userguide/leiningen.html have the section Working with Package Search but the page it links to reads
> Support for searching, evaluating, and managing dependencies with Package Search is not bundled with IntelliJ IDEA
> The https://plugins.jetbrains.com/plugin/12507-package-search plugin has been deprecated.
Just FYI
Oh, thanks - that's actually obsolete with the recent changes supporting completion natively in Cursive, I'll update that.
It seems I can replicate it - I’ve enabled the profile, clicked refresh, but the lib doesn’t show either in the Lein tool window nor in the project dependencies.
Hmm, I'm not sure why that wouldn't work, what does that profile look like in your project.clj?
Details shared in a DM 🙏