Fork me on GitHub
#datahike
<
2023-11-06
>
silian18:11:30

@whilo When newly deploying to heroku with 0.6.1553, app crashing with error:

... Syntax error (IllegalArgumentException) compiling . at (datahike/array.cljc:14:30).
... No matching method compare found taking 2 args for class java.util.Arrays
Here is github link to line referenced in the error log: https://github.com/replikativ/datahike/blob/166cdbbb7031fa03e619091fb7a99c20cd550ec3/src/datahike/array.cljc#L14

1
favila18:11:02

that method was added by jdk version 9; you probably have 8 running in that environment

silian18:11:58

Thank you for pointing that out. You're right, the heroku default is OpenJDK 8.

whilo18:11:35

Interesting, if this is the case then our Java 8 test fails here https://github.com/replikativ/datahike/blob/166cdbbb7031fa03e619091fb7a99c20cd550ec3/src/datahike/array.cljc#L18, could you check which version (Integer/parseInt (subs (System/getProperty "java.specification.version") 2)) returns?

silian18:11:02

I don't know how to do this on heroku but this is a good skill to learn so I will learn how to do it now 😁

silian18:11:39

(Sorry, I wish I could display with a Slack badge how novice I am!)

whilo18:11:14

with clojure it is always nice to figure out how to start a REPL and connect to it

💙 1
whilo18:11:21

not sure how easy that is on heroku

whilo18:11:52

don't worry about being novice. the beginners mind is the most flexible and i am also still a novice in many things i care about

silian19:11:30

Hmm, unfortunately I can't get the app to start. I am getting:

...Execution error (ExceptionInfo) at datahike.connector/deref-conn (connector.cljc:58).
...Connection has been released.

silian19:11:58

Locally (after a restart) I am now getting:

; Execution error (ExceptionInfo) at datahike.connector/ensure-stored-config-consistency (connector.cljc:127).
; Configuration does not match stored configuration.

silian19:11:32

I am reading alekcz's comment from yesterday. I have two stores in my app: one named cfg, the other local-cfg and just comment one or the other out before deploying. I assume this is related to Issue #654?

whilo19:11:57

Probably.

whilo19:11:06

Can you unify the config somehow for the time being?

1