Hi all, I hope somebody can help me out here, since the issue has been killing me for the last three days. Here is the issue: It seems that gruff kills rails/webrick whenever it''s used on win32. I installed gruff per instructions and it seems to be working. The sample controller generates a nice grpah with send_data and all. The issue started once I try to use any other controller/template. Once a gruff graph gets generated and sent to the browser any SUBSEQUENT requests to other controllers fail with weird compile errors. For instance: Showing app/views/admin/show_management/list_shows.rhtml where line #5 raised: compile error ./script/../config/../app/views/admin/show_management/list_shows.rhtml:5: Invalid char `\001'' in expression ./script/../config/../app/views/admin/show_management/list_shows.rhtml:6: parse error, unexpected $, expecting kEND _erbout.concat " <th>Show ID</th>\n" ^ Extracted source (around line #5): 2: 3: <table class="list"> 4: <tr class="list_header"> 5: <th>Show Name</th> 6: <th>Show ID</th> 7: <th>Location</th> 8: <th>Action</th> Trace of template inclusion: /app/views/admin/show_management/list_shows.rhtml RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/views/admin/show_management/list_shows.rhtml:6:in `compile_template'' #{RAILS_ROOT}/app/controllers/admin/show_management_controller.rb:12:in `index'' A quick restart of webrick fixes the issue until I generate another graph that is :-( Thanks Rafael
Hi Rafeal, One thing you might try is renaming mysql.so (do a search to find out where is it on your system) to see if it''s a driver issue. MySQL will pick up the native Ruby drivers if it can''t find the compiled version (which is what mysql.so is). There''s a known issue with the compiled version and WEBrick that''s currently under investigation. Changing drivers might not help, but it''s cheap to try ;-) Best regards, Bill ----- Original Message ----- From: "Rafael Szuminski" <raf1hh@gmail.com> To: <rails@lists.rubyonrails.org> Sent: Sunday, April 30, 2006 2:15 PM Subject: [Rails] Help, Gruff is killing me Hi all, I hope somebody can help me out here, since the issue has been killing me for the last three days. Here is the issue: It seems that gruff kills rails/webrick whenever it''s used on win32. I installed gruff per instructions and it seems to be working. The sample controller generates a nice grpah with send_data and all. The issue started once I try to use any other controller/template. Once a gruff graph gets generated and sent to the browser any SUBSEQUENT requests to other controllers fail with weird compile errors. For instance: Showing app/views/admin/show_management/list_shows.rhtml where line #5 raised: compile error ./script/../config/../app/views/admin/show_management/list_shows.rhtml:5: Invalid char `\001'' in expression ./script/../config/../app/views/admin/show_management/list_shows.rhtml:6: parse error, unexpected $, expecting kEND _erbout.concat " <th>Show ID</th>\n" ^ Extracted source (around line #5): 2: 3: <table class="list"> 4: <tr class="list_header"> 5: <th>Show Name</th> 6: <th>Show ID</th> 7: <th>Location</th> 8: <th>Action</th> Trace of template inclusion: /app/views/admin/show_management/list_shows.rhtml RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/views/admin/show_management/list_shows.rhtml:6:in `compile_template'' #{RAILS_ROOT}/app/controllers/admin/show_management_controller.rb:12:in `index'' A quick restart of webrick fixes the issue until I generate another graph that is :-( Thanks Rafael _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hello Rafael,> I hope somebody can help me out here, since the issue has been killing > me for the last three days. Here is the issue: > > It seems that gruff kills rails/webrick whenever it''s used on win32. I > installed gruff per instructions and it seems to be working. The > sample controller generates a nice grpah with send_data and all. The > issue started once I try to use any other controller/template. Once a > gruff graph gets generated and sent to the browser any SUBSEQUENT > requests to other controllers fail with weird compile errors. For > instance: > > Showing app/views/admin/show_management/list_shows.rhtml where line #5 raised: > > compile error > ./script/../config/../app/views/admin/show_management/list_shows.rhtml:5: > Invalid char `\001'' in expression > ./script/../config/../app/views/admin/show_management/list_shows.rhtml:6: > parse error, unexpected $, expecting kEND > _erbout.concat " <th>Show ID</th>\n"Try to check whether it''s a tabulation pb. Suppress (or replace with spaces) any tabs in your list_shows.rhtml file. -- Jean-Fran?ois. -- ? la renverse.
On Apr 30, 2006, at 1:26 PM, Jean-Fran?ois wrote:> Hello Rafael, > >> I hope somebody can help me out here, since the issue has been >> killing >> me for the last three days. Here is the issue: >> >> It seems that gruff kills rails/webrick whenever it''s used on >> win32. I >> installed gruff per instructions and it seems to be working. The >> sample controller generates a nice grpah with send_data and all. The >> issue started once I try to use any other controller/template. Once a >> gruff graph gets generated and sent to the browser any SUBSEQUENT >> requests to other controllers fail with weird compile errors. For >> instance: >> >> Showing app/views/admin/show_management/list_shows.rhtml where >> line #5 raised: >> >> compile error >> ./script/../config/../app/views/admin/show_management/ >> list_shows.rhtml:5: >> Invalid char `\001'' in expression >> ./script/../config/../app/views/admin/show_management/ >> list_shows.rhtml:6: >> parse error, unexpected $, expecting kEND >> _erbout.concat " <th>Show ID</th>\n" > > Try to check whether it''s a tabulation pb. > Suppress (or replace with spaces) any tabs in your list_shows.rhtml > file. > > -- Jean-Fran?ois. > > > --Yup that expecting kEND error on windows is a know issue. If you have any tab chars in your view files they will cause this error. Make sure to only use spaces and you will be fine. -Ezra
Is Gruff using RMagick and you use ruby 1.8.4 under windows ? If that is the case, then that is the reason for your problems .. On 4/30/06, Ezra Zygmuntowicz <ezmobius@gmail.com> wrote:> > > On Apr 30, 2006, at 1:26 PM, Jean-Fran?ois wrote: > > > Hello Rafael, > > > >> I hope somebody can help me out here, since the issue has been > >> killing > >> me for the last three days. Here is the issue: > >> > >> It seems that gruff kills rails/webrick whenever it''s used on > >> win32. I > >> installed gruff per instructions and it seems to be working. The > >> sample controller generates a nice grpah with send_data and all. The > >> issue started once I try to use any other controller/template. Once a > >> gruff graph gets generated and sent to the browser any SUBSEQUENT > >> requests to other controllers fail with weird compile errors. For > >> instance: > >> > >> Showing app/views/admin/show_management/list_shows.rhtml where > >> line #5 raised: > >> > >> compile error > >> ./script/../config/../app/views/admin/show_management/ > >> list_shows.rhtml:5: > >> Invalid char `\001'' in expression > >> ./script/../config/../app/views/admin/show_management/ > >> list_shows.rhtml:6: > >> parse error, unexpected $, expecting kEND > >> _erbout.concat " <th>Show ID</th>\n" > > > > Try to check whether it''s a tabulation pb. > > Suppress (or replace with spaces) any tabs in your list_shows.rhtml > > file. > > > > -- Jean-Fran?ois. > > > > > > -- > > > Yup that expecting kEND error on windows is a know issue. If you > have any tab chars in your view files they will cause this error. > Make sure to only use spaces and you will be fine. > > -Ezra_______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Roberto Saccon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060430/cab778b6/attachment.html
yep, Ruby 1.8.4 + Rmagick installed from local gem (RMagick-win32-1.9.2-mswin32.gem) I did some digging since the email, and it looks like it''s Rmagick issue. For instance in IRB require ''rmagick'' errors out with: undefined method `assoc'' for class `Magick::ImageList'' and require_gem ''rmagick'' complains about not being able to find the gem. Any known resolutions to this issue? Rafael On 4/30/06, Roberto Saccon <rsaccon@gmail.com> wrote:> Is Gruff using RMagick and you use ruby 1.8.4 under windows ? If that is the > case, then that is the reason for your problems .. > > > On 4/30/06, Ezra Zygmuntowicz <ezmobius@gmail.com> wrote: > > > > On Apr 30, 2006, at 1:26 PM, Jean-Fran?ois wrote: > > > > > Hello Rafael, > > > > > >> I hope somebody can help me out here, since the issue has been > > >> killing > > >> me for the last three days. Here is the issue: > > >> > > >> It seems that gruff kills rails/webrick whenever it''s used on > > >> win32. I > > >> installed gruff per instructions and it seems to be working. The > > >> sample controller generates a nice grpah with send_data and all. The > > >> issue started once I try to use any other controller/template. Once a > > >> gruff graph gets generated and sent to the browser any SUBSEQUENT > > >> requests to other controllers fail with weird compile errors. For > > >> instance: > > >> > > >> Showing > app/views/admin/show_management/list_shows.rhtml where > > >> line #5 raised: > > >> > > >> compile error > > >> ./script/../config/../app/views/admin/show_management/ > > >> list_shows.rhtml:5: > > >> Invalid char `\001'' in expression > > >> ./script/../config/../app/views/admin/show_management/ > > >> list_shows.rhtml:6: > > >> parse error, unexpected $, expecting kEND > > >> _erbout.concat " <th>Show ID</th>\n" > > > > > > Try to check whether it''s a tabulation pb. > > > Suppress (or replace with spaces) any tabs in your list_shows.rhtml > > > file. > > > > > > -- Jean-Fran?ois. > > > > > > > > > -- > > > > > > Yup that expecting kEND error on windows is a know issue. If you > > have any tab chars in your view files they will cause this error. > > Make sure to only use spaces and you will be fine. > > > > -Ezra_______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > -- > Roberto Saccon > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >
yes, use minimagick (might require quite a lot of customization for gruff). If you do it, plese post it On 4/30/06, Rafael Szuminski <raf1hh@gmail.com> wrote:> > yep, Ruby 1.8.4 + Rmagick installed from local gem > (RMagick-win32-1.9.2-mswin32.gem) > > I did some digging since the email, and it looks like it''s Rmagick > issue. For instance in IRB require ''rmagick'' errors out with: > undefined method `assoc'' for class `Magick::ImageList'' > > and require_gem ''rmagick'' complains about not being able to find the gem. > > Any known resolutions to this issue? > > Rafael > > > On 4/30/06, Roberto Saccon <rsaccon@gmail.com> wrote: > > Is Gruff using RMagick and you use ruby 1.8.4 under windows ? If that is > the > > case, then that is the reason for your problems .. > > > > > > On 4/30/06, Ezra Zygmuntowicz <ezmobius@gmail.com> wrote: > > > > > > On Apr 30, 2006, at 1:26 PM, Jean-Fran?ois wrote: > > > > > > > Hello Rafael, > > > > > > > >> I hope somebody can help me out here, since the issue has been > > > >> killing > > > >> me for the last three days. Here is the issue: > > > >> > > > >> It seems that gruff kills rails/webrick whenever it''s used on > > > >> win32. I > > > >> installed gruff per instructions and it seems to be working. The > > > >> sample controller generates a nice grpah with send_data and all. > The > > > >> issue started once I try to use any other controller/template. Once > a > > > >> gruff graph gets generated and sent to the browser any SUBSEQUENT > > > >> requests to other controllers fail with weird compile errors. For > > > >> instance: > > > >> > > > >> Showing > > app/views/admin/show_management/list_shows.rhtml where > > > >> line #5 raised: > > > >> > > > >> compile error > > > >> ./script/../config/../app/views/admin/show_management/ > > > >> list_shows.rhtml:5: > > > >> Invalid char `\001'' in expression > > > >> ./script/../config/../app/views/admin/show_management/ > > > >> list_shows.rhtml:6: > > > >> parse error, unexpected $, expecting kEND > > > >> _erbout.concat " <th>Show ID</th>\n" > > > > > > > > Try to check whether it''s a tabulation pb. > > > > Suppress (or replace with spaces) any tabs in your list_shows.rhtml > > > > file. > > > > > > > > -- Jean-Fran?ois. > > > > > > > > > > > > -- > > > > > > > > > Yup that expecting kEND error on windows is a know issue. If > you > > > have any tab chars in your view files they will cause this error. > > > Make sure to only use spaces and you will be fine. > > > > > > -Ezra_______________________________________________ > > > Rails mailing list > > > Rails@lists.rubyonrails.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > > > -- > > Roberto Saccon > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Roberto Saccon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060430/fae06c69/attachment.html