Organize imports deletes import scala.language.reflectiveCalls?

81 views
Skip to first unread message

James Moore

unread,
Jan 2, 2013, 12:40:17 AM1/2/13
to scala-i...@googlegroups.com
When I've got import scala.language.reflectiveCalls set in a file, it seems like organize imports (ctrl-shift-O) deletes it every time.  Anyone else see that?


Som Snytt

unread,
Jan 2, 2013, 1:45:33 AM1/2/13
to scala-i...@googlegroups.com
On Tue, Jan 1, 2013 at 9:40 PM, James Moore <ja...@banshee.com> wrote:
When I've got import scala.language.reflectiveCalls set in a file, it seems like organize imports (ctrl-shift-O) deletes it every time.  Anyone else see that?

Yes. It also adds import Seq.apply for my test Seq(1,2,3).

That must be due to the law of conservation of namespace.  When one name is sent to the other universe, another name must be imported back to ours.
 

Mirko Stocker

unread,
Jan 2, 2013, 10:38:11 AM1/2/13
to scala-i...@googlegroups.com
Hi,

>> When I've got import scala.language.reflectiveCalls set in a file, it
>> seems like organize imports (ctrl-shift-O) deletes it every time.

Unfortunately, Organize Imports is unaware of the scala.language
imports of SIP 18, and it could take some time to fully support it.
I've created a ticket for it:
https://www.assembla.com/spaces/scala-ide/tickets/1001406

> Yes. It also adds import Seq.apply for my test Seq(1,2,3).

This one I can't reproduce, can you open a bug report with a
self-contained example?

> That must be due to the law of conservation of namespace. When one name is
> sent to the other universe, another name must be imported back to ours.

:-)

Cheers

Mirko

--
Mirko Stocker | m...@misto.ch
Work: http://ifs.hsr.ch | http://infoq.com
Personal: http://misto.ch | http://twitter.com/m_st
Reply all
Reply to author
Forward
0 new messages