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

On 6/17/06, Sean B. [email protected] 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?

On 6/17/06, Sean B. [email protected] 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 :slight_smile:

http://macromates.com/community

I didn’t know they had their own mailing list - I’ll have a look now.
Thanks.

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: [email protected]
[mailto:[email protected]] On Behalf Of Sean B.
Sent: Saturday, June 17, 2006 10:23 AM
To: [email protected]
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