FORMAT ERROR on brand new project #376

Closed
kotedo opened this Issue Dec 25, 2013 · 4 comments

4 participants

@kotedo
MyMachine:passwords kai$ ./init-dev.sh 
Erlang R16B02 (erts-5.10.3) [source-b44b726] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]


=PROGRESS REPORT==== 25-Dec-2013::18:06:57 ===
          supervisor: {local,sasl_safe_sup}
             started: [{pid,<0.41.0>},
                       {name,alarm_handler},
                       {mfargs,{alarm_handler,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]

=PROGRESS REPORT==== 25-Dec-2013::18:06:57 ===
          supervisor: {local,sasl_safe_sup}
             started: [{pid,<0.42.0>},
                       {name,overload},
                       {mfargs,{overload,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]

=PROGRESS REPORT==== 25-Dec-2013::18:06:57 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.40.0>},
                       {name,sasl_safe_sup},
                       {mfargs,
                           {supervisor,start_link,
                               [{local,sasl_safe_sup},sasl,safe]}},
                       {restart_type,permanent},
                       {shutdown,infinity},
                       {child_type,supervisor}]

=PROGRESS REPORT==== 25-Dec-2013::18:06:57 ===
          supervisor: {local,sasl_sup}
             started: [{pid,<0.43.0>},
                       {name,release_handler},
                       {mfargs,{release_handler,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,2000},
                       {child_type,worker}]

=PROGRESS REPORT==== 25-Dec-2013::18:06:57 ===
         application: sasl
          started_at: passwords@MacBookRetina

=PROGRESS REPORT==== 25-Dec-2013::18:06:57 ===
          supervisor: {local,kernel_safe_sup}
             started: [{pid,<0.48.0>},
                       {name,timer_server},
                       {mfargs,{timer,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,1000},
                       {child_type,worker}]
Eshell V5.10.3  (abort with ^G)
(passwords@MacBookRetina)1> 
=PROGRESS REPORT==== 25-Dec-2013::18:06:57 ===
         application: compiler
          started_at: passwords@MacBookRetina

=PROGRESS REPORT==== 25-Dec-2013::18:06:57 ===
         application: syntax_tools
          started_at: passwords@MacBookRetina

=PROGRESS REPORT==== 25-Dec-2013::18:06:57 ===
          supervisor: {local,lager_sup}
             started: [{pid,<0.58.0>},
                       {name,lager},
                       {mfargs,{gen_event,start_link,[{local,lager_event}]}},
                       {restart_type,permanent},
                       {shutdown,5000},
                       {child_type,worker}]

=PROGRESS REPORT==== 25-Dec-2013::18:06:57 ===
          supervisor: {local,lager_sup}
             started: [{pid,<0.59.0>},
                       {name,lager_handler_watcher_sup},
                       {mfargs,{lager_handler_watcher_sup,start_link,[]}},
                       {restart_type,permanent},
                       {shutdown,5000},
                       {child_type,supervisor}]

=PROGRESS REPORT==== 25-Dec-2013::18:06:57 ===
          supervisor: {local,lager_sup}
             started: [{pid,<0.60.0>},
                       {name,lager_crash_log},
                       {mfargs,
                           {lager_crash_log,start_link,
                               ["log/crash.log",65536,10485760,[{hour,0}],5]}},
                       {restart_type,permanent},
                       {shutdown,5000},
                       {child_type,worker}]
18:06:57.322 [info] Application lager started on node passwords@MacBookRetina
18:06:57.342 [info] Application crypto started on node passwords@MacBookRetina
18:06:57.352 [info] Application mimetypes started on node passwords@MacBookRetina
18:06:57.380 [info] Starting Boss in development mode....

18:06:57.418 [info] Starting master services on passwords@MacBookRetina

18:06:57.427 [info] Application tinymq started on node passwords@MacBookRetina
18:06:57.453 [info] SSL:[]

18:06:57.456 [info] Starting cowboy... on passwords@MacBookRetina

18:06:57.460 [info] Application ranch started on node passwords@MacBookRetina
18:06:57.468 [info] Application cowboy started on node passwords@MacBookRetina
18:06:57.468 [info] Starting http listener... on 8001 

18:06:57.491 [info] Application boss started on node passwords@MacBookRetina
18:06:57.509 [info] Loading routes from "/Users/kai.janson/Programming/Erlang/ChicagoBoss/passwords/priv/passwords.routes" ....
18:06:57.515 [info] Loading application passwords

Compile Modules "src/view/lib/tag_html" 
passwords_view_lib_tags

18:06:57.614 [notice] Loading Modules [{test_modules,[]},{lib_modules,[]},{websocket_modules,[]},{mail_modules,[passwords_outgoing_mail_controller,passwords_incoming_mail_controller]},{controller_modules,[passwords_main_controller]},{model_modules,[]},{view_lib_tags_modules,[passwords_view_lib_tags]},{view_lib_helper_modules,[passwords_custom_filters,passwords_custom_tags]},{view_modules,[passwords_view_main_index_html]}]
src/boss/boss_web_controller_handle_request.erl:23 (<0.360.0>) ApplicationForPath passwords
18:07:08.405 [info] Loading routes from "/Users/kai.janson/Programming/Erlang/ChicagoBoss/passwords/priv/passwords.routes" ....
18:07:08.438 [info] Request Method 'GET'
18:07:08.438 [info] FORMAT ERROR: "Tokens" [[]]

Compile Modules "src/view/lib/tag_html" 
passwords_view_lib_tags


Compile Modules "src/view/lib/tag_html" 
passwords_view_lib_tags

18:07:08.460 [info] GET /main/ [passwords] 200 0ms

The line here:

18:07:08.438 [info] FORMAT ERROR: "Tokens" [[]]

is of concern.

The controller code is:

-module(passwords_main_controller, [Req, SessionID]).
-compile(export_all).

index('GET', []) ->
    {ok, [{dummy, "This is dummy."}], []}.

and the view for it is

<html>
  <head>
    <title>My first test of 0.8.8</title>
  </head>
  <body>
    <h2>Here we are! {{ dummy }}</h2>
  </body>
</html>
@mihawk

it s related to #369, i guess

@zkessin zkessin was assigned Jan 2, 2014
@zkessin

Can you look in the console.log file and see if you can find a file and line number where this is being issues?

@mihawk

i think it s fixed with the my pull request #369

@danikp

@mihawk, seems so. closing.

@danikp danikp closed this Jan 6, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment