cursive-ide / cursive

Cursive: The IDE for beautiful Clojure code
574 stars 7 forks source link

Error connecting to Arcadia nREPL #2261

Open ro6 opened 4 years ago

ro6 commented 4 years ago

This was my second attempt after #2260. I realize it's probably a harder fix than that one, because nREPL.

Here's what I get

Connecting to remote nREPL server...
System.NullReferenceException: Object reference not set to an instance of an object
  clojure.lang.Util.NameForType (System.Type)
  clojure.lang.Namespace.importClass (System.Type)
* cursive/repl/runtime/evalloading--auto--
* cursive/repl/runtime/eval
  clojure.lang.Compiler.eval (object)
  clojure.lang.Compiler.eval (object)
  clojure.lang.Compiler.eval (object)
* clojure/core/eval
* clojure.lang.Var
* Arcadia.NRepl+EvalFn <MY-PROJECT-NAME>/Assets/Arcadia/Arcadia-1.0.14-beta/Editor/NRepl.cs (203:6)Error initialising completion
Error initialising locals clearing:
Clojure 1.10.0-master-SNAPSHOT
Error updating completions:
System.InvalidOperationException: No such var: cursive.repl.runtime/completions
  clojure.lang.Compiler.ResolveIn (clojure.lang.Namespace, clojure.lang.Symbol, System.Boolean)
  clojure.lang.Compiler.Resolve (clojure.lang.Symbol)
  clojure.lang.Compiler.AnalyzeSymbol (clojure.lang.Symbol)
  clojure.lang.Compiler.Analyze (clojure.lang.CljCompiler.Ast.ParserContext, object, System.String)

Not sure how hard it would be, but a graceful fallback without whatever features this is trying to load, where I can at least get basic form/file eval going, would be nice.

ro6 commented 4 years ago

After playing a bit more, it seems that eval is actually working, it's just that Cursive outputs

Error updating completions:
System.InvalidOperationException: No such var: cursive.repl.runtime/completions
  clojure.lang.Compiler.ResolveIn (clojure.lang.Namespace, clojure.lang.Symbol, System.Boolean)
  clojure.lang.Compiler.Resolve (clojure.lang.Symbol)
  clojure.lang.Compiler.AnalyzeSymbol (clojure.lang.Symbol)
  clojure.lang.Compiler.Analyze (clojure.lang.CljCompiler.Ast.ParserContext, object, System.String)

after each eval result. If I'm reading this right, it's Cursive choking on ClojureCLR and CLR namespaces it doesn't recognize?