- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Re: Indenting and TAB key
Mon, 2009-02-16, 16:52
If you re-configure your indentation settings for JDT, TAB can potentially insert spaces instead of the tab character.
I think that this should be configurable in SDT as it is in JDT. I really would not like it to force use of the tab character, partially because of my own personal Scala preferences, but also because the 2-space convention is indeed standard for Scala.
Daniel
On Mon, Feb 16, 2009 at 9:46 AM, Silvio Bierman <sbierman@jambo-software.com> wrote:
I think that this should be configurable in SDT as it is in JDT. I really would not like it to force use of the tab character, partially because of my own personal Scala preferences, but also because the 2-space convention is indeed standard for Scala.
Daniel
On Mon, Feb 16, 2009 at 9:46 AM, Silvio Bierman <sbierman@jambo-software.com> wrote:
Hello Daniel,
Sorry for responding directly earlier, I will repeat it here.
The Eclipse Java editor treats a TAB as a TAB, no more no less, unless you
are at the beginning of an empty line which is something I can understand.
But when I have a line with code and I add a TAB in front of it then that is
exactly what I get. (Of course I have the editor set to not replace TABs
with spaces).
Having TAB adjust the indentation is indeed a step forward. However, I
really want a TAB instead of spaces.
Silvio
--
View this message in context: http://www.nabble.com/Indenting-and-TAB-key-tp22039405p22039667.html
Sent from the Scala - Tools mailing list archive at Nabble.com.
Mon, 2009-02-16, 17:07
#2
Re: Indenting and TAB key
On Mon, Feb 16, 2009 at 3:51 PM, Daniel Spiewak wrote:
> I think that this should be configurable in SDT as it is in JDT.
It's quite possible that it is now on trunk ... could you give it a
try and report back?
Cheers,
Miles
Mon, 2009-02-16, 17:27
#3
Re: Indenting and TAB key
Love to, but for some reason the nightly build site (both of them, actually) isn't working for me (3.5 M5, Cocoa x64). Is this a known issue?
Daniel
On Mon, Feb 16, 2009 at 9:59 AM, Miles Sabin <miles@milessabin.com> wrote:
Daniel
On Mon, Feb 16, 2009 at 9:59 AM, Miles Sabin <miles@milessabin.com> wrote:
On Mon, Feb 16, 2009 at 3:51 PM, Daniel Spiewak <djspiewak@gmail.com> wrote:
> I think that this should be configurable in SDT as it is in JDT.
It's quite possible that it is now on trunk ... could you give it a
try and report back?
Cheers,
Miles
--
Miles Sabin
tel: +44 (0)1273 720 779
mobile: +44 (0)7813 944 528
skype: milessabin
Mon, 2009-02-16, 17:27
#4
Re: Indenting and TAB key
I remember finding code in SDT where *some* of this tab behavior was hard-coded (and at two spaces I believe). I also think it was in one of the layers that *isn't* aware enough of eclipse to use settings. I can do more investigation, but hopefully this is just more justification that the refactoring I'm attempting on the plugin is indeed worthwhile.
-Josh
On Mon, Feb 16, 2009 at 10:59 AM, Miles Sabin <miles@milessabin.com> wrote:
-Josh
On Mon, Feb 16, 2009 at 10:59 AM, Miles Sabin <miles@milessabin.com> wrote:
On Mon, Feb 16, 2009 at 3:51 PM, Daniel Spiewak <djspiewak@gmail.com> wrote:
> I think that this should be configurable in SDT as it is in JDT.
It's quite possible that it is now on trunk ... could you give it a
try and report back?
Cheers,
Miles
--
Miles Sabin
tel: +44 (0)1273 720 779
mobile: +44 (0)7813 944 528
skype: milessabin
Mon, 2009-02-16, 17:37
#5
Re: Indenting and TAB key
Miles Sabin wrote:
>
> On Mon, Feb 16, 2009 at 3:51 PM, Daniel Spiewak
> wrote:
>> I think that this should be configurable in SDT as it is in JDT.
>
> It's quite possible that it is now on trunk ... could you give it a
> try and report back?
>
> Cheers,
>
>
> Miles
>
Mon, 2009-02-16, 17:47
#6
Re: Indenting and TAB key
On Mon, Feb 16, 2009 at 4:04 PM, Daniel Spiewak wrote:
> Love to, but for some reason the nightly build site (both of them, actually)
> isn't working for me (3.5 M5, Cocoa x64). Is this a known issue?
It is if you've had problem with 3.5M5 since,
https://lampsvn.epfl.ch/trac/scala/changeset/17068
Any help with Mac OS specific issues would be very much appreciated.
Cheers,
Miles
Mon, 2009-02-16, 17:57
#7
Re: Indenting and TAB key
On Mon, Feb 16, 2009 at 4:09 PM, Silvio Bierman
wrote:
> Can I try that with the nightly build? If so, will that work with an Eclipse
> 3.5 Milestone build? Sorry for taking this thread off topic but I have
> previously had to revert to 3.4.1 to get the SDT working. If I go to the
> nightly builds and live on the edge I would like to push my Eclipse forward
> at the same time if possible.
If you work with the bleeding edge you have to expect to ... bleed
occasionally ;-)
That said, trunk is looking quite good at the moment (at least for me
on Linux). Nevertheless I would recommend creating a parallel
3.5M5/trunk installation rather than replacing your existing mostly
working one.
Cheers,
Miles
Mon, 2009-02-16, 17:57
#8
Re: Indenting and TAB key
On Mon, Feb 16, 2009 at 4:44 PM, Miles Sabin wrote:
> That said, trunk is looking quite good at the moment (at least for me
> on Linux).
Does that mean you are not affected by the following bugs?
https://lampsvn.epfl.ch/trac/scala/ticket/1716
https://lampsvn.epfl.ch/trac/scala/ticket/1717
I had to revert back to the revision before
https://lampsvn.epfl.ch/trac/scala/changeset/17107 because of them.
Best,
Ismael
Mon, 2009-02-16, 18:07
#9
Re: Indenting and TAB key
I don't know if it works or not, because I can't install it. :-) I just don't see anything available in the update site. I can see the 2.7.3 update site (and that version certainly doesn't work), but not the nightly.
Daniel
On Mon, Feb 16, 2009 at 10:42 AM, Miles Sabin <miles@milessabin.com> wrote:
Daniel
On Mon, Feb 16, 2009 at 10:42 AM, Miles Sabin <miles@milessabin.com> wrote:
On Mon, Feb 16, 2009 at 4:04 PM, Daniel Spiewak <djspiewak@gmail.com> wrote:
> Love to, but for some reason the nightly build site (both of them, actually)
> isn't working for me (3.5 M5, Cocoa x64). Is this a known issue?
It is if you've had problem with 3.5M5 since,
https://lampsvn.epfl.ch/trac/scala/changeset/17068
Any help with Mac OS specific issues would be very much appreciated.
Cheers,
Miles
--
Miles Sabin
tel: +44 (0)1273 720 779
mobile: +44 (0)7813 944 528
skype: milessabin
Mon, 2009-02-16, 18:17
#10
Re: Indenting and TAB key
On Mon, Feb 16, 2009 at 4:49 PM, Ismael Juma wrote:
> Does that mean you are not affected by the following bugs?
>
> https://lampsvn.epfl.ch/trac/scala/ticket/1716
> https://lampsvn.epfl.ch/trac/scala/ticket/1717
>
> I had to revert back to the revision before
> https://lampsvn.epfl.ch/trac/scala/changeset/17107 because of them.
Just about to commit a fix for #1716 and will deal with #1717 ASAP ...
Thanks for the reports and patches BTW :-)
Cheers,
Miles
Mon, 2009-02-16, 18:27
#11
Re: Indenting and TAB key
On Mon, Feb 16, 2009 at 5:05 PM, Miles Sabin wrote:
> Just about to commit a fix for #1716 and will deal with #1717 ASAP ...
Thanks. :)
> Thanks for the reports and patches BTW :-)
No problem. Hopefully reports will be accompanies with a patch more
often in the future. ;)
Ismael
Wed, 2009-02-18, 11:27
#12
Re: Indenting and TAB key
Miles Sabin wrote:
>
> On Mon, Feb 16, 2009 at 4:09 PM, Silvio Bierman
> wrote:
>> Can I try that with the nightly build? If so, will that work with an
>> Eclipse
>> 3.5 Milestone build? Sorry for taking this thread off topic but I have
>> previously had to revert to 3.4.1 to get the SDT working. If I go to the
>> nightly builds and live on the edge I would like to push my Eclipse
>> forward
>> at the same time if possible.
>
> If you work with the bleeding edge you have to expect to ... bleed
> occasionally ;-)
>
> That said, trunk is looking quite good at the moment (at least for me
> on Linux). Nevertheless I would recommend creating a parallel
> 3.5M5/trunk installation rather than replacing your existing mostly
> working one.
>
> Cheers,
>
>
> Miles
>
Wed, 2009-02-18, 13:37
#13
Re: Indenting and TAB key
Like I tried to send earlier, we need to move some of the layers in
the virtual class pattern higher in the model so we have access to the
preferences. I'm currently working on flattening these layers, but
it's slow going for one not intimately familiar with the source.
Sent from my iPhone
On Feb 18, 2009, at 5:23 AM, Silvio Bierman wrote:
>
>
>
> Miles Sabin wrote:
>>
>> On Mon, Feb 16, 2009 at 4:09 PM, Silvio Bierman
>> wrote:
>>> Can I try that with the nightly build? If so, will that work with an
>>> Eclipse
>>> 3.5 Milestone build? Sorry for taking this thread off topic but I
>>> have
>>> previously had to revert to 3.4.1 to get the SDT working. If I go
>>> to the
>>> nightly builds and live on the edge I would like to push my Eclipse
>>> forward
>>> at the same time if possible.
>>
>> If you work with the bleeding edge you have to expect to ... bleed
>> occasionally ;-)
>>
>> That said, trunk is looking quite good at the moment (at least for me
>> on Linux). Nevertheless I would recommend creating a parallel
>> 3.5M5/trunk installation rather than replacing your existing mostly
>> working one.
>>
>> Cheers,
>>
>>
>> Miles
>>
If the tab level that emacs gives you doesn't get you to where you want you can keep hitting it to add more. Or configure indentation so that it works for your style (I really need to do that for multiline case expressions). Or just turn the bugger off.
2009/2/16 Daniel Spiewak <djspiewak@gmail.com>