Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wmlindent crashes if file does not exist #3346

Closed
sevu opened this issue Jul 15, 2018 · 2 comments
Closed

wmlindent crashes if file does not exist #3346

sevu opened this issue Jul 15, 2018 · 2 comments
Assignees
Labels
Bug Issues involving unexpected behavior. WML Tools Issues involving WML maintenance tools.
Milestone

Comments

@sevu
Copy link
Member

sevu commented Jul 15, 2018

Traceback (most recent call last):
  File "/tmp/wesnoth/data/tools/wmlindent", line 323, in <module>
    arguments, "|".join(exclude))
  File "/tmp/wesnoth/data/tools/wmlindent", line 259, in convertor
    with codecs.open(filename,"r","utf8") as infp, codecs.open(filename + ".out", "w","utf8") as outfp:
  File "/usr/lib/python3.6/codecs.py", line 897, in open
    file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: 'data/campaigns/tutorial/scenarios/01_Tutorial_part_2.cfg'
@sevu sevu added Bug Issues involving unexpected behavior. WML Tools Issues involving WML maintenance tools. labels Jul 15, 2018
@sevu sevu changed the title wmlinent crashes if file does not exist wmlindent crashes if file does not exist Jul 15, 2018
@Vultraz
Copy link
Member

Vultraz commented Jul 15, 2018

Under what circumstances could this arise? If you delete the file mid-run?

@sevu
Copy link
Member Author

sevu commented Jul 16, 2018

If the argument to wmlindent refers to an invalid location. Such as wmlindent fwneöofnqwe.cfg

@Elvish-Hunter Elvish-Hunter self-assigned this Jul 17, 2018
Elvish-Hunter added a commit that referenced this issue Jul 21, 2018
@sevu sevu modified the milestone: 1.14.5 Sep 14, 2018
jostephd pushed a commit to jostephd/wesnoth that referenced this issue Oct 6, 2018
jostephd pushed a commit to jostephd/wesnoth that referenced this issue Oct 7, 2018
@sevu sevu added this to the 1.14.6 milestone Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues involving unexpected behavior. WML Tools Issues involving WML maintenance tools.
Projects
None yet
Development

No branches or pull requests

3 participants