{"action":"created","issue":{"url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/104","labels_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/104/comments","events_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/104/events","html_url":"https://github.com/bhauman/lein-figwheel/issues/104","id":60333678,"number":104,"title":"ClassNotFound exception when running figwheel and :modules configuration is present in project.clj in another compilation target.","user":{"login":"Gonzih","id":266275,"avatar_url":"https://avatars.githubusercontent.com/u/266275?v=3","gravatar_id":"","url":"https://api.github.com/users/Gonzih","html_url":"https://github.com/Gonzih","followers_url":"https://api.github.com/users/Gonzih/followers","following_url":"https://api.github.com/users/Gonzih/following{/other_user}","gists_url":"https://api.github.com/users/Gonzih/gists{/gist_id}","starred_url":"https://api.github.com/users/Gonzih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gonzih/subscriptions","organizations_url":"https://api.github.com/users/Gonzih/orgs","repos_url":"https://api.github.com/users/Gonzih/repos","events_url":"https://api.github.com/users/Gonzih/events{/privacy}","received_events_url":"https://api.github.com/users/Gonzih/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-09T12:05:40Z","updated_at":"2015-03-09T14:41:14Z","closed_at":null,"body":"Hello,\r\n\r\nI'm running figwheel in develompent and I have dev compilation target without any optimizations enabled (:none). Works like a charm! But also I have anonther production specific compilation target with advanced compilation mode and once I add :modules configuration option to this production configuration target figwheel starts to fail in development. Here is exception stacktrace:\r\n\r\n```\r\nException in thread \"main\" java.lang.ClassNotFoundException: myapp.page-two.core, compiling:(/tmp/form-init2027442236028884163.clj:1:555)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6464)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6406)\r\n\tat clojure.lang.Compiler$SetExpr.parse(Compiler.java:3064)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6455)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6406)\r\n\tat clojure.lang.Compiler$MapExpr.parse(Compiler.java:2981)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6453)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6406)\r\n\tat clojure.lang.Compiler$MapExpr.parse(Compiler.java:2981)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6453)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6406)\r\n\tat clojure.lang.Compiler$MapExpr.parse(Compiler.java:2981)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6453)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6406)\r\n\tat clojure.lang.Compiler$MapExpr.parse(Compiler.java:2981)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6453)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6406)\r\n\tat clojure.lang.Compiler$VectorExpr.parse(Compiler.java:3126)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6447)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6406)\r\n\tat clojure.lang.Compiler$MapExpr.parse(Compiler.java:2981)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6453)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6406)\r\n\tat clojure.lang.Compiler$InvokeExpr.parse(Compiler.java:3719)\r\n\tat clojure.lang.Compiler.analyzeSeq(Compiler.java:6646)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6445)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6406)\r\n\tat clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5782)\r\n\tat clojure.lang.Compiler$LetFnExpr$Parser.parse(Compiler.java:5916)\r\n\tat clojure.lang.Compiler.analyzeSeq(Compiler.java:6644)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6445)\r\n\tat clojure.lang.Compiler.analyzeSeq(Compiler.java:6632)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6445)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6406)\r\n\tat clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5782)\r\n\tat clojure.lang.Compiler.analyzeSeq(Compiler.java:6644)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6445)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6406)\r\n\tat clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5782)\r\n\tat clojure.lang.Compiler$TryExpr$Parser.parse(Compiler.java:2191)\r\n\tat clojure.lang.Compiler.analyzeSeq(Compiler.java:6644)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6445)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6406)\r\n\tat clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5782)\r\n\tat clojure.lang.Compiler$FnMethod.parse(Compiler.java:5217)\r\n\tat clojure.lang.Compiler$FnExpr.parse(Compiler.java:3846)\r\n\tat clojure.lang.Compiler.analyzeSeq(Compiler.java:6642)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6445)\r\n\tat clojure.lang.Compiler.eval(Compiler.java:6700)\r\n\tat clojure.lang.Compiler.eval(Compiler.java:6693)\r\n\tat clojure.lang.Compiler.load(Compiler.java:7130)\r\n\tat clojure.lang.Compiler.loadFile(Compiler.java:7086)\r\n\tat clojure.main$load_script.invoke(main.clj:274)\r\n\tat clojure.main$init_opt.invoke(main.clj:279)\r\n\tat clojure.main$initialize.invoke(main.clj:307)\r\n\tat clojure.main$null_opt.invoke(main.clj:342)\r\n\tat clojure.main$main.doInvoke(main.clj:420)\r\n\tat clojure.lang.RestFn.invoke(RestFn.java:421)\r\n\tat clojure.lang.Var.invoke(Var.java:383)\r\n\tat clojure.lang.AFn.applyToHelper(AFn.java:156)\r\n\tat clojure.lang.Var.applyTo(Var.java:700)\r\n\tat clojure.main.main(main.java:37)\r\nCaused by: java.lang.ClassNotFoundException: myapp.page-two.core\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:372)\r\n\tat java.net.URLClassLoader$1.run(URLClassLoader.java:361)\r\n\tat java.security.AccessController.doPrivileged(Native Method)\r\n\tat java.net.URLClassLoader.findClass(URLClassLoader.java:360)\r\n\tat clojure.lang.DynamicClassLoader.findClass(DynamicClassLoader.java:61)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:424)\r\n\tat java.lang.ClassLoader.loadClass(ClassLoader.java:357)\r\n\tat java.lang.Class.forName0(Native Method)\r\n\tat java.lang.Class.forName(Class.java:344)\r\n\tat clojure.lang.RT.classForName(RT.java:2065)\r\n\tat clojure.lang.Compiler.resolveIn(Compiler.java:6921)\r\n\tat clojure.lang.Compiler.resolve(Compiler.java:6884)\r\n\tat clojure.lang.Compiler.analyzeSymbol(Compiler.java:6845)\r\n\tat clojure.lang.Compiler.analyze(Compiler.java:6427)\r\n\t... 61 more\r\n```\r\n\r\nMy directories structure looks like that:\r\n\r\n```\r\nsrc/\r\n└── myapp\r\n    ├── core.cljs\r\n    ├── page_one\r\n    │   ├── core.cljs\r\n    ├── page_two\r\n    │   └── core.cljs\r\ndev_src/\r\n└── myapp\r\n    └── dev.cljs\r\n```\r\n\r\nand here is my dev ns:\r\n\r\n```clojure\r\n(ns ^:figwheel-always myapp.dev\r\n  (:require\r\n            [myapp.page-one.core]\r\n            [myapp.page-two.core]\r\n            [figwheel.client :as fw :include-macros true]))\r\n\r\n(fw/watch-and-reload\r\n  :websocket-url   \"ws://localhost:3449/figwheel-ws\"\r\n  :jsload-callback (fn [] (print \"reloaded\")))\r\n```\r\n\r\nCommenting out :modules configuration solves this issue in development. I have no idea where to look further, any tips are welcome! Thanks!"},"comment":{"url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/comments/77865501","html_url":"https://github.com/bhauman/lein-figwheel/issues/104#issuecomment-77865501","issue_url":"https://api.github.com/repos/bhauman/lein-figwheel/issues/104","id":77865501,"user":{"login":"bhauman","id":2624,"avatar_url":"https://avatars.githubusercontent.com/u/2624?v=3","gravatar_id":"","url":"https://api.github.com/users/bhauman","html_url":"https://github.com/bhauman","followers_url":"https://api.github.com/users/bhauman/followers","following_url":"https://api.github.com/users/bhauman/following{/other_user}","gists_url":"https://api.github.com/users/bhauman/gists{/gist_id}","starred_url":"https://api.github.com/users/bhauman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhauman/subscriptions","organizations_url":"https://api.github.com/users/bhauman/orgs","repos_url":"https://api.github.com/users/bhauman/repos","events_url":"https://api.github.com/users/bhauman/events{/privacy}","received_events_url":"https://api.github.com/users/bhauman/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T14:41:14Z","updated_at":"2015-03-09T14:41:14Z","body":"Does `lein cljsbuild auto` work for your dev build?\r\n\r\npaging @swannodette"}}