Fork me on GitHub
#cider
<
2019-04-24
>
Risetto08:04:07

Hey guys. Are any of you aware of how to solve this error message: "user-error: ‘autopair-newline’ requires the nREPL op "classpath" (provided by cider-nrepl)

Risetto08:04:40

I think it's related to the message I get in my repl: WARNING: CIDER requires cider-nrepl to be fully functional. Many things will not work without it

Risetto08:04:49

Currently using this setup:

[nrepl "0.6.0"]
[figwheel-sidecar "0.5.18"]
[cider/piggieback "0.4.0"]
[cider/cider-nrepl "0.21.0"]
[lein-figwheel "0.5.18"] 

plexus09:04:24

@olle142 how are you starting nREPL? if you're not using cider-jack-in then you have to make sure yourself that the cider-nrepl middleware is present

plexus09:04:17

if you're using leiningen then add [cider/cider-nrepl "0.21.1"] to the the :plugins section

jpmonettas13:04:50

hello everybody! is there a way of starting two clojurescript repls to the same project but with different builds? I'm working with a browser cljs app and a nodejs cljs server, both sources in the same project. Starting two clojure repls to the same project would also work.

dmaiocchi13:04:41

hi all, i have a noob question: i'm using cider + emacs. Sofar i have compiled the buffer with C-x C-k but in the cider-jack-in REPL, i get unable to resolve symbol: .. plus some java errors.. the code itself it is fine, but it seems to me that cider cannot load my project namespace, because it prompts user instead of the namespace.

dmaiocchi13:04:23

i have tried different projects, but i get always the same error msg, def symbol not defined, etc. anyone has a clue how i could debug it further? tia 🚀

arbscht13:04:18

could you give some more info like the full error you are seeing, and the input code? (also might help to know versions of emacs and cider you are on, just in case)

👍 4
dmaiocchi13:04:12

user> (-main)
Syntax error compiling at (clojure-noob:localhost:33929(clj)*:43:7).
Unable to resolve symbol: -main in this context

dmaiocchi13:04:30

emacs version: GNU Emacs 25.3.1 cider 21, running on linux opensuse leap15, with leininigen Leiningen 2.9.0 on Java 10.0.2 OpenJDK 64-Bit Server VM `

dmaiocchi13:04:13

and i have latest stable clojure,

arbscht13:04:44

so what does the code in the buffer look like?

arbscht13:04:02

(the one you are sending to cider with C-c C-k)

dmaiocchi13:04:14

(ns clojure-noob.core
  (:gen-class))

(defn -main
  "I don't do a whole lot ... yet."
  [& args]
  (println "Hello, World!"))
😁

arbscht13:04:48

so that looks fine

dmaiocchi13:04:55

i'm using a pretty basic, for debugging..

dmaiocchi13:04:03

yep, should work in theory

arbscht13:04:28

when you do C-c C-k it sends code to cider, but you shouldn't expect the repl to switch ns

arbscht13:04:45

you have to refer to your clojure-noob.core/-main explicitly

arbscht13:04:54

or manually switch to that ns with in-ns

dmaiocchi13:04:55

ok, i was reading this doc

arbscht13:04:28

I haven't seen that, let me check it out

dmaiocchi13:04:30

if you see the basic example there, it seems that it assumes that cider switch implicetely to namespace

dmaiocchi13:04:11

allthough the doc is deprecated in a sense that it uses old cider, now i dunno if it is up2date..

dmaiocchi13:04:07

ok indeed it works nice if i reference it with the namespace

arbscht13:04:23

I see, yes I suspect it may be the case that the default behavior changed

dmaiocchi13:04:10

yeah, thx.. i was trusting it blinding since i learned emacs like 2 days ago 😁

dmaiocchi13:04:25

is there a way to load the namespace automatically?

arbscht13:04:26

wow, enjoy the ride!

dmaiocchi13:04:44

well is kind full-mind-blowing experience emacs, i love it

dmaiocchi13:04:20

i have tried vim, and all other editos but comparing to emacs, emacs is way better 😁

arbscht13:04:54

so there's a cider fn called cider-repl-set-ns bound to C-c M-n n

arbscht13:04:31

that's not automatic but if you can handle that key chord, it could be useful

cider 4
dmaiocchi13:04:04

thx @UHBQQMPGR for allhelp was really usefull

dmaiocchi13:04:15

another thing i didn't saw

dmaiocchi13:04:43

i was thinking it was due to my gnu-emacs on linux, namely is that when i run the :cider-mode

dmaiocchi13:04:54

i don't have the GUI Bar showed as documented..

dmaiocchi13:04:25

but i'm pretty ok without it atm , i will dive more on it when i have time.. 😁

arbscht13:04:58

gui bar = file/save/etc toolbar?

dmaiocchi13:04:41

no, the cider-interaction bar

dmaiocchi13:04:34

but honestly i dunno if it is because my emacs configuration is preventing it. I see save/etc buttons

dmaiocchi14:04:00

for the moment, i'm pretty fine without it..

dmaiocchi14:04:15

i wil dive into when i'm more expirmented 😁

arbscht14:04:38

try M-x tool-bar-mode

arbscht14:04:52

oops, I mean M-x menu-bar-mode

arbscht14:04:20

just guessing it might be toggled off by default in your distro

dmaiocchi14:04:20

awesome thx worked

dmaiocchi14:04:48

thx !!, i think is my emacs conf that is disabling by default

arbscht14:04:07

I learned something too, I've never used that menu bar before

👍 4
cider 4
Risetto13:04:41

@plexus I'm starting my repl with: lein trampoline with-profile more-figwheel figwheel app test and then I try to connect to it with cider-connect-cljs

plexus11:04:22

like I said start by adding the cider-nrepl plugin to your project.clj. You can also try cider-jack-in-clj and then look at your *Messages* buffer, it will show you the command CIDER uses to start leiningen, which adds the necessary plugins

fmnoise13:04:34

hi everyone, I've just found that locals are not autocompleted when I work with CLJS so the same issue as covered here https://github.com/alexander-yakushev/compliment/issues/12 but seems that doesn't work in cljs any ideas?

fmnoise14:04:08

ah, as I see, compliment has opened PR for cljs support 😞 but maybe anyone has another ideas/tools on that

richiardiandrea14:04:55

At the moment it is just not possible I guess, nobody has put enough work in it to make it happen. Btw the code that you see in the PR is just a port from another library which does not currently support locals either unfortunately

fmnoise15:04:17

hm, which problem does it solve then?

fmnoise15:04:44

I mean I have completion for CLJS, so just locals are problem atm

fmnoise15:04:45

I didn't get into details which part of cider provides that completion, but probably not compliment as I see

fmnoise15:04:39

thanks for your work anyway, just trying to understand if that can solve my problems

richiardiandrea15:04:56

Do you mean what problem the PR solve?

richiardiandrea15:04:00

Historically cljs-tooling contained all the Cljs code but nobody was maintaining it and it was neglected. Also the api that cider-nrepl would see was not consistent. So I thought I could port the "info" part to orchard and the completion part to compliment

richiardiandrea15:04:09

I have unified the api for the info and compliment will finally be the de facto completion Clojure library

fmnoise15:04:29

ah I see, so it's basically a port of code to more proper place

fmnoise15:04:33

and some refactoring

fmnoise15:04:44

no new functionality yet

richiardiandrea15:04:09

Yes not yet, but folks like you now see it there and can hack away - visibility is also a goal

richiardiandrea15:04:23

The first enhancement is the context for the locals. Second fuzzy matching. The sky is the limit 😃

fmnoise15:04:53

sounds good :thumbsup::skin-tone-2: