GithubHelp home page GithubHelp logo

cl-json's People

Contributors

agrostis avatar bobbysmith007 avatar fare avatar hankhero avatar rpgoldman avatar snunez1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cl-json's Issues

Test suite is failing, but ignored on CI

I'm a bit confused about how the test suite is supposed to work. It seems like it is executed, but the return value from fiveam is never checked. Currently 6 tests fail in the test suite on CI, but the script exits with 0:

 Did 166 checks.
    Pass: 160 (96%)
    Skip: 0 ( 0%)
    Fail: 6 ( 3%)

 Failure Details:
 --------------------------------
 JSON-BIND-IN-BIND-BUG in JSON []: 
      
RESULT2

 evaluated to 

"(0 ((ID . pingId) (NAME . ping)) NIL
            (((NAME . tableTennisGroupName) (ID . tableTennisGroupId))))"

 which is not 

STRING=

 to 

"(0 NIL NIL (NIL))"


 --------------------------------
 --------------------------------
 TEST-ENCODE-JSON-CLOS-MAX-PACKAGE in JSON []: 
      Unexpected Error: #<SB-INT:SIMPLE-REFERENCE-ERROR "~S called on ~S, which is not yet finalized." {1002A61933}>
SB-MOP:CLASS-SLOTS called on #<FLUID-CLASS JSON:FLUID-OBJECT>, which is not yet finalized.
See also:
  AMOP, Generic Function SB-MOP:CLASS-SLOTS.
 --------------------------------
 --------------------------------
 TEST-ENCODE-JSON-CLOS in JSON []: 
      Unexpected Error: #<SB-INT:SIMPLE-REFERENCE-ERROR "~S called on ~S, which is not yet finalized." {10029B0EE3}>
SB-MOP:CLASS-SLOTS called on #<FLUID-CLASS JSON:FLUID-OBJECT>, which is not yet finalized.
See also:
  AMOP, Generic Function SB-MOP:CLASS-SLOTS.
 --------------------------------
 --------------------------------
 TEST*JSON-SYMBOLS-PACKAGE* in JSON []: 
      Unexpected Error: #<SB-INT:SIMPLE-REFERENCE-ERROR "~S called on ~S, which is not yet finalized." {1002997263}>
SB-MOP:CLASS-SLOTS called on #<FLUID-CLASS JSON:FLUID-OBJECT>, which is not yet finalized.
See also:
  AMOP, Generic Function SB-MOP:CLASS-SLOTS.
 --------------------------------
 --------------------------------
 JSON-OBJECT-WITH-PROTOTYPE in JSON []: 
      Unexpected Error: #<SB-INT:SIMPLE-REFERENCE-ERROR "~S called on ~S, which is not yet finalized." {1003F6DB13}>
SB-MOP:CLASS-SLOTS called on #<FLUID-CLASS JSON:FLUID-OBJECT>, which is not yet finalized.
See also:
  AMOP, Generic Function SB-MOP:CLASS-SLOTS.
 --------------------------------
 --------------------------------
 JSON-OBJECT in JSON []: 
      Unexpected Error: #<SB-INT:SIMPLE-REFERENCE-ERROR "~S called on ~S, which is not yet finalized." {1003D7E093}>
SB-MOP:CLASS-SLOTS called on #<FLUID-CLASS JSON:FLUID-OBJECT>, which is not yet finalized.
See also:
  AMOP, Generic Function SB-MOP:CLASS-SLOTS.
 --------------------------------

; 
; compilation unit finished
;   caught 6 STYLE-WARNING conditions
Script succeeded

See e.g. the latest run.

CLOS

Hi!

The CLOS decoder seems does not works anymore, even the code in the documentation:

(json:with-decoder-simple-clos-semantics
  (let ((json:*json-symbols-package* nil))
    (let ((x (json:decode-json-from-string
               "{\"foo\": [1, 2, 3], \"bar\": true,
                 \"baz\": \"!\"}")))
      (with-slots (foo bar baz) x
        (values x foo bar baz)))))

signals an error:

SB-MOP:CLASS-SLOTS called on #<JSON:FLUID-CLASS JSON:FLUID-OBJECT>, which is not yet finalized.

Bye!
C.

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.