Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random errors and warnings due to load-slow-deps! #219

Open
metametadata opened this issue Aug 3, 2024 · 0 comments
Open

Random errors and warnings due to load-slow-deps! #219

metametadata opened this issue Aug 3, 2024 · 0 comments

Comments

@metametadata
Copy link

metametadata commented Aug 3, 2024

I directly use rebel-readline.core/with-line-reader, rebel-readline.jline-api/safe-terminal-writer, etc. and I've observed different random exceptions and warnings logs on starting my REPL. Some examples:

  • java.lang.IllegalAccessError: whitespace? is not public

  • whitespace? does not exist

  • char is not public

  • No such var: i/inspect

  • WARNING: logs:

    WARNING: tagged-literal? already refers to: #'clojure.core/tagged-literal? in namespace: clojure.tools.reader.impl.utils, being replaced by: #'clojure.tools.reader.impl.utils/tagged-literal?
    WARNING: reader-conditional? already refers to: #'clojure.core/reader-conditional? in namespace: clojure.tools.reader.impl.utils, being replaced by: #'clojure.tools.reader.impl.utils/reader-conditional?
    ...
    

Investigating the stack traces, looks like they are caused by async require calls in rebel-utils/load-slow-deps! leading to some race condition.

My workaround was to make this helper synchronous:

(alter-var-root #'rebel-utils/load-slow-deps!
                (constantly
                  #(do
                     (require 'cljfmt.core)
                     (require 'compliment.core))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant