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

non deterministic template saving #29

Open
Aluriak opened this issue Aug 22, 2016 · 4 comments
Open

non deterministic template saving #29

Aluriak opened this issue Aug 22, 2016 · 4 comments

Comments

@Aluriak
Copy link
Contributor

Aluriak commented Aug 22, 2016

It seems that my boilr template save . python -f is not deterministic: follows a terminal session. I don't change any files during the session.

lucas@host:~/boilr-python-template➤ alias m='~/bin/boilr template save . python -f'
lucas@host:~/boilr-python-template➤ m
[✘] validate: template: LICENSE:1:6: executing "LICENSE" at <eq License "Apache S...>: error calling eq: incompatible types for comparison
lucas@host:~/boilr-python-template➤ m
[✔] Successfully saved the template python
lucas@host:~/boilr-python-template➤ m
[✘] validate: template: LICENSE:1:6: executing "LICENSE" at <eq License "Apache S...>: error calling eq: incompatible types for comparison
lucas@host:~/boilr-python-template➤ m
[✔] Successfully saved the template python
lucas@host:~/boilr-python-template➤ m
[✘] validate: template: LICENSE:1:6: executing "LICENSE" at <eq License "Apache S...>: error calling eq: incompatible types for comparison
lucas@host:~/boilr-python-template➤ m
[✘] validate: template: LICENSE:1:6: executing "LICENSE" at <eq License "Apache S...>: error calling eq: incompatible types for comparison
lucas@host:~/boilr-python-template➤ m
[✔] Successfully saved the template python

The error here is raised on this line, and should not (i think) appear while License is defined as string.

What am i missing ?

@tmrts tmrts added the bug label Aug 22, 2016
@tmrts
Copy link
Owner

tmrts commented Aug 22, 2016

@Aluriak can you reproduce it with the boilr-license template listed here?

Also feel free to add your own template to the wiki (it's editable to public).

@Aluriak
Copy link
Contributor Author

Aluriak commented Aug 22, 2016

No, i can't:

lucas@host➤ git clone https://github.com/tmrts/boilr-license
# ...
lucas@host➤ cd boilr-license && ls
project.json  README.md  template
lucas@host/boilr-license➤ alias m='~/bin/boilr template save . python -f'
lucas@host/boilr-license➤ m
[✔] Successfully saved the template python
lucas@host/boilr-license➤ m
[✔] Successfully saved the template python
lucas@host/boilr-license➤ m
[✔] Successfully saved the template python
lucas@host/boilr-license➤ m
[✔] Successfully saved the template python
# ... ten more repeated lines

I will eventually try to reduce my template to a minimal maybe-working code.

Can you reproduce the problem with my template ?

I will add my template to the wiki once it will be good to me.

@tmrts
Copy link
Owner

tmrts commented Aug 22, 2016

I'm putting a reference to your template that causes this behavior in boilr, so that its not lost when you minimize the template (Aluriak/boilr-python@74a3984)

I'm about to turn off for the night. But, I'll examine the template as soon as I can and see where the problematic behavior is coming from 👍

@tmrts
Copy link
Owner

tmrts commented Feb 27, 2017

I narrowed down the cause to the text/template library, but I'm not going to focus on this specifically, due to not enough information and due to the fact that there is an ongoing overhaul for the boilr templating system.

Feel free to comment if you encounter this issue elsewhere or if you've located the cause

@tmrts tmrts added the wontfix label Feb 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants