This page is no longer maintained — Please continue to the home page at www.scala-lang.org

ISO-8859-1 as source file encoding and syntax Highlighting.

2 replies
toivo
Joined: 2008-12-18,
User offline. Last seen 42 years 45 weeks ago.

I have long time problem in Scala Eclipse plugin.
If I open scala source file syntax highlighting is lost.
After editing and saving highlighting comes back.

Today I noticed how this problem is related to source files encoding and
comments.
Traditionally my source files are in ISO-8859-1.

Let’s create simple class.

class Simple {

var alfa = 300 // Comment
}

Save and reopen. Highlighting is OK.
Now change comment.

class Simple {

var alfa = 300 // Comment öüä
}

Save and reopen. Highlighting is LOST.

If I use UTF-8 as source file encoding Highlighting does not disappear even
with ‘ÖÜÄ’ characters.

So, is it possible to use ISO-8859-1 as source file encoding without losing
Highlighting ?

Current configuration:
Eclipse SDK Version: 3.4.2
Build id: M20090211-1700
ch.epfl.lamp.sdt_2.8.0.r17382-b20090326023419.zip

Thanks
Toivo

milessabin
Joined: 2008-08-11,
User offline. Last seen 33 weeks 3 days ago.
Re: ISO-8859-1 as source file encoding and syntax Highlighting

On Thu, Mar 26, 2009 at 11:40 AM, toivo wrote:
> Today I noticed how this problem is related to source files encoding and
> comments.

Thanks for looking into this!

Could you create a ticket in the Scala Trac for this with the
component set to "Eclipse plugin".

Thanks ...

Miles

--
Miles Sabin
tel:    +44 (0)1273 720 779
mobile: +44 (0)7813 944 528
skype:  milessabin

toivo
Joined: 2008-12-18,
User offline. Last seen 42 years 45 weeks ago.
Re: ISO-8859-1 as source file encoding and syntax Highlighting

Ticket #1827

Newest plugin is 2.8 based.
I used so far 2.7.3 but plugin problems slow down development.
How stable is current 2.8 compiler and library’s?
Can I use them for production instead of 2.7.3?

Thanks
Toivo

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland