Fork me on GitHub
#cider
<
2019-07-11
>
oskarkv05:07:41

Hm, requiring specter breaks dynamic font locking for me. Look at this https://i.imgur.com/1aW4sXr.png 😕

oskarkv05:07:06

Hm, no, not specter maybe, but something strange is going on

oskarkv05:07:24

I removed all the code from the file, just keeping one call to a function in oskarkv.utils to see if dynamic font locking works, then I tried removing a bunch of namespaces from the (:require ...) declarations. If I remove any one of re-frame, specter or clojure.pprint, dynamic font locking starts working, but not when removing the others.

oskarkv06:07:46

My best guess as to what is going on is that it just becomes too much somehow, with many required namespaces. I checked with edebug in cider-refresh-dynamic-font-lock and it doesn't seem like anything strange is happening. But of course the values of for example cider--dynamic-font-lock-keywords are so big that it's hard to check what's going on exactly. Or maybe I should check in some other function instead.

danielgrosse07:07:07

Hello I have a newbie question for Jackin to cljs. I checked out the flappy bird repo with figwheel main, but cannot get the connection to the CLJS REPL right. When I start the Jackin command, it asks the usual questions and I choose lein -> fighweel-main -> :dev The log outputs the connection to localhost:63044 is established and the websites opens in the browser. But when I switch to the REPL from the core namespace, it tells me, that no cljs REPL for current session exists. Is there a fool proof example I could test on?

jr0cket10:07:13

https://github.com/bhauman/flappy-bird-demo uses the classic figwheel https://github.com/bhauman/flappy-bird-demo-new uses newer figwheel-main Make sure you use the right one they can’t run each other’s project without changing the project configuration and dependencies

anantpaatra18:07:34

When it asks for the build name, try it without the colon. dev instead of :dev.

oskarkv07:07:23

@danielgrosse https://github.com/oskarkv/cljsissues there is a small project that works for me

danielgrosse07:07:11

Thanks I'll try it

viebel07:07:36

Trying to install cider and I get this annoying error:

Error: Cannot open load file: No such file or directory, sesman-browser
What should I do?

manuel07:07:11

How are you installing it?

viebel07:07:47

I had a old version of cider

viebel07:07:12

M-x package-delete <RET> cider <RET>
and then
M-x package-install <RET> cider <RET>

manuel07:07:43

Are you sure package-delete worked fine? If you have some packages depending on cider (e.g., clj-refactor), I don't think package.el will let you completely remove cider.

viebel07:07:24

I also removed clj-refactor

viebel07:07:35

How can I check that the package-delete worked fine

manuel07:07:20

you could inspect the .emacs.d/elpa directory and see if cider and any of the packages depending on it (see "Needed by" here: https://melpa.org/#/cider) are still there.

viebel07:07:26

Still there

viebel07:07:41

it’s removed

viebel07:07:50

no cider folder

viebel07:07:17

and when I run M-x package-install <RET> cider <RET> I see the error

Error: Cannot open load file: No such file or directory, sesman-browser

manuel07:07:27

ok, then try refreshing the package archives with M-x package-list-packages before installing cider.

manuel07:07:02

sorry, M-x package-refresh-contents

manuel07:07:26

and then M-x package-install cider

viebel07:07:09

But still the same errror when installing cider

viebel07:07:31

And now I have this folder: /.emacs.d/elpa/cider-20190708.1036

manuel07:07:07

that's what I have too

manuel07:07:20

but I don't see the error on installation

manuel07:07:39

could you try opening a Clojure project and see if jacking-in works?

viebel07:07:16

When I run cider-jack-in I get the same error

manuel07:07:27

I'm a bit lost here, sorry. Can you try with a clean .emacs.d? (backing up your original one, of course). The steps on the CIDER documentation always worked for me, so there is something else at play here.

manuel07:07:10

OK, so there is something messy in your original configuration. 🙂

manuel07:07:37

sesman-browser comes in with sesman, which is a cider dependency that gets automatically installed when you install cider from MELPA. So it has to be there after the installation, that's why I don't understand the error you get.

viebel08:07:16

Is there a way to store in a file the list of packages that I want to be installed?

jr0cket10:07:14

You could just use Spacemacs. It uses layers to define what packages are needed for a major mode, along with any configuration http://spacemacs.org/ https://practicalli.github.io/spacemacs/

viebel08:07:02

Thanks for your help @manuel

manuel08:07:26

no problem