Skip to content
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

Specter doesn't work with Planck: Maximum call stack size exceeded #136

Open
borkdude opened this issue Aug 2, 2016 · 1 comment
Open
Labels

Comments

@borkdude
Copy link
Contributor

borkdude commented Aug 2, 2016

Requirements: most recent versions of boot and planck must be installed.

Script to run specter with Planck:

#!/usr/bin/env bash
echo "Example: (transform (s/walker number?) inc {:a {:b 2} :c 1})"

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CP_FILE=$DIR/.classpath

if [ ! -f $CP_FILE ]; then
  boot --dependencies org.clojars.micha/boot-cp \
     --dependencies com.rpl/specter:"0.11.2" \
     with-cp -w --file $CP_FILE
fi

CACHE_DIR=$DIR/.planck_cache

mkdir -p $CACHE_DIR

planck --cache=$CACHE_DIR -c `cat $CP_FILE` -e "(require '[com.rpl.specter :as s])" -e "(require-macros '[com.rpl.specter.macros :refer [select transform]])" -r

Run the script to trigger the error:

./specter-cljs
Example: (transform (walker number?) inc {:a {:b 2} :c 1})
Planck 1.15
ClojureScript 1.9.76
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
    Exit: Control+D or :cljs/quit or exit or quit
 Results: Stored in vars *1, *2, *3, an exception in *e

cljs.user=> (transform (s/walker number?) inc {:a {:b 2} :c 1})
            ⬆
Maximum call stack size exceeded. at line 1
@nathanmarz nathanmarz added the bug label Aug 2, 2016
@arichiardi
Copy link

I had an error as well but then noticed #72. I guess full bootstrap support is not there yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants