| Ticket UUID: | 299cf8e367d0aed4a1ad9559d619cea5f85a4c95 | |||
| Title: | yaml can't parse some files properly | |||
| Type: | Bug | Version: | ||
| Submitter: | anonymous | Created on: | 2013-11-03 05:02:34 | |
| Subsystem: | yaml | Assigned To: | aku | |
| Priority: | 4 | Severity: | Important | |
| Status: | Open | Last Modified: | 2015-06-02 00:24:05 | |
| Resolution: | None | Closed By: | nobody | |
| Closed on: | ||||
| Description: |
1. Wrong output set d [yaml::yaml2dict .....] puts $d and you see how strange the output is... # the file: http://slexy.org/view/s21BwGvY4m 2. Fails yaml fails to parse http://slexy.org/view/s21SOIImVi | |||
| User Comments: |
aku added on 2015-06-02 00:24:05:
I have now pulled the referenced file and attached it to the ticket. Also good in case the paste-bin reference goes lost in the future. The attachment will not. aku added on 2015-06-02 00:21:46: The command and the url refer to different files, it seems. Note: set channelId [open "s21BwGvY4m.yaml" ] vs http://slexy.org/view/s21SOIImVi ..............................^^^^^^^ anonymous added on 2015-05-28 17:14:39: Hi, I tried to parse the file with the new huddle and yaml version, and it seems that it works. I don't see an error. Could you please confirm? I downloaded the file: http://slexy.org/view/s21SOIImVi and I executed: set channelId [open "s21BwGvY4m.yaml" ] set data [read $channelId] yaml::yaml2dict $data aku added on 2013-11-04 19:55:54: We have a few other tickets open regarding yaml and its problems. See [3434579fff] and [3475081fff] I had a go at the internals myself for the latter, and gave up. While there seems to be a recursive-descent parser in the spaghetti somewhere, I was unable to detangle it. For bugs like the above and references I ask for patches. If use of C-based packages is allowed in your context, please see http://core.tcl.tk/akupries/tclyaml/index That is the package I wrote myself, and use, after giving up on the yaml package in Tcllib. It is a binding to a proven yaml parsing library. The binding comes with the sources of that library, making it easy to build. The site has detailed instructions on how to build. | |||
Attachments:
- s21SOIImVi [download] added by aku on 2015-06-02 00:22:47. [details]
