nvdaaddons/addonWizzard

Add-on generation fails with jinja2.exceptions.TemplateSyntaxError

Opened this issue · 1 comments

Steps to reproduce:

  1. Install from PIP: pip install NVDA-addonTemplate
  2. Run NVDAAddonTemplate and press enter on each prompt thus creating an add-on with the default values.

Current result:
After answering to "Use continuous integration with Travis CI? Please see the readme to learn more." the following error is being printed:

Traceback (most recent call last):
  File "C:\python27\scripts\NVDAAddonTemplate-script.py", line 9, in <module>
    load_entry_point('NVDA-addonTemplate==0.5.2', 'console_scripts', 'NVDAAddonTemplate')()
  File "c:\python27\lib\site-packages\NVDAAddonTemplate\__init__.py", line 90, in run
    cookiecutter(curFileDir, no_input=True, extra_context=context)
  File "c:\python27\lib\site-packages\cookiecutter\main.py", line 102, in cookiecutter
    context=context
  File "c:\python27\lib\site-packages\cookiecutter\generate.py", line 204, in generate_files
    generate_file(project_dir, infile, context, env)
  File "c:\python27\lib\site-packages\cookiecutter\generate.py", line 114, in generate_file
    tmpl = env.get_template(infile_fwd_slashes)
  File "c:\python27\lib\site-packages\jinja2\environment.py", line 812, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "c:\python27\lib\site-packages\jinja2\environment.py", line 786, in _load_template
    template = self.loader.load(self, name, globals)
  File "c:\python27\lib\site-packages\jinja2\loaders.py", line 125, in load
    code = environment.compile(source, name, filename)
  File "c:\python27\lib\site-packages\jinja2\environment.py", line 565, in compile
    self.handle_exception(exc_info, source_hint=source_hint)
  File "c:\python27\lib\site-packages\jinja2\environment.py", line 754, in handle_exception
    reraise(exc_type, exc_value, tb)
  File ".\scons-local-2.5.0\SCons\Variables\__init__.py", line 208, in template
jinja2.exceptions.TemplateSyntaxError: Encountered unknown tag 's'.
  File ".\scons-local-2.5.0\SCons\Variables\__init__.py", line 208
    value = env.subst('${%s}'%option.key)```

Expected result:
The wizzard (sic) should generate an add-on template based on the values entered to the prompts.