cepl
cepl copied to clipboard
`v!` is undefined
I'm trying to run the examples from either the example repo or the docs/
dir here, but in either case I run into problems with v!
not being defined. Browsing through the git history it seems that is has been (re)moved? Also, grepping through this repo I find plenty of usages of it, but no definition.
Any help would be appreciated!
I think it is now separate library , if I remember correctly it is https://github.com/cbaggers/rtg-math .
Nice! Thanks!
Maybe there should be an issue for updating the docs?
Had the same issue when I copied the code in "cepl/docs/001 - Into the code.md" to the CEPL and executed it. Got fixed when I created a CEPL project (following the README) and recopied the code into the REPL and executed again. Not sure what that did but it must have made the necessary library available...
I got tripped up here again, and this time I know what solved the issue. The test code in "cepl/docs/001 - Into the code.md" starts with
(in-package :cepl)
, but you want to ignore that. So copy paste everything else into the REPL and run it, it should work fine.
The issue was that, as the people above mentioned, certain parts of the code became separate libraries, so if you run the code while inside just :cepl, it'll fail. So you need to create a project using (cepl:make-project "project_name")
and then use that project, with
(ql:quickload :project_name)
(in-package :project_name)
just like the README says.
I think I got tripped up because I had no idea how projects and dependencies were managed in CL beforehand. If anyone's been tripped up similarly, this video by Baggers was really helpful for my understanding:
https://www.youtube.com/watch?v=SPgjgybGb5o&ab_channel=Baggers
hope this helps someone out there :)