These are chat archives for ceylon/ceylon-ide-eclipse

20th
Sep 2016
MikhailMalyutin
@MikhailMalyutin
Sep 20 2016 09:54
Hi. I see eclipse IDE is released. But color schema is still unreadable (white on yellow) and java 8 lambdas are not supported. Is it ok or I do something wrong?
Gavin King
@gavinking
Sep 20 2016 09:55

white on yellow

wdym?

This is what the default color scheme looks like on my mac: https://ceylon-lang.org/documentation/1.3/ide/eclipse/features/

java 8 lambdas are not supported

Precisely what do you mean by “not supported”?

MikhailMalyutin
@MikhailMalyutin
Sep 20 2016 09:57
There is error - Call to a static interface member is not allowed unless you set the -target flag to 8: --javac=-target=8
But i don't find where I can set this flag in eclipse
Gavin King
@gavinking
Sep 20 2016 09:58
Did you try Project > Properties > Java Compiler?
Bastien Jansen
@bjansen
Sep 20 2016 09:59
@MikhailMalyutin see ceylon/ceylon-ide-eclipse#1787
you should add it to .ceylon/ide-config
Gavin King
@gavinking
Sep 20 2016 09:59
@bjansen ugh, that’s not good
that’s very hidden from the user
we definitely need to improve that
user should not need to edit a hidden ceylon config file by hand, in order to make their Java compiler work
cc @davidfestal
Bastien Jansen
@bjansen
Sep 20 2016 10:01
and I need to support it in IJ too
Gavin King
@gavinking
Sep 20 2016 10:02
To me it seems like this has the wrong default, @FroMage … if I’m using JDK 8, shouldn’t my source level by 8 by default??
MikhailMalyutin
@MikhailMalyutin
Sep 20 2016 10:03
About colour schema
Sorry for bad quality
Gavin King
@gavinking
Sep 20 2016 10:03
what OS is that?
MikhailMalyutin
@MikhailMalyutin
Sep 20 2016 10:04
Linux
Mint
Gavin King
@gavinking
Sep 20 2016 10:04
I assume it doesn’t look like that on other linuces, right @FroMage @tombentley @quintesse?
Stéphane Épardaud
@FroMage
Sep 20 2016 10:05
it does, we've said it for years
Gavin King
@gavinking
Sep 20 2016 10:05
it does?
but the Java hover doesn’t look like that?
Stéphane Épardaud
@FroMage
Sep 20 2016 10:05
for tooltips, yeah
Tom Bentley
@tombentley
Sep 20 2016 10:05
I don't think it looks like that on mine, but I might have configged it
Gavin King
@gavinking
Sep 20 2016 10:06
what color does the Java hover have?
Stéphane Épardaud
@FroMage
Sep 20 2016 10:06
I configured it to another colour too
Gavin King
@gavinking
Sep 20 2016 10:08
the thing is, I don’t mess with this
this is a color from the platform
MikhailMalyutin
@MikhailMalyutin
Sep 20 2016 10:09
This color schema begin from eclipse neon
Before all was ok
Gavin King
@gavinking
Sep 20 2016 10:09
so I think it’s Eclipse at fault here
but surely you just need to find the right setting in General > Appearance > Colors and Fonts
MikhailMalyutin
@MikhailMalyutin
Sep 20 2016 10:10
May be this is eclipse fault, but i can't switch color schema to normal :)
I tried
Gavin King
@gavinking
Sep 20 2016 10:10
why not?
Stéphane Épardaud
@FroMage
Sep 20 2016 10:11
IIRC I had to edit Gnome themes to get this fixed
in gnome-color-chooser Specific > Tooltips
Gavin King
@gavinking
Sep 20 2016 10:13
which is proof that this isn’t a Ceylon-specific thing (i.e. that we’re not overriding anything here)
MikhailMalyutin
@MikhailMalyutin
Sep 20 2016 10:13
Ok, may be
Gavin King
@gavinking
Sep 20 2016 10:20
AFAICT, I don’t set the foreground font color of the hover anywhere
I just use what Eclipse gives me
MikhailMalyutin
@MikhailMalyutin
Sep 20 2016 10:25
About java 8
ide-config [----] 24 L:[ 1+ 1 2/ 3] (34 / 36b) 0056 0x038 [][X]
[project]
javac=-target=8 -source=8
Stéphane Épardaud
@FroMage
Sep 20 2016 10:25
@gavinking it's a valid point about the default output class format, open an issue. I think we wanted to make sure we'd generate java 7 bytecode
MikhailMalyutin
@MikhailMalyutin
Sep 20 2016 10:25
Is it correct config?
I add this file, restart eclipse but nothing changes
Gavin King
@gavinking
Sep 20 2016 10:27
@FroMage ok.
Tako Schotanus
@quintesse
Sep 20 2016 10:28
My tooltips just look like plain text, no formatting at all because I told Eclipse to use the GTK toolkit because otherwise it would just randomly crash
Bastien Jansen
@bjansen
Sep 20 2016 10:29
@MikhailMalyutin I think you can add one line per config:
[project]
javac=-target=8
javac=-source 8
Gavin King
@gavinking
Sep 20 2016 10:29
@FroMage looks like @bjansen opened the issue ceylon/ceylon-ide-intellij#492
Stéphane Épardaud
@FroMage
Sep 20 2016 10:30
well that's a UI issue, not about the default class format
MikhailMalyutin
@MikhailMalyutin
Sep 20 2016 10:33
Done, but nothing changes
Bastien Jansen
@bjansen
Sep 20 2016 10:33
did you clean build your project?
MikhailMalyutin
@MikhailMalyutin
Sep 20 2016 10:35
no
And now yes :)
Not all is the same
error
Gavin King
@gavinking
Sep 20 2016 10:39
@FroMage ah, understood
MikhailMalyutin
@MikhailMalyutin
Sep 20 2016 10:44
Ok. In eclipse all bad :)/ How can i fix the same error in IDEA?
Error:(52, 37) ceylon: Ceylon backend error: lambda expressions are not supported in -source 1.7
(use -source 8 or higher to enable lambda expressions)
IDEA don't highlite lambdas as error
The problem occurs after I press run
Bastien Jansen
@bjansen
Sep 20 2016 11:00
IDEA doesn't support javac options yet
see ceylon/ceylon-ide-intellij#492
MikhailMalyutin
@MikhailMalyutin
Sep 20 2016 11:03
This message was deleted
This message was deleted
This message was deleted
This message was deleted
This message was deleted