This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-10
Channels
- # arachne (2)
- # beginners (5)
- # boot (6)
- # cider (3)
- # cljsrn (2)
- # clojure (34)
- # clojure-brasil (1)
- # clojure-poland (1)
- # clojure-spec (52)
- # clojure-sweden (1)
- # clojurescript (17)
- # datomic (14)
- # leiningen (3)
- # luminus (2)
- # om (85)
- # proton (89)
- # protorepl (1)
- # re-frame (1)
- # reagent (8)
- # ring-swagger (1)
- # spacemacs (2)
- # yada (6)
Why is proton so slow to start?
it makes atom's startup slowwwwwwwwwwwwww
@robbyoconnor: it does?
Has always been
I seem to only be comfortable in emacs
Hey @dvcrn, I’m running build/dev-repl
but keep getting Uncaught Error: Namespace "cljs.repl" already declared.
when an atom instance connects; is this something you’ve seen before?
this commit should have fixed it - https://github.com/dvcrn/proton/commit/31fd64025b554dbe04cc18af4e67bc586ef9d151
ping @thheller as well. Any idea how we can get rid of Uncaught Error: Namespace "cljs.repl" already declared.
once and for all?
@dvcrn am I right in thinking that error will prevent the freshly compiled js from being loaded?
@dvcrn @tgg the conflict should have been fixed for proton itself. If there are however multiple different cljs-based plugins being installed are bets are off
[36mCommunity Packages (52)[39m /Users/timgreene/.atom/packages
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── blame
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── git-history
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
└── (empty)
ag .cljs -l | grep -oP "^.*?/" | uniq
file-icons/
Parinfer/
proto-repl/
release-notes/
vim-mode-plus/
this was the stack trace btw:
Error: Namespace "cljs.repl" already declared.
at Error (native)
at Object.goog.provide (/Users/timgreene/.atom/packages/proto-repl/lib/proto_repl/goog/base.js:273:13)
at file:///Users/timgreene/Dropbox/Workspaces/github.com/proton/plugin/lib/cljs-runtime/cljs/repl.js?r=0.4816631136265521:1:6
clojure.lang.ExceptionInfo: NS:proton.core has duplicate require/use for clojure.string at line 1 proton/core.cljs
the issue is that the main plugin.js file sets up global.PROTON
to use are the environment
that is why the Uncaught ReferenceError: goog is not defined
when loading the cljs/repl.js
it works in the proton.js
since all files are in there and no extra files are loaded
var cljs = goog.getObjectByName('cljs');
cljs.core = goog.getObjectByName('cljs.core');
cljs.core.async = goog.getObjectByName('cljs.core.async');
Just for posterity I added:
var goog = global.PROTON.goog;
var cljs = goog.getObjectByName('cljs');
var proton = goog.getObjectByName('proton');
to the top of proton/plugin/lib/cljs-runtime/cljs/core/repl.js
as a workaround