Fork me on GitHub
#cursive
<
2017-09-27
>
benny03:09:37

is there a way to launch a figwheel repl via lein?

stuartrexking04:09:50

@cfleming I’ve updated to the latest version of IntelliJ and I’m seeing this exception when I try to load a file in the repl https://gist.github.com/stuartrexking/405cde6dd1dd541bec61dd76fd390fa2

stuartrexking04:09:52

Invalidating the caches cleared it up.

manutter5115:09:02

I’m getting a stack overflow error in Cursive while indexing a large EDN file. Is this a known bug? (Also, have you ever tried googling for something dev-related that includes the phrase “stack overflow”? Yeesh.)

manutter5115:09:59

If I try to open the EDN file in an editor, the whole IDE locks up, have to force-quit. It’s a data dump we use as seed data for populating our dev database.

horza15:09:57

I'd try increasing Xss in idea.vmoptions

manutter5117:09:20

Ok, that did the trick, thanks @horza

cfleming18:09:54

@manutter51 Do you have a copy of the SOE around still?

cfleming18:09:18

It might be in your log file: Help-&gt;Show log in Finder/Explorer

cfleming18:09:03

@benny That’s the next large thing I’m going to work on. I’d hoped to get to it by now but other things have taken longer than I’d hoped.

manutter5118:09:28

@cfleming Yeah, it’s mostly repeating

at clojure.core$concat$cat__4217$fn__4218.invoke(core.clj:700)
	at clojure.lang.LazySeq.sval(LazySeq.java:40)
	at clojure.lang.LazySeq.seq(LazySeq.java:49)
	at clojure.lang.RT.seq(RT.java:507)
	at clojure.core$seq__4128.invoke(core.clj:137)

manutter5118:09:09

ERROR - napi.project.CacheUpdateRunner - Error while indexing
file
To reindex this file IDEA has to be restarted 
java.lang.StackOverflowError
	at clojure.lang.LazySeq.sval(LazySeq.java:40)
	at clojure.lang.LazySeq.seq(LazySeq.java:49)
	at clojure.lang.RT.seq(RT.java:507)
	at clojure.core$seq__4128.invoke(core.clj:137)
	at clojure.core$concat$cat__4217$fn__4218.invoke(core.clj:700)
etc…

manutter5118:09:49

Increasing -Xss fixed it.

cfleming18:09:17

@manutter51 What’s at the end of the stacktrace, i.e. the earlier part which actually calls concat?

manutter5119:09:31

There isn’t any, it’s just those same 5 lines ending like this:

at clojure.core$concat$cat__4217$fn__4218.invoke(core.clj:700)
	at clojure.lang.LazySeq.sval(LazySeq.java:40)
	at clojure.lang.LazySeq.seq(LazySeq.java:49)
	at clojure.lang.RT.seq(RT.java:507)
	at clojure.core$seq__4128.invoke(core.clj:137)
2017-09-27 13:10:12,066 [  24474]  ERROR - napi.project.CacheUpdateRunner - IntelliJ IDEA 2017.2.5  Build #IU-172.4343.14 
2017-09-27 13:10:12,066 [  24474]  ERROR - napi.project.CacheUpdateRunner - JDK: 1.8.0_152-release 
2017-09-27 13:10:12,066 [  24474]  ERROR - napi.project.CacheUpdateRunner - VM: OpenJDK 64-Bit Server VM 
2017-09-27 13:10:12,066 [  24474]  ERROR - napi.project.CacheUpdateRunner - Vendor: JetBrains s.r.o 
2017-09-27 13:10:12,066 [  24474]  ERROR - napi.project.CacheUpdateRunner - OS: Mac OS X 
2017-09-27 13:10:12,067 [  24475]  ERROR - napi.project.CacheUpdateRunner - Last Action:  
2017-09-27 13:10:12,117 [  24525]   INFO - .diagnostic.PerformanceWatcher - Unindexed files update took 1857ms; general responsiveness: ok; EDT responsiveness: ok 

manutter5119:09:17

Looks like 205 cycles (1025 lines divided by 5 lines per cycle)

cfleming20:09:17

@manutter51 That’s really weird - I mean, seq was called by something

cfleming20:09:56

I’ll check for uses of concat, anyway - it looks like https://stuartsierra.com/2015/04/26/clojure-donts-concat

manutter5120:09:39

My guess would be the stack trace was truncated due to length, so we never got the initial kick off

cfleming20:09:36

Yes, probably. There’s a patch in JIRA for that problem.