This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-09
Channels
- # announcements (3)
- # babashka (1)
- # beginners (66)
- # clj-kondo (2)
- # cljdoc (46)
- # cljs-dev (7)
- # clojure (16)
- # clojure-australia (2)
- # clojure-china (1)
- # clojure-europe (3)
- # clojure-hk (1)
- # clojure-japan (1)
- # clojure-korea (1)
- # clojure-my (1)
- # clojure-sg (1)
- # clojure-taiwan (1)
- # clojurescript (4)
- # community-development (53)
- # conjure (6)
- # css (7)
- # cursive (6)
- # datascript (1)
- # datomic (5)
- # exercism (5)
- # graalvm (12)
- # helix (8)
- # jobs-rus (1)
- # kaocha (1)
- # lsp (19)
- # nrepl (1)
- # overtone (2)
- # pedestal (1)
- # polylith (2)
- # portal (2)
- # react (25)
- # reagent (1)
- # shadow-cljs (7)
- # spacemacs (8)
- # vim (9)
Anyone know what could be causing this error when I connect to the nREPL and execute the Load file in REPL
command? I have Reagent and React + React DOM installed properly (can Ctrl+Click to drill into each), and it was compiling properly previously. The code works in-browser FWIW:
Syntax error (FileNotFoundException) compiling at (src/foo.app.cljs:1:1).
Could not locate reagent/dom__init.class, reagent/dom.clj or reagent/dom.cljc on classpath.
Code:
(ns
(:require [reagent.core :as r]
[reagent.dom :as rd]))
Sounds like you are missing piggieback / did not start figwheel/whatnot properly. That is Cursive/nrepl is in JVM-mode, and not ClojureScript/browser land...
Refactor thought. It would be nice to have an IntelliJ action for transforming the selection by passing it to a random clojure fn. (heh, probably the origin of emacs right there!). Needs to handle multicursor to be transformative for me. Examples I'd use it for today: • make a statement one line (replace \s+ with " ") • call "name" on a keyword to use the name for a def statement (avoids differences between :this/one and ::two)
Part of why I use emacs is precisely for this kind of thing. Well, that, and structural editing with Symex, Avy, custom jump-list functionality, magit, (Hmm, this list is getting long), etc. However, there are some times where neither lsp or cider can help you much. IE. Being able to set a break point in some lib's code, or pause on exception. That is where Cursive has been invaluable to me. Also, I'm still pretty new to Emacs, so sometimes if I can't figure something out in Emacs and can't justify the time I would need to figure it out, it's Cursive with it's intuitive UX to the rescue.
Today I use the string manipulation plugin heavily. With this I'd have a non restrictive alternative...
Perhaps it could grow to allow a preconfigured list.