Has anyone come across this problem... I created some Ruby files in Textmate on my Mac - and everything works fine. However, when I run those files on a Windows machine I get e.g. compile error ./script/../config/../app/views/station/consumption/new.rhtml:2: Invalid char `\002'' in expression ./script/../config/../app/views/station/consumption/new.rhtml:4: parse error, unexpected tIDENTIFIER, expecting kEND _erbout.concat " "x; _erbout.concat((render :partial=>"record_form").to_s); _erbout.concat "\n" ^ ./script/../config/../app/views/station/consumption/new.rhtml:4: Invalid char `\002'' in expression ./script/../config/../app/views/station/consumption/new.rhtml:8: Invalid char `\002'' in expression Now this seems to be a problem that Textmate created as files created with Rad Rails on the Mac run fine on Windows. This seems to be a tab character/encoding/carriage return issue. I''ve seen similar symptoms talked about elsewhere but no clear resolution. Basically I am regretting spending 39 Euros on a text editor that seems to make my Rails project Mac only (an interesting polemic but frustrating for practical real life scenarios where Windows is a necessary evil...) Anyone got any ideas on how to easily resolve this problem? Sean -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060617/f0113046/attachment.html
On 6/17/06, Sean Blezard <sean.blezard@gmail.com> wrote:> Has anyone come across this problem... I created some Ruby files in Textmate > on my Mac - and everything works fine. However, when I run those files on a > Windows machine I get e.g.Have you tried sending an email to Macromates? Or asking on the TextMate mailing list? Or #textmate irc chat channel?
I didn''t know they had their own mailing list - I''ll have a look now. Thanks. On 17/06/06, John Tsombakos <johnt519@gmail.com> wrote:> > On 6/17/06, Sean Blezard <sean.blezard@gmail.com> wrote: > > Has anyone come across this problem... I created some Ruby files in > Textmate > > on my Mac - and everything works fine. However, when I run those files > on a > > Windows machine I get e.g. > > Have you tried sending an email to Macromates? Or asking on the > TextMate mailing list? Or #textmate irc chat channel? > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060617/1dfb6155/attachment.html
On 6/17/06, Sean Blezard <sean.blezard@gmail.com> wrote:> I didn''t know they had their own mailing list - I''ll have a look now. > Thanks.No problem. Allan (the developer) is very active on it, you may get a response directly from him :) <http://macromates.com/community>
The problem is not just tabs/carriage returns and such, it seems to also be file format. Here is how I solved it. I just opened all (yup *ALL*) the files on my Windows box in TextPad, changed the file format dropdown from "unix" to "pc" and then saved them. I think that there are commercial products that do this but I didn''t check them out -- Greg _____ From: rails-bounces@lists.rubyonrails.org [mailto:rails-bounces@lists.rubyonrails.org] On Behalf Of Sean Blezard Sent: Saturday, June 17, 2006 10:23 AM To: rails@lists.rubyonrails.org Subject: [Rails] Textmate Madness Has anyone come across this problem... I created some Ruby files in Textmate on my Mac - and everything works fine. However, when I run those files on a Windows machine I get e.g. compile error ./script/../config/../app/views/station/consumption/new.rhtml:2: Invalid char `\002'' in expression ./script/../config/../app/views/station/consumption/new.rhtml:4: parse error, unexpected tIDENTIFIER, expecting kEND _erbout.concat " "x; _erbout.concat((render :partial=>"record_form").to_s); _erbout.concat "\n" ^ ./script/../config/../app/views/station/consumption/new.rhtml:4: Invalid char `\002'' in expression ./script/../config/../app/views/station/consumption/new.rhtml:8: Invalid char `\002'' in expression Now this seems to be a problem that Textmate created as files created with Rad Rails on the Mac run fine on Windows. This seems to be a tab character/encoding/carriage return issue. I''ve seen similar symptoms talked about elsewhere but no clear resolution. Basically I am regretting spending 39 Euros on a text editor that seems to make my Rails project Mac only (an interesting polemic but frustrating for practical real life scenarios where Windows is a necessary evil...) Anyone got any ideas on how to easily resolve this problem? Sean -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.0/368 - Release Date: 6/16/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.0/368 - Release Date: 6/16/2006 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060617/58c2bfb2/attachment.html