Ticket #1624 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

could not determine a constructor for the tag tag:yaml.org,2002:merge

Reported by: baoti Owned by: esilkensen
Priority: major Milestone:
Component: esilkensen/yaml.plt Keywords:
Cc: Version: (2 1)
Racket Version:

Description

> (string->yaml "
---
- step:  &id001
    instrument:      Lasik 2000
    pulseEnergy:     5.4
    pulseDuration:   12
    repetition:      1000
    spotSize:        1mm

- step:
     <<: *id001
     spotSize:       2mm  # kkdsfk

- step:
     <<: *id001
     pulseEnergy:    500.0   
     alert: >        
           warn patient of 
           audible pop
")
string:10:5: could not determine a constructor for the tag tag:yaml.org,2002:merge
> 

Change History

Changed 10 years ago by esilkensen

  • status changed from new to closed
  • resolution set to fixed

Fix pushed to github.

> (string->yaml "
  ---
  - step:  &id001
      instrument:      Lasik 2000
      pulseEnergy:     5.4
      pulseDuration:   12
      repetition:      1000
      spotSize:        1mm
      
  - step:
      <<: *id001
      spotSize:        2mm  # kkdsfk
          
  - step:
      <<: *id001
      pulseEnergy:     500.0
      alert: >
            warn patient of
            audible pop
  ")
'(#hash(("step"
         .
         #hash(("spotSize" . "1mm")
               ("pulseDuration" . 12)
               ("pulseEnergy" . 5.4)
               ("instrument" . "Lasik 2000")
               ("repetition" . 1000))))
  #hash(("step"
         .
         #hash(("spotSize" . "2mm")
               ("pulseDuration" . 12)
               ("pulseEnergy" . 5.4)
               ("instrument" . "Lasik 2000")
               ("repetition" . 1000))))
  #hash(("step"
         .
         #hash(("spotSize" . "1mm")
               ("pulseDuration" . 12)
               ("pulseEnergy" . 500.0)
               ("instrument" . "Lasik 2000")
               ("repetition" . 1000)
               ("alert" . "warn patient of audible pop\n")))))
Note: See TracTickets for help on using tickets.