# Textmate Madness

**URL:** <https://www.ruby-forum.com/t/textmate-madness/63684>\
**Category:** Rails\
**Created:** [June 17, 2006, 4:23pm UTC](https://www.ruby-forum.com/t/textmate-madness/63684 "2006-06-17T16:23:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![seanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@seanb](https://www.ruby-forum.com/u/seanb)\
**Post date:** [June 17, 2006, 4:23pm UTC](https://www.ruby-forum.com/t/textmate-madness/63684/1 "2006-06-17T16:23:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![seanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@seanb](https://www.ruby-forum.com/u/seanb)\
**Post date:** [June 17, 2006, 4:32pm UTC](https://www.ruby-forum.com/t/textmate-madness/63684/2 "2006-06-17T16:32:50Z")

</div>

On 6/17/06, Sean B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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?

---

<div class="post-metadata">

**Author:** ![seanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@seanb](https://www.ruby-forum.com/u/seanb)\
**Post date:** [June 17, 2006, 4:48pm UTC](https://www.ruby-forum.com/t/textmate-madness/63684/3 "2006-06-17T16:48:17Z")

</div>

On 6/17/06, Sean B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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](http://macromates.com/community)

---

<div class="post-metadata">

**Author:** ![seanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@seanb](https://www.ruby-forum.com/u/seanb)\
**Post date:** [June 17, 2006, 4:35pm UTC](https://www.ruby-forum.com/t/textmate-madness/63684/4 "2006-06-17T16:35:59Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![seanb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c0e974/32.png) [@seanb](https://www.ruby-forum.com/u/seanb)\
**Post date:** [June 18, 2006, 12:09am UTC](https://www.ruby-forum.com/t/textmate-madness/63684/5 "2006-06-18T00:09:55Z")

</div>

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: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Sean B.  
Sent: Saturday, June 17, 2006 10:23 AM  
To: removed\_email\_address@domain.invalid  
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
