Fork me on GitHub
#calva
<
2021-07-23
>
roelof10:07:10

@pez that looks very good

🙏 3
roelof15:07:39

hmm, first problems

roelof15:07:44

clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version,"0.8.3"},cider/cider-nrepl {:mvn/version,"0.26.0"}}}' -A:repl -m nrepl.cmdline --middleware "[cider.nrepl/cider-middleware]"
/bin/sh: 1: clojure: not found
Jack-in process exited. Status: 127

pez15:07:00

Do you have Clojure CLI installed?

roelof15:07:39

Do these not get installed when I open a reprl

roelof15:07:52

if not, I think I did not install them

roelof16:07:56

oke, it works now

pez16:07:54

I think I know why you would think that, but you need to install them for now.

roelof16:07:53

last question

roelof16:07:03

how do I see the failing tests

roelof16:07:40

I did crtl+enter on the ns line and on the test will fail line but no faling test to see

pez16:07:39

Either load the file or evaluate the tests form (alt+enter).

roelof16:07:36

oke, and do I also need to solve this error :

; Syntax error compiling at (src/rich4clojure/easy/problem_19.clj:20:1).
; Unable to resolve symbol: d in this context

 (__ ["b" "c" "d"]) := d)

roelof16:07:09

I think I need to use the _ function which is now failing to solve it ?

pez16:07:24

I'm not by the computer. But i think that might be a broken test. Can you paste the tests form here?

pez16:07:36

Oh, you did.

pez16:07:23

Yes, broken test. It should be "d".

roelof16:07:43

Make a issue for it

roelof16:07:04

with later maybe a PR to solve it

pez16:07:47

I think it's systematic. My translation script mangles the right side strings some times.

roelof16:07:17

oops, sounds not good

pez16:07:05

Nope. It's not. 😎

roelof16:07:34

and found another problem sorry

roelof16:07:42

(def restricted [last])

(def __
  (fn [list] (last list)))

(comment
  
  )

(tests
 (__ [1 2 3 4 5]) := 5
 (__ (quote (5 4 3))) := 3
 (__ ["b" "c" "d"]) := "d")

roelof16:07:12

gives all green where restriced do not work or gets a called

roelof16:07:13

schould I make for both a issue or do you remember those problems ?

pez16:07:52

I'm not following.

roelof16:07:37

schould I make a issue for the restrccited and "d" problems

pez16:07:01

restricted just tells you what you should not use.

pez16:07:33

See the README.md file about that.

pez16:07:15

Please file an issue about the "d" thing.

roelof16:07:28

still I wonder if there could not be a test or whatever which tests for the reisterd part

pez16:07:18

You are welcome to file that as a feature request. For that particular problem you can add a test __ :<> last.

pez16:07:50

But for other problems it is more complicated than that.

roelof17:07:25

oke, thanks, time for a very late supper/dinner

roelof17:07:02

and you accept also PR if I can solve the problem like the "d" problem ?

pez17:07:28

The "d" problem needs to either be fixed problem by problem, or in my translation scripts which are not part of the repo. But if you make a function that can take the :testsfrom the problems in the`problems.edn` file and transform to the infix tests use in Rich 4Clojure, without mangling the "d" and such, I’d be super happy, and we can find out a way to PR it.

roelof17:07:38

Do not know if I can make such a script as a beginner in clojure

pez06:07:04

Exactly. I’m thinking maybe it could be part pf deps.edn jack-in to always use deps.clj instead.