Comments (7)
I'll look into this when I get a chance. I live in Austin, so dealing with the Texas utility fiasco.
The error is saying the reader failed, which usually drops into the debugger. I'll need to handle the reader-error message it's sending, I've never seen that before.
It's complaining that acronym-test is undefined and that error is included in what it's trying to evaluate for some reason. The REPL prints it as
#<unbound-variable ...>
which isn't valid syntax so can't be evaluated. I need to figure out why that's being included and need to handle that message it's sending.
What's the formatting doing weird?
from alive.
Oh man, my family and I are just about to move there from Denver. It sounds like a mess. Hope you're staying warm. I am sure I did something wrong that caused that error, I just hadn't seen it not handle the swank event before. The formatting may not actually be incorrect. I think 'define-test' is a macro and it's analyzing it like a regular statement, but the original formatting has it formatted like it's a function.
Original Formatting:
(define-test empty-gives-empty
(assert-equal
""
(acronym:acronym "")))
Alive Formatting:
(define-test empty-gives-empty
(assert-equal
""
(acronym:acronym "")))
I suspect if I had written this, I'd have just accommodated the built-in formatter though and let it be:
(define-test
empty-gives-empty
(assert-equal "" (acronym:acronym "")))
That probably isn't actually an issue.
from alive.
I tried changing the tests to fiveam, and it's blowing up on those too. I'm sure I am doing something wrong, but it's not having a good time with the test macros.
from alive.
Ok, here's what seems to be going on. At least, when I'm seeing the same behavior.
It's blowing up because I use the (string ...) function to get the name of the package for in-package calls. However, that's not working when it's specified with a macro, i.e. #:acronym-test. The string function is returning the "undefined variable" error and then the extension is trying to use that error as the package name, which is wrong.
I need to figure out how to convert #:acronym-test to a string because (in-package #:acronym-test), (in-package :acronym-test), and (in-package "acronym-test") should all be equivalent. I'm thinking I may need to special case the #: macro and just strip off the leading #:.
from alive.
I swear that lisp had a way to deal with these strings that start with #:
in a special way that could be ripped off, but I don't remember what it is. I might take a stab at figuring it out this week, but don't wait on me. Thanks for the quick response.
from alive.
I pushed a new version that will hopefully work. Also fixed some formatting issues. Top level forms it now indents instead of aligns.
from alive.
You are a golden god. Thanks so much.
from alive.
Related Issues (20)
- Publish Extension also to open-vsx
- Step debugger: auto jump to source location
- Debugger: show local variable values
- "command 'alive.compileFile' not found" in version 0.3.12 HOT 2
- REPL: Output sent to the repl when it's not visible gets lost
- REPL Completion HOT 4
- Debugger: closing window should abort debugger HOT 1
- differences with the cl cookbook HOT 6
- extension starts even in non CL projects HOT 4
- minor: refresh the list of threads when aborting a debug thread HOT 1
- [feature] Auto-install quicklisp dependencies HOT 1
- usocket not found despite being loaded by quicklisp HOT 2
- [Bug] Input enters twice in REPL HOT 2
- Is there a document to show how to debug common lisp codes using this extension? HOT 3
- On Mac unable to start REPL HOT 3
- Inspector: Update UI
- Inspector: Add eval box HOT 1
- Inspector: Display CLOS objects
- Inspector: Add drill down
- Inspector: Add refresh HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alive.