New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial on usage with shadow-cljs #2
Comments
Agree for shadow-cljs. Although I use it with emacs Cider, but it failed last time I tried it. |
Support for shadow-cljs is now implemented. Since suitable is part of CIDER 0.22.0 it's enough to "jack-in" - completions are then computed with suitable and cljs-tooling. I leave this open until I have time to update the README and make a little demo video. |
What about just connect to shadow-cljs, through cider-connect-cljs? |
Yep, that should work as well. There is no setup code needed, everything will just be dealt with when the editor sends an nrepl completion message. The only reason why shadow-cljs needed special handling at all is that the internals for accessing the cljs repl and compilation environment it different. |
hum... I could not make it work, unfortunately... I tried
Set my cursor just after
By the way, to make it work with |
Thanks for the report!
You mean when starting the repl not with cider but with Regarding the bug, can you please share your setup steps? Thanks! |
Dear @rksm,
This is exactly what I meant.
Exactly my set up. I choose |
So, how do you use suitable with shadow-cljs? I tried
but I doesn't appear to do anything. EDIT: nvm, apparently it works in CIDER but not in Calva. |
Sorry, for Calva I have no clue, you would need to get in touch with @PEZ For cider I just successfully tried the following steps:
{:source-paths
["src/dev"
"src/main"
"src/test"]
:dev-http {8080 "public"}
:dependencies
[[cider/cider-nrepl "RELEASE"]]
:builds
{:frontend
{:target :browser
:modules {:main {:init-fn foo.main/init}}
}}}
(ns foo.main)
(defn init []
(println "Hello World"))
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>fooo</title>
</head>
<body>
<div id="root">hello</div>
<script src="/js/main.js"></script>
</body>
</html>
output
->
Instead of running a repl manually you can also use |
Closing this now, should there be other issues please reopen or file a new issue. |
It will be nice to be able to use with shadow-cljs.
The text was updated successfully, but these errors were encountered: