This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-25
Channels
- # beginners (33)
- # cider (40)
- # clara (28)
- # cljs-dev (38)
- # cljsrn (5)
- # clojure (197)
- # clojure-greece (1)
- # clojure-italy (7)
- # clojure-losangeles (1)
- # clojure-nl (10)
- # clojure-spec (32)
- # clojure-uk (154)
- # clojurescript (48)
- # core-async (33)
- # cursive (32)
- # datomic (19)
- # duct (1)
- # fulcro (10)
- # graphql (6)
- # jobs (1)
- # lumo (1)
- # mount (6)
- # off-topic (48)
- # onyx (12)
- # other-languages (2)
- # re-frame (77)
- # reagent (19)
- # reitit (4)
- # ring (5)
- # ring-swagger (18)
- # rum (4)
- # shadow-cljs (52)
- # specter (12)
- # tools-deps (47)
I’m using cursive and intellij keeps telling me to require a namespace. Every time I do, it adds it then tells me to import again. The namespace alias (eg. [foo.bar :as alias]) is the same as another library that I recently removed. Intellij/cursive still remembers this old library even though I removed it. Cursive also remembers all other requires. I can delete all my requires/imports and cursive does not show issues in my code. If I add something I’ve never imported before I do get errors. I’ve tried invalidating cache and restarting
@caleb.macdonaldblack That’s really weird, especially that invalidating the caches doesn’t fix it. Invalidating blows all the indexes away and there should be nothing left.
Yea it recently started acting up like this. I will trying reinstalling cursive and if that doesnt work intellij too. Just wanted to make sure there wasnt something i was missing first. Thanks
@caleb.macdonaldblack Before you do that, could you send a screenshot of what you’re seeing?
Okay thanks i will do it now
@cfleming https://gyazo.com/12fa1af86024ce610835d04286ee4b4c Here I can remove all the imports and I only receive errors for stuff added after the problem started happending
Here I am constantly receiving a warning to import https://gyazo.com/86cb94e022f505f98e4f9ca25d061b4e
And here it remembers the library I removed and I have nothing imported as firebase https://gyazo.com/2588b334f2e8810f5aa7b68fbf375ba5
A function
Ok, I think I see the problem. The issue is that you already have firebase required using fb
Thats how I’ve got it working so I dont constantly have that warning
If i remove that I still have the issue
That firebase library its remembering is not listed in any dependencies or project.clj
I used to have it but I removed it
What’s weird there is that when you type firebase/ini|
it doesn’t autocomplete initialize-app
Yea init
was a function used in the library I removed
And it autocompletes even though I have nothing required as firebase
So if you invalidate the indexes and you’re still getting that, there must be some code somewhere in your project still with that alias defined.
The issue is only in namespaces that had firebase imported too
Invalidating the indexes blows everything away AFAIK (that’s at the IntelliJ level, but I’m pretty sure)
If you do a Navigate->Namespace… and enter medial-web.core
does IntelliJ find another one, perhaps in an output directory or something?
Yea I do actually. I am building cljs to a directory not marked as Excluded.
I removed that directory and it works now
That makes sense too. Thank you for your help!