Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro ao chamar lein repl

error {

:cause Unable to resolve symbol: jogo in this context :via [{:type clojure.lang.Compiler$CompilerException :message java.lang.RuntimeException: Unable to resolve symbol: jogo in this context, compiling:(forca/core.clj:23:9) :at [clojure.lang.Compiler analyze Compiler.java 6688]} {:type java.lang.RuntimeException :message Unable to resolve symbol: jogo in this context :at [clojure.lang.Util runtimeException Util.java 221]}] :trace [[clojure.lang.Util runtimeException Util.java 221] [clojure.lang.Compiler resolveIn Compiler.java 7164] [clojure.lang.Compiler resolve Compiler.java 7108] [clojure.lang.Compiler analyzeSymbol Compiler.java 7069] [clojure.lang.Compiler analyze Compiler.java 6648] [clojure.lang.Compiler analyze Compiler.java 6625] [clojure.lang.Compiler$InvokeExpr parse Compiler.java 3766] [clojure.lang.Compiler analyzeSeq Compiler.java 6870] [clojure.lang.Compiler analyze Compiler.java 6669] [clojure.lang.Compiler analyze Compiler.java 6625] [clojure.lang.Compiler$IfExpr$Parser parse Compiler.java 2797] [clojure.lang.Compiler analyzeSeq Compiler.java 6868] [clojure.lang.Compiler analyze Compiler.java 6669] [clojure.lang.Compiler analyze Compiler.java 6625] [clojure.lang.Compiler$BodyExpr$Parser parse Compiler.java 6001] [clojure.lang.Compiler$FnMethod parse Compiler.java 5380] [clojure.lang.Compiler$FnExpr parse Compiler.java 3972] [clojure.lang.Compiler analyzeSeq Compiler.java 6866] [clojure.lang.Compiler analyze Compiler.java 6669] [clojure.lang.Compiler analyzeSeq Compiler.java 6856] [clojure.lang.Compiler analyze Compiler.java 6669] [clojure.lang.Compiler access$300 Compiler.java 38] [clojure.lang.Compiler$DefExpr$Parser parse Compiler.java 589] [clojure.lang.Compiler analyzeSeq Compiler.java 6868] [clojure.lang.Compiler analyze Compiler.java 6669] [clojure.lang.Compiler analyze Compiler.java 6625] [clojure.lang.Compiler eval Compiler.java 6931] [clojure.lang.Compiler load Compiler.java 7379] [clojure.lang.RT loadResourceScript RT.java 372] [clojure.lang.RT loadResourceScript RT.java 363] [clojure.lang.RT load RT.java 453] [clojure.lang.RT load RT.java 419] [clojure.core$load$fn5677 invoke core.clj 5893] [clojure.core$load invokeStatic core.clj 5892] [clojure.core$load doInvoke core.clj 5876] [clojure.lang.RestFn invoke RestFn.java 408] [clojure.core$load_one invokeStatic core.clj 5697] [clojure.core$load_one invoke core.clj 5692] [clojure.core$load_lib$fn5626 invoke core.clj 5737] [clojure.core$load_lib invokeStatic core.clj 5736] [clojure.core$load_lib doInvoke core.clj 5717] [clojure.lang.RestFn applyTo RestFn.java 142] [clojure.core$apply invokeStatic core.clj 648] [clojure.core$load_libs invokeStatic core.clj 5774] [clojure.core$load_libs doInvoke core.clj 5758] [clojure.lang.RestFn applyTo RestFn.java 137] [clojure.core$apply invokeStatic core.clj 648] [clojure.core$require invokeStatic core.clj 5796] [clojure.core$require doInvoke core.clj 5796] [clojure.lang.RestFn invoke RestFn.java 408] [user$eval5 invokeStatic form-init2129265895604290920.clj 1] [user$eval5 invoke form-init2129265895604290920.clj 1] [clojure.lang.Compiler eval Compiler.java 6927] [clojure.lang.Compiler eval Compiler.java 6916] [clojure.lang.Compiler eval Compiler.java 6916] [clojure.lang.Compiler load Compiler.java 7379] [clojure.lang.Compiler loadFile Compiler.java 7317] [clojure.main$load_script invokeStatic main.clj 275] [clojure.main$init_opt invokeStatic main.clj 277] [clojure.main$init_opt invoke main.clj 277] [clojure.main$initialize invokeStatic main.clj 308] [clojure.main$null_opt invokeStatic main.clj 342] [clojure.main$null_opt invoke main.clj 339] [clojure.main$main invokeStatic main.clj 421] [clojure.main$main doInvoke main.clj 384] [clojure.lang.RestFn invoke RestFn.java 421] [clojure.lang.Var invoke Var.java 383] [clojure.lang.AFn applyToHelper AFn.java 156] [clojure.lang.Var applyTo Var.java 700] [clojure.main main main.java 37]]} nREPL server started on port 58642 on host 127.0.0.1 - nrepl://127.0.0.1:58642 REPL-y 0.3.7, nREPL 0.2.12 Clojure 1.8.0 Java HotSpot(TM) 64-Bit Server VM 9.0.1+11 Docs: (doc function-name-here) (find-doc "part-of-name-here") Source: (source function-name-here) Javadoc: (javadoc java-object-or-class-here) Exit: Control+D or (exit) or (quit) Results: Stored in vars 1, 2, 3, an exception in e

1 resposta
solução!

Lí outras postagens e encontrei um outro aluno que resolveu da seguinte maneira:

// Colocando a linha (declare....chute) logo abaixo

(ns forca.core
  (:gen-class))

(declare jogo avalia-chute)