This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-06
Channels
- # announcements (2)
- # architecture (2)
- # aws (18)
- # babashka (7)
- # beginners (149)
- # bristol-clojurians (4)
- # calva (11)
- # chlorine-clover (1)
- # cider (8)
- # clj-kondo (2)
- # cljdoc (2)
- # cljsrn (2)
- # clojure (186)
- # clojure-canada (3)
- # clojure-europe (3)
- # clojure-gamedev (5)
- # clojure-italy (1)
- # clojure-nl (13)
- # clojure-norway (4)
- # clojure-spec (25)
- # clojure-uk (32)
- # clojurescript (75)
- # core-async (2)
- # cursive (16)
- # data-science (3)
- # datomic (20)
- # docker (1)
- # emacs (26)
- # fulcro (7)
- # graphql (1)
- # incanter (1)
- # leiningen (1)
- # luminus (7)
- # malli (7)
- # mount (11)
- # off-topic (19)
- # pathom (15)
- # re-frame (9)
- # reagent (9)
- # remote-jobs (4)
- # ring-swagger (4)
- # shadow-cljs (63)
- # spacemacs (11)
- # sql (2)
- # vscode (7)
@pez is there something i can replicate locally to experience the "pain" of 10K chars with calva? is it just a matter of getting calva running and getting back a large result? how about just viewing larger clojure files? i typically test with clojure.core as that is > 250K (when i feel like real pain i go for clojurescript's core 🙂 )
You can take something like clj or cljs.core and replace all newlines with space. But that will get REALLY painful so taking something smaller is to recommend.
@pez i did the following:
* removed comments from clj's core.clj
* replaced newlines with spaces
* configured settings to include: "editor.maxTokenizationLineLength": 1000000,
* closed the file
* restarted
* opened the file
it took may be around 2 secs, but i got a result that looked fine. does the duration sound close to what you experience?
(fwiw, the max col was a bit over 260,000.)
my impression is that there aren't really that many clojure source files that are that big (though ofc that's a guess)
i pulled down a relatively recent copy of the latest releases of things on clojars so i suppose i could go over all of the contained source files to find out more specifics regarding typical clojure source file sizes...
The tokenization for the syntax highlight grammar is not the problem. It is Calvas tokenization for structural editing that can't cope with those long lines. So if you open a regular clojure file first. Then open that 260K long line file you cooked, you should note that you can't delete or do any other structural editing in the regular clojure file for a VERY long time. Minutes, I think.