-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Namespace Metadata Breaks Evaluation #204
Comments
Thank you for raising this! I'm investigating now, I suspect it's to do with Lua's string pattern matching system not working quite how I thought it was. Luckily this area is easy to unit test, adding your examples there now 😄 |
Okay, should be fixed on develop! Let me know if that's done the trick for you! Thank you for catching it, I just had to swap some lines around, stripping the metadata part of the ns before I try to extract other information. |
@Olical Thanks a million! 🎉 Works as expected. |
I believe this is broken when the metadata is across multiple lines. Below is the minimal number of lines I could get it to fail: (ns
^{:doc "A BDD testing framework.
asdf
asdf
asdf
asdfasdf
as
dfasdf
asdfasdfasdf
asd
as
dfasdfasdf
asdfasdfasdf
asdf
asdf
"
}
lazytest.core
(:refer-clojure :exclude [test])
(:require
[clojure.test]
[lazytest.context :as ctx]
[lazytest.malli]
[lazytest.suite :as suite]
[lazytest.test-case :as test-case])
(:import
(lazytest ExpectationFailed))) Version: conjure commit 6d2bc7f |
This is due to this limit which we could raise significantly really, maybe even just the whole file. Lines 765 to 774 in 6d2bc7f
I think I added it because it's checked on every evaluation and I didn't want to add too much pre-work to each evaluation, just in case HUGE buffers slowed down some machines. The worst case scenario that a user would notice though would be as follows:
That's actually quite unlikely... so maybe I'll default this value to |
This may be slow for some people, but I think it makes sense as the default on the whole.
Changed the default on the |
Thank you. I should have checked the configuration before posting. |
Howdy 👋
clj-style will transform metadata like this:
Into metadata like this:
The
'
version works fine with Conjure. Thequote
version does not and gives the following error if you invoke, for example,ConjureEvalRootForm
:Thanks in advance for any time you have to help!
The text was updated successfully, but these errors were encountered: