It is strange that the "find usages" action work for some files but not for others. Wonder if anyone has experienced the same and know why or how to fix it? Thank you.
@michael819 I just took a look at this project. When you talk about the layout, do you mean the dev
directory which isn’t added as a source root?
If so, that’s added as in the dev
alias (`:extra-paths` in the deps.edn
), so you need to tell Cursive to use that alias when syncing: https://cursive-ide.com/userguide/deps.html#working-with-aliases
FYI, I was going through fulcro-rad-tutorial when the issue occurred. https://github.com/fulcrologic/fulcro-rad-tutorial
@hk9861 I have this trouble a bit, but I think my experiences are with CLJC and CLJS mappings
@ajarosinski Thanks for sharing. I spent more time digging around and can confirm that the issue only exists in CLJC files and only pertains to the find usages and navigation actions of the namespaces inside (:require ...). A temporary solution I found: for CLJC files, put all required namespaces inside of reader conditionals (#? or #?@) and the actions should work properly. @cfleming Would like to share this finding. Not sure why this happen this way, but hopefully there could be a better fix. Thanks a lot for creating such an amazing tool.
I have problems with that rad demo too, because the files on disk don't match the 'normal' layout for namespaces it confuses the IDE.
I changed the layout on disk and made it simpler.
Interesting, I’ll take a look at that. I’m surprised by that since Tony and the others that I know of who work on Fulcro all use Cursive.