-
Notifications
You must be signed in to change notification settings - Fork 19
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
error on defconstant #148
Comments
I have a bunch of bug fixes I'm working on, so I'll add this in. The main problem is that because... lisp... it's not possible to compile a file without affecting the running image. Attempting to compile the file to generate the diagnostics complains about stuff already being defined. The other annoying messages, from defpackage, defmacro, etc, are filtered out. Apparently this one is still getting through. I'll add it to the filters so that it stops complaining about it. |
That's pretty much what I was thinking. From there I went to "maybe spin up a separate REPL just for diagnotics" and then "but that would be a lot of work." |
I originally wanted to do the diagnostics by forking and doing the compile against the child process. That wasn't possible, though. SBCL only supports fork on unix and only if there's a single thread. The only thing I can think of that would actually work would be to have the main process dump its image to a file, start up another process that loads that image, and compile against that process. Doing that multiple times a second seems like a bad idea, though. :-) |
Bunch of Stack Overflow posts basically state that defconstant is broken in sbcl because of strange workarounds for undefined behavior. Recommendations are to simply not use it. Perhaps adopt a convention within your team to not change things defined in ALLCAPS. Not true immutability by a long shot, but if workarounds are required for something so basic, it's not up to Alive to fix it. Either SBCL devs need to fix it or declare that they don't care--given that the problem has existed for years. Not exactly stellar engineering practice, but--hey--they're volunteers. |
@doongjohn what's the editor font in your OP screenshot above? Thanks =) |
This runs fine when I run
sbcl --load main.cl
butAlive: Load file to REPL
does not work because of this error.The text was updated successfully, but these errors were encountered: