Tcl Library Source Code

View Ticket
Login
Ticket UUID: 9a503797fa4c9ef8bddeb4f45ab55526305b6b25
Title: yaml::yaml2dict doesn't support keys with literal colons in them
Type: Bug Version: 0.4.1
Submitter: jdwk4k Created on: 2022-05-26 06:37:22
Subsystem: yaml Assigned To: nobody
Priority: 5 Medium Severity: Severe
Status: Open Last Modified: 2022-05-26 06:37:22
Resolution: None Closed By: nobody
    Closed on:
Description:
I have the following in yaml

pre_load_db_attributes:
  init_ground_nets: VSS
  init_power_nets: VDD
  message:PHYS-279: .severity Error

yaml is totally fine with it.
But when I read this fine in with yaml2dict, the message:PHYS-279 key just doesn't exist.  I don't get any error or warning, it is like the entry just isn't in the yaml.

tclsh: 36> yaml::yaml2dict -file test.yaml       
pre_load_db_attributes {init_ground_nets VSS init_power_nets VDD}

Hopefully this is an easy fix.