Menu

#4 Stack trace when using --save (patch linked)

resolved
nobody
None
major
bug
2020-01-23
2020-01-23
No

https://bitbucket.org/maccam94/yaml.cmd/commits/3ad6dcdfead4518a97255208a0fcb365a12b3c17
(sorry, couldn't seem to file a PR)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
$ yaml round-trip .ci/config.yml --save
Traceback (most recent call last):
  File "/home/cam/.local/bin/yaml", line 11, in <module>
    sys.exit(main())
  File "/home/cam/.local/lib/python3.5/site-packages/ruamel/yaml/cmd/__main__.py", line 200, in main
    sys.exit(n.run())
  File "/home/cam/.local/lib/python3.5/site-packages/ruamel/yaml/cmd/__main__.py", line 51, in run
    return self._args.func()
  File "/home/cam/.local/lib/python3.5/site-packages/ruamel/yaml/cmd/__main__.py", line 76, in rt
    return self._yaml.round_trip()
  File "/home/cam/.local/lib/python3.5/site-packages/ruamel/yaml/cmd/yaml_cmd.py", line 385, in round_trip
    self.round_trip_save(file_name)
  File "/home/cam/.local/lib/python3.5/site-packages/ruamel/yaml/cmd/yaml_cmd.py", line 417, in round_trip_save
    indent = int(self._args.indent)
ValueError: invalid literal for int() with base 10: 'auto'

(originally posted on 2018-05-24 at 20:41:36 by maccam94 <maccam94@bitbucket>)

Discussion

  • Anthon van der Neut

    I also get this, with and without the --indent arg

    (originally posted on 2019-07-12 at 08:56:47 by John Vandenberg <John Vandenberg@bitbucket>)

     
  • Anthon van der Neut

    • status set to resolved

    using YAML class, fixes issue #4

    When this change indeed resolves your problem, please Close this issue.
    (You can do so using the WorkFlow pull-down (close to the top right of this page))

    → <<cset 67684f236e78="">></cset>

    (originally posted on 2019-07-14 at 07:38:30)

     

Log in to post a comment.