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

{incorrect_format,unclosed_tag} for template variables inside a tuple #1323

Closed
ruel opened this issue Sep 9, 2016 · 1 comment
Closed

{incorrect_format,unclosed_tag} for template variables inside a tuple #1323

ruel opened this issue Sep 9, 2016 · 1 comment
Labels
dependency issue resides in a rebar3 dependency minor bug bug that does not prevent major features from working

Comments

@ruel
Copy link

ruel commented Sep 9, 2016

Description

I'm creating a template for my cowboy projects, and it fails to recognise variable names inside tuples:

{{{name}}_rest_worker, start_link, []},

Workaround is simply putting a whitespace before the template variable tag:

{ {{name}}_rest_worker, start_link, []},

But this doesn't look like a clean one. I'll try to see if I can help fixing this

Stacktrace

===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
===> Uncaught error: {incorrect_format,unclosed_tag}
===> Stack trace to the error location: [{bbmustache,parse2,3,
                                                 [{file,
                                                   "/Users/ruel/projects/rebar3/_build/default/lib/bbmustache/src/bbmustache.erl"},
                                                  {line,206}]},
                                                {bbmustache,parse,2,
                                                 [{file,
                                                   "/Users/ruel/projects/rebar3/_build/default/lib/bbmustache/src/bbmustache.erl"},
                                                  {line,169}]},
                                                {bbmustache,
                                                 parse_binary_impl,2,
                                                 [{file,
                                                   "/Users/ruel/projects/rebar3/_build/default/lib/bbmustache/src/bbmustache.erl"},
                                                  {line,164}]},
                                                {bbmustache,render,3,
                                                 [{file,
                                                   "/Users/ruel/projects/rebar3/_build/default/lib/bbmustache/src/bbmustache.erl"},
                                                  {line,92}]},
                                                {rebar_templater,
                                                 execute_template,5,
                                                 [{file,
                                                   "/Users/ruel/projects/rebar3/_build/default/lib/rebar/src/rebar_templater.erl"},
                                                  {line,236}]},
                                                {rebar_prv_new,do,1,
                                                 [{file,
                                                   "/Users/ruel/projects/rebar3/_build/default/lib/rebar/src/rebar_prv_new.erl"},
                                                  {line,53}]},
                                                {rebar_core,do,2,
                                                 [{file,
                                                   "/Users/ruel/projects/rebar3/_build/default/lib/rebar/src/rebar_core.erl"},
                                                  {line,125}]},
                                                {rebar3,main,1,
                                                 [{file,
                                                   "/Users/ruel/projects/rebar3/_build/default/lib/rebar/src/rebar3.erl"},
                                                  {line,56}]}]

Environment

Rebar3 report
 version 3.2.0+build.3507.reffef403b
 generated at 2016-09-09T13:38:36+00:00
=================
Please submit this along with your issue at https://github.com/erlang/rebar3/issues (and feel free to edit out private information, if any)
-----------------
Task:
Entered as:

-----------------
Operating System: x86_64-apple-darwin14.1.0
ERTS: Erlang/OTP 18 [erts-7.3] [source-d2a6d81] [64-bit] [smp:4:4] [async-threads:0] [hipe] [kernel-poll:false]
Root Directory: /usr/local/lib/erlang
Library directory: /usr/local/lib/erlang/lib
-----------------
Loaded Applications:
bbmustache: 1.0.4
certifi: 0.4.0
cf: 0.2.1
common_test: 1.12
compiler: 6.0.3
crypto: 3.6.3
cth_readable: 1.2.3
dialyzer: 2.9
edoc: 0.7.18
erlware_commons: 0.21.0
eunit: 2.2.13
eunit_formatters: 0.3.1
getopt: 0.8.2
inets: 6.2
kernel: 4.2
providers: 1.6.0
public_key: 1.1.1
relx: 3.20.0
sasl: 2.7
snmp: 5.2.2
ssl_verify_hostname: 1.0.5
stdlib: 2.8
syntax_tools: 1.7
tools: 2.8.3

-----------------
Escript path: /usr/local/bin/rebar3
Providers:
  app_discovery as clean compile compile cover ct deps dialyzer do edoc escriptize eunit help install install_deps list lock new path pkgs release relup report shell state tar tree unlock update upgrade upgrade upgrade version xref
@ferd
Copy link
Collaborator

ferd commented Sep 9, 2016

Confirmed, I did hit that recently. One thing to try is to see if updating the mustache library (see #1264) would help, or if newer fixes there would be required.

@ferd ferd added dependency issue resides in a rebar3 dependency minor bug bug that does not prevent major features from working labels Sep 9, 2016
@ferd ferd closed this as completed Sep 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency issue resides in a rebar3 dependency minor bug bug that does not prevent major features from working
Projects
None yet
Development

No branches or pull requests

2 participants