{"action":"created","issue":{"url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/32","labels_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/32/comments","events_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/32/events","html_url":"https://github.com/clojure-emacs/refactor-nrepl/issues/32","id":59916463,"number":32,"title":"find-symbol throws exception when using lein profiles ","user":{"login":"rundis","id":399197,"avatar_url":"https://avatars.githubusercontent.com/u/399197?v=3","gravatar_id":"","url":"https://api.github.com/users/rundis","html_url":"https://github.com/rundis","followers_url":"https://api.github.com/users/rundis/followers","following_url":"https://api.github.com/users/rundis/following{/other_user}","gists_url":"https://api.github.com/users/rundis/gists{/gist_id}","starred_url":"https://api.github.com/users/rundis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rundis/subscriptions","organizations_url":"https://api.github.com/users/rundis/orgs","repos_url":"https://api.github.com/users/rundis/repos","events_url":"https://api.github.com/users/rundis/events{/privacy}","received_events_url":"https://api.github.com/users/rundis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-03-05T07:41:57Z","updated_at":"2015-03-08T22:37:29Z","closed_at":"2015-03-07T17:04:22Z","body":"I have a project with a profiles section containing:\r\n```clojure\r\n:profiles {:dev {:plugins [[lein-ring \"0.8.13\"]\r\n                             [drift \"1.5.2\"]]\r\n                   :source-paths [\"dev\"]\r\n                   :test-paths ^:replace []}\r\n             :test {:dependencies [[midje \"1.6.3\"]]\r\n                    :plugins [[lein-midje \"3.1.3\"]]\r\n                    :test-paths [\"test\"]\r\n                    :resource-paths [\"test/resources\"]}}\r\n```\r\n\r\n* I connect to the project (through Light Table btw) without specifying a profile, ie test sources are not part of my classpath.\r\n* When I try to invoke find-symbol it returns a result, but eventually it will also throw/print an exception like below\r\n\r\nMight be a user error from my side, but I would have thought that since test namepaces aren't part of my classpath they shouldn't be analyzed either ?\r\n\r\n```clojure\r\n[clojure-agent-send-off-pool-92] ERROR clojure.tools.nrepl.server - Unhandled REPL handler exception processing message {:id d94991e8-087b-4aa4-a99d-2bf90f439fd1, :name check-produsent, :ns helsegris-api.produsent.domain, :op refactor, :refactor-fn find-symbol}\r\njava.lang.AssertionError: Assert failed: Can't find helsegris-api.core-test in classpath\r\nres\r\n\tat deps.toolsanalyzerjvm.v0v6v5.clojure.tools.analyzer.jvm$analyze_ns.invoke(jvm.clj:535)\r\n\tat deps.toolsanalyzerjvm.v0v6v5.clojure.tools.analyzer.jvm$analyze_ns.invoke(jvm.clj:531)\r\n\tat deps.toolsanalyzerjvm.v0v6v5.clojure.tools.analyzer.jvm$analyze_ns.invoke(jvm.clj:530)\r\n\tat refactor_nrepl.analyzer$build_ast.invoke(analyzer.clj:52)\r\n\tat refactor_nrepl.analyzer$cachable_ast.invoke(analyzer.clj:59)\r\n\tat refactor_nrepl.analyzer$ns_ast.invoke(analyzer.clj:65)\r\n\tat refactor_nrepl.refactor$find_symbol_in_file.invoke(refactor.clj:97)\r\n\tat clojure.lang.AFn.applyToHelper(AFn.java:156)\r\n\tat clojure.lang.AFn.applyTo(AFn.java:144)\r\n\tat clojure.core$apply.invoke(core.clj:626)\r\n\tat clojure.core$partial$fn__4228.doInvoke(core.clj:2468)\r\n\tat clojure.lang.RestFn.invoke(RestFn.java:408)\r\n\tat clojure.core$map$fn__4245.invoke(core.clj:2559)\r\n\tat clojure.lang.LazySeq.sval(LazySeq.java:40)\r\n\tat clojure.lang.LazySeq.seq(LazySeq.java:49)\r\n\tat clojure.lang.Cons.next(Cons.java:39)\r\n\tat clojure.lang.RT.next(RT.java:598)\r\n\tat clojure.core$next.invoke(core.clj:64)\r\n\tat clojure.core$concat$cat__3957$fn__3958.invoke(core.clj:701)\r\n\tat clojure.lang.LazySeq.sval(LazySeq.java:40)\r\n\tat clojure.lang.LazySeq.seq(LazySeq.java:56)\r\n\tat clojure.lang.RT.seq(RT.java:484)\r\n\tat clojure.core$seq.invoke(core.clj:133)\r\n\tat clojure.core$map$fn__4245.invoke(core.clj:2551)\r\n\tat clojure.lang.LazySeq.sval(LazySeq.java:40)\r\n\tat clojure.lang.LazySeq.seq(LazySeq.java:49)\r\n\tat clojure.lang.Cons.next(Cons.java:39)\r\n\tat clojure.lang.RT.next(RT.java:598)\r\n\tat clojure.core$next.invoke(core.clj:64)\r\n\tat refactor_nrepl.refactor$find_symbol_reply.invoke(refactor.clj:145)\r\n\tat refactor_nrepl.refactor$wrap_refactor$fn__10247.invoke(refactor.clj:190)\r\n\tat clojure.tools.nrepl.middleware$wrap_conj_descriptor$fn__431.invoke(middleware.clj:17)\r\n\tat cider.nrepl.middleware.apropos$wrap_apropos$fn__14222.invoke(apropos.clj:102)\r\n\tat clojure.tools.nrepl.middleware$wrap_conj_descriptor$fn__431.invoke(middleware.clj:17)\r\n\tat refactor_nrepl.find_unbound$wrap_find_unbound$fn__13560.invoke(find_unbound.clj:24)\r\n\tat clojure.tools.nrepl.middleware$wrap_conj_descriptor$fn__431.invoke(middleware.clj:17)\r\n\tat cider.nrepl.middleware.classpath$wrap_classpath$fn__14249.invoke(classpath.clj:25)\r\n\tat clojure.tools.nrepl.middleware$wrap_conj_descriptor$fn__431.invoke(middleware.clj:17)\r\n\tat refactor_nrepl.artifacts$wrap_artifacts$fn__14184.invoke(artifacts.clj:126)\r\n\tat clojure.tools.nrepl.middleware$wrap_conj_descriptor$fn__431.invoke(middleware.clj:17)\r\n\tat clojure.tools.nrepl.server$handle_STAR_.invoke(server.clj:18)\r\n\tat clojure.tools.nrepl.server$handle$fn__787.invoke(server.clj:27)\r\n\tat clojure.core$binding_conveyor_fn$fn__4145.invoke(core.clj:1910)\r\n\tat clojure.lang.AFn.call(AFn.java:18)\r\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```"},"comment":{"url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/comments/77779461","html_url":"https://github.com/clojure-emacs/refactor-nrepl/issues/32#issuecomment-77779461","issue_url":"https://api.github.com/repos/clojure-emacs/refactor-nrepl/issues/32","id":77779461,"user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T22:37:29Z","updated_at":"2015-03-08T22:37:29Z","body":"#clojure-emacs"}}