cyberland cow
cyberland cow
LTLeaning Technologies
Created by cyberland cow on 12/15/2023 in #support
r[((0 + c) | 0)] is not a function when instantiating object
same error. I binary searched starting from an original 24 elements to find the 5 cutoff
17 replies
LTLeaning Technologies
Created by cyberland cow on 12/15/2023 in #support
r[((0 + c) | 0)] is not a function when instantiating object
Thank you! I appreciate any time you all are willing to spend on this, and it doesn't surprise me that there are some dragons in the Scala collection implementations... unfortunately that's what we're stuck with for the foreseeable future. For posterity, the problem code is:
val defaults = Map[String, String](
("a" -> "a"),
("b" -> "b"),
("c" -> "c"),
("d" -> "d"),
("e" -> "e"),
)
val defaults = Map[String, String](
("a" -> "a"),
("b" -> "b"),
("c" -> "c"),
("d" -> "d"),
("e" -> "e"),
)
there seem to be no problems initializing with <5 elements.
17 replies
LTLeaning Technologies
Created by cyberland cow on 12/15/2023 in #support
r[((0 + c) | 0)] is not a function when instantiating object
Thank you for the quick fix! I can confirm that the original problem seems to be resolved, but I hit another snag not much later. I've updated that same page with the new error. Would it be better to start a new thread or un-resolve this thread?
17 replies
LTLeaning Technologies
Created by cyberland cow on 12/15/2023 in #support
r[((0 + c) | 0)] is not a function when instantiating object
It should be live here. Let me know if there's anything I should modify, thank you for your patience!
17 replies
LTLeaning Technologies
Created by cyberland cow on 12/15/2023 in #support
r[((0 + c) | 0)] is not a function when instantiating object
Is it sufficient to upload a JAR with a main method or you need a public site using CheerpJ?
17 replies
LTLeaning Technologies
Created by cyberland cow on 12/15/2023 in #support
r[((0 + c) | 0)] is not a function when instantiating object
Apologies for the delay, I believe I have significantly reduced the scope of this error. I believe I've gotten it down to a Scala-specific problem where CheerpJ fails to load something in the Scala Predef class definition. This is an implicit import in many Scala compilation units to give convenient shorthands for common container types along with many other QoL things. I've created a repo for reproduction with steps in the README. Interestingly, I only see this problem in Scala 2.12, not scala 2.13 (the README includes instructions for that too). Unfortunately I'm not yet able to discern if everything in Scala 2.13 is OK because it's a nontrivial lift to get my codebase to compile with 2.13
17 replies
LTLeaning Technologies
Created by cyberland cow on 12/15/2023 in #support
r[((0 + c) | 0)] is not a function when instantiating object
Ok, I will try to produce a minimal example, but I am currently resorting to binary-search style deleting code from the codebase, so it might take a while. Is there a debug/verbose mode I can set in CheerpJ or anything to aid in the search?
17 replies