Autocomplete chicken and egg in scala.html files

81 views
Skip to first unread message

virtualeyes

unread,
May 13, 2013, 12:20:50 PM5/13/13
to scala-i...@googlegroups.com
It's great that we have live compiler checked template files in Play now, pretty awesome in fact.

Eclipse built-in XHTML editor is next to useless with scala.html files, however.

I installed Aptana to address the issue as it has great markup autocomplete support (for coffee and less as well).

Sadly, it's one or the other it seems, you can have Scala support OR markup support.

Anyone have the magic sauce for having both Scala and markup autocomplete in Play templates??

iulian dragos

unread,
May 14, 2013, 5:44:40 AM5/14/13
to scala-i...@googlegroups.com
We've been looking at Eclipse WebTools Platform, and we'll try to integrate with their "structured" editors (meaning reusing their HTML/JS goodness, and spice up the Scala parts). We don't have a timeline for that yet, but initial exploration shows that it's possible. However WTP is under-documented and we could definitely use a hand. ;-)

I don't know much about Aptana, and if they have a better API.

cheers,
iulian
 

--
You received this message because you are subscribed to the Google Groups "Scala IDE User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-ide-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
« Je déteste la montagne, ça cache le paysage »
Alphonse Allais

virtualeyes

unread,
May 14, 2013, 3:31:08 PM5/14/13
to scala-i...@googlegroups.com
Iulian, thanks, Aptana and Scala IDE take turns hijacking default editor type, so do not play well together.

As a workaround I have Aptana standalone for hacking on markup, and Scala IDE for all Scala code, including Play templates. Not ideal, but manually typing out XHTML markup is quite annoying, arguably worse than blind coding in Play templates (which I've been doing for nearly a year now) since SBT can at least provide some voluminous stack traces to slog through.

re: WTP integration help, already was asked to help out with Kepler -- tough times on the IDE front, everybody and their brother commits to scala.lang ;-)

Hopefully I can come up for air soon from current project and chip in somehow; Scala IDE has been my gateway to learning to Scala.

iulian dragos

unread,
May 15, 2013, 5:53:03 AM5/15/13
to scala-i...@googlegroups.com
On Tue, May 14, 2013 at 9:31 PM, virtualeyes <sit...@gmail.com> wrote:
Iulian, thanks, Aptana and Scala IDE take turns hijacking default editor type, so do not play well together.

As a workaround I have Aptana standalone for hacking on markup, and Scala IDE for all Scala code, including Play templates. Not ideal, but manually typing out XHTML markup is quite annoying, arguably worse than blind coding in Play templates (which I've been doing for nearly a year now) since SBT can at least provide some voluminous stack traces to slog through.

I agree, it's not at all ideal.
 

re: WTP integration help, already was asked to help out with Kepler -- tough times on the IDE front, everybody and their brother commits to scala.lang ;-)

Well, committing and opening pull requests are different things (I see 43 open PRs) We promise a faster turn-around! ;-)
 
Hopefully I can come up for air soon from current project and chip in somehow; Scala IDE has been my gateway to learning to Scala.

That's the beauty of open source. Don't hesitate to ask questions if you get stuck!

cheers,
iulian
Reply all
Reply to author
Forward
0 new messages