GithubHelp home page GithubHelp logo

Comments (7)

nobody-famous avatar nobody-famous commented on July 19, 2024

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.

smashedtoatoms avatar smashedtoatoms commented on July 19, 2024

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.

smashedtoatoms avatar smashedtoatoms commented on July 19, 2024

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.

nobody-famous avatar nobody-famous commented on July 19, 2024

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.

smashedtoatoms avatar smashedtoatoms commented on July 19, 2024

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.

nobody-famous avatar nobody-famous commented on July 19, 2024

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.

smashedtoatoms avatar smashedtoatoms commented on July 19, 2024

You are a golden god. Thanks so much.

from alive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.