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

lein codox produces an error with specter if the source code contains s/END #161

Open
luminusian opened this issue Jun 7, 2017 · 4 comments

Comments

@luminusian
Copy link

redplanetlabs/specter#212 (comment)

Adding the following code produces an error when running lein codox is run.

(s/setval s/END [:a] [])
clojure.lang.ExceptionInfo: Unable to resolve var: END in this context
@weavejester
Copy link
Owner

weavejester commented Jun 7, 2017

I can't reproduce your issue. It's likely there's a problem in your codebase, as the error you're seeing is very probably from the Clojure compiler when it tries to evaluate the namespaces in your application.

@luminusian
Copy link
Author

The issue doesn’t seem to occur unless :codox {:language :clojurescript}

This is a repository that reproduces the issue.

https://github.com/luminusian/specter-codox

@luminusian
Copy link
Author

compile the project normally and see if the error occurs

The error doesn't occur.

Try adding "codox" manually as a dependency, and see if it still compiles.

It still compiles.

https://github.com/luminusian/specter-codox

@weavejester
Copy link
Owner

Looks like the cause of this is a fix for another bug: #88.

If I can find no universal resolution, I might add this as an option to the analyzer can turn the deps on or off.

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

2 participants