Fork me on GitHub
#vim
<
2019-01-31
>
zyxmn19:01:35

Has anyone gone through this guide before: https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl and able to piggieback to cljs repl via vim-fireplace with no issues?

Jan K20:01:58

@zyxmndaleyjes yes I have

zyxmn20:01:12

Awesome . So there is hope ! I am having trouble with requiring all the namespaces inside the cljs-repl . I have namespaces that are in directories other than the src directory . The problem I face is similar to this issue posted https://github.com/tpope/vim-fireplace/issues/303. Are all your namespace in one folder like 'src' for example . Also do you mention it in the project.clj file under dev profile or is it in the fig-config for start-figwheel .

Jan K20:01:56

I use two directories for sources. I set my :source-paths for the cljs build in project.clj under :cljsbuild -> :builds-> [my build] -> :source-paths

Jan K20:01:50

I start figwheel like this, so I don't repeat anything in fig-config:

(figwheel-sidecar.repl-api/start-figwheel!
    {:builds (figwheel-sidecar.config/get-project-builds)
     :builds-to-start ["my-build"] ; defined in project.clj
     :wait-time-ms 300}))

zyxmn20:01:32

Sweet ! I am gonna try that approach. I am at my wit's end trying to get it working .

zyxmn20:01:44

Thanks a lot @jkr.sw

Jan K20:01:09

No problem