You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AttributeError: 'Var' object has no attribute 'set_root'
To reproduce
Open the REPL, and try to intern a symbol:
basilisp.user=> (intern 'basilisp/user 'x "Foobar")
Traceback (most recent call last):
File "C:\src\basilisp\src\basilisp\cli.py", line 306, in repl
result = eval_str(lsrc, ctx, ns, eof)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\src\basilisp\src\basilisp\cli.py", line 52, in eval_str
last = compiler.compile_and_exec_form(form, ctx, ns)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\src\basilisp\src\basilisp\lang\compiler\__init__.py", line 165, in compile_and_exec_form
return getattr(ns.module, final_wrapped_name)()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<REPL Input>", line 1, in __lisp_expr___5878
File "C:\src\basilisp\src\basilisp\core.lpy", line 4531, in intern
(defninternFile"C:\src\basilisp\src\basilisp\core.lpy", line4542, inintern__arity3
(.internns v))))
AttributeError: 'Var' object has no attribute 'set_root'
Patch to follow.
The text was updated successfully, but these errors were encountered:
ikappaki
changed the title
interrn throws exception when usedintern throws exception when used
Dec 1, 2023
Hi,
could you please review patch to fix `intern`. It addresses #724.
It was using var methods such as `.set-root` that don't exist.
Tests included.
Thanks
---------
Co-authored-by: ikappaki <[email protected]>
Hi,
basilisp.core/intern
throws an error when used:To reproduce
Patch to follow.
The text was updated successfully, but these errors were encountered: