Add a Troubleshooting section
I stumbled upon a strange interaction and bug when using xforms in a [clojurescript + figwheel + emacs / cider nrepl] dev environment. Adding xforms triggers a bug with the REPL evaluation result, adding the nrepl-middleware to figwheel solved the issue (dev env was correctly working before). I submit this to keep track of the issue if other people stumble upon it in the future.
This commit is contained in:
parent
00e19651ed
commit
34427101d7
1 changed files with 24 additions and 0 deletions
24
README.md
24
README.md
|
|
@ -256,6 +256,30 @@ Evaluation count : 24 in 6 samples of 4 calls.
|
|||
* Added `x/reductions`
|
||||
* Now if the first collection expression in `x/for` is not a placeholder then `x/for` works like `x/for` but returns an eduction and performs all iterations using reduce.
|
||||
|
||||
## Troubleshooting xforms in a Clojurescript dev environment
|
||||
|
||||
If you use xforms with Clojurescript and the Emacs editor to start your figwheel REPL be sure to include the `cider.nrepl/cider-middleware` to your figwheel's nrepl-middleware.
|
||||
```
|
||||
:figwheel {...
|
||||
:nrepl-middleware [cider.nrepl/cider-middleware;;<= that middleware
|
||||
refactor-nrepl.middleware/wrap-refactor
|
||||
cemerick.piggieback/wrap-cljs-repl]
|
||||
...}
|
||||
```
|
||||
Otherwise a strange interaction occurs and every results from your REPL evaluation would be returned as a String. Eg.:
|
||||
```
|
||||
cljs.user> 1
|
||||
"1"
|
||||
cljs.user>
|
||||
```
|
||||
instead of:
|
||||
```
|
||||
cljs.user> 1
|
||||
1
|
||||
cljs.user>
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2015-2016 Christophe Grand
|
||||
|
|
|
|||
Loading…
Reference in a new issue