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

12th
Apr 2016
David Festal
@davidfestal
Apr 12 2016 09:04
@FroMage : I'm trying to finish fixing the OSGI problems with aether, etc ... right now
and then I'll switch to the incremental build I promised you for this week @bjansen :-)
Gavin King
@gavinking
Apr 12 2016 12:51
/Users/gavin/ceylon-ide-common/source/com/redhat/ceylon/ide/common/model/CrossProjectBinaryUnit.ceylon:57: warning: declaration is deprecated: 'typechecker'
                exists originalTypeChecker = originalProject.typechecker,
@davidfestal what is the correct way to do project.typechecker now?
David Festal
@davidfestal
Apr 12 2016 12:51
you can use it for now
but in the future
I'd like to get rid of direct accesses to the typechecker object
Gavin King
@gavinking
Apr 12 2016 12:52
so you have deprecated it, but you didn’t provide an alternative?
David Festal
@davidfestal
Apr 12 2016 12:52
and add favour accessing the Phased units
fo the moment yes, right
Gavin King
@gavinking
Apr 12 2016 12:52
heh
David Festal
@davidfestal
Apr 12 2016 12:53
just to remember
Gavin King
@gavinking
Apr 12 2016 12:53
perhaps undeprecate it temporarily?
David Festal
@davidfestal
Apr 12 2016 12:53
if you want, you can do it
Gavin King
@gavinking
Apr 12 2016 12:53
I’m trying to get rid of all these stupid warnings
David Festal
@davidfestal
Apr 12 2016 12:53
and just let the deprecated note be commented with a todo
might be enough
Bastien Jansen
@bjansen
Apr 12 2016 12:53
warnings are more annoying now that they appear in color :)
David Festal
@davidfestal
Apr 12 2016 12:53
I understand
Gavin King
@gavinking
Apr 12 2016 12:54
and they make it harder to see real errors in the copious Ant output we have
David Festal
@davidfestal
Apr 12 2016 12:54
I initially thought I would be able to get rid of it earlier
sure
go on, and just add a TODO in the comment
where there was a deprecated annotation
that's OK for me
Bastien Jansen
@bjansen
Apr 12 2016 13:04
@gavinking does "extract function" always select what to extract automatically, or does it show a popup like "extract value" does?
Gavin King
@gavinking
Apr 12 2016 13:05
@bjansen depends
if you have a nonempty selection, it will take the selected expression or statements
if you have an empty selection, it will show a popup
it will also show a popup asking you to select a target scope
Bastien Jansen
@bjansen
Apr 12 2016 13:05
I can only see the target scope popup
Gavin King
@gavinking
Apr 12 2016 13:06
though you don’t have to support that immediately if you don’t want to (the code defaults to something sensible)
Bastien Jansen
@bjansen
Apr 12 2016 13:06
ok I got it
Gavin King
@gavinking
Apr 12 2016 13:06
works for me
just make sure you don’t have a selection
Bastien Jansen
@bjansen
Apr 12 2016 13:07
it seems I was putting the caret where there was only one possible choice, so the popup didn't appear
Gavin King
@gavinking
Apr 12 2016 13:26
@davidfestal do I need to come over to your house to teach you how to use Clean Imports? :)
I know that ⌘⇧O is hard to reach
you have to use three fingers
David Festal
@davidfestal
Apr 12 2016 13:27
I prefer not :-) I'll try to learn quickly !
Gavin King
@gavinking
Apr 12 2016 13:27
that’s the trick
David Festal
@davidfestal
Apr 12 2016 13:27
I know, yes, and do it sometimes
but should do it always
Bastien Jansen
@bjansen
Apr 12 2016 13:27

you have to use three fingers

still better than emacs shortcuts

Gavin King
@gavinking
Apr 12 2016 13:29
I can always tell when David has touched a file, because it’s filled with yello
David Festal
@davidfestal
Apr 12 2016 13:29
really ?
Gavin King
@gavinking
Apr 12 2016 13:29
i’m exaggerating slightly
David Festal
@davidfestal
Apr 12 2016 13:29
ha, Thanks !
but I'll be more careful in the future
Gavin King
@gavinking
Apr 12 2016 13:33
@davidfestal ok, so after cleaning imports, there are still a mountain of warnings in CeylonProjectBuild.ceylon
David Festal
@davidfestal
Apr 12 2016 13:33
this one is being in active development
I have some non-pushed changes to push
anyway
Gavin King
@gavinking
Apr 12 2016 13:34
so all those unused vars are obsolete, or new?
David Festal
@davidfestal
Apr 12 2016 13:34
so please let it like that
Gavin King
@gavinking
Apr 12 2016 13:34
well yes, i left them alone
David Festal
@davidfestal
Apr 12 2016 13:34
it's possible that they are already fixed
in my pending commits
and if not, I'll manage to remove warnings when pushing
Gavin King
@gavinking
Apr 12 2016 13:36
if only there was some kind of technology that let us have two versions of the same file, to work on in parallel
:)
David Festal
@davidfestal
Apr 12 2016 13:37
but if you want go on change it, I'll simply have more merging work :-)
Gavin King
@gavinking
Apr 12 2016 13:38
imagine if we had some kind of technology, that woudl have let you do your work in some kind of “stream”, or “branch”, without bothering other people with incomplete changes
we can dream :)
Bastien Jansen
@bjansen
Apr 12 2016 13:39
I doubt people would want to use this kind of tool
Gavin King
@gavinking
Apr 12 2016 13:39
it would probably have a totally alien user interface
designed by three-headed, two-fingered natives of alpha centauri