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

Use Clojure resolve to resolve symbols in clj #92

Merged
merged 3 commits into from
Feb 10, 2023

Conversation

chrisetheridge
Copy link

This fixes #90

@chrisetheridge chrisetheridge changed the title Use tools.analyzer to resolve symbols in clj Use Clojure resolve to resolve symbols in clj Feb 9, 2023
(assoc v :source %)))))]
(let [resolve-fn (if (uix.lib/cljs-env? env)
ana/resolve-var
resolve)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be good to add a basic test for the linter running on JVM, wdyt?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah nice idea. Is it fine if the failing cases just crashes the tests? There's no is-not-thrown? in Clojure test, and it felt quite heavy adding it just for this case

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since all linters are throwing, it would be actually great to have such utility! We'll use for other tests as well

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay cool, I will add it!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are here a3da578

@roman01la roman01la merged commit 0cb6bec into pitch-io:master Feb 10, 2023
@roman01la
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Linting breaks when using subscribe named function call in defui
2 participants