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

Fix issues with running lein ring server #2

Closed
wants to merge 1 commit into from

Conversation

rynkowsg
Copy link

@rynkowsg rynkowsg commented Apr 5, 2019

Hi,

I come across your repo by accident and while checking it out I found two minor issues related to lein-ring. I noticed that you probably run the app from main and the usage of lein-ring might be obsolate here. Despite that if in any case you wanted to keep lein-ring, this PR might help you. Otherwise please decline it.


1) Compatibility issue: lein-ring and latest leiningen

```
clojure.lang.Compiler$CompilerException: Syntax error macroexpanding clojure.core/fn at (clojure/core/unify.clj:83:18).
```
`lein-ring` seems to be uncompatible with Leiningen 2.9.0 and above.

Similar issues:
* https://github.com/Azure/draft/issues/932
* https://translate.google.com/translate?hl=en&sl=zh-CN&u=https://xbuba.com/questions/54810552&prev=search

2) Incorrect lein-ring handler
lein-ring had a wrong reference, but even if it was correct it should to be a handler not a fn.
Since evaluation of app at boot doesn't seem to be harmful, I let myself to change it.
@rynkowsg rynkowsg closed this Jul 9, 2021
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

Successfully merging this pull request may close these issues.

1 participant