Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Preserve type inference when errors exist in Scala source file
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
virtualeyes  
View profile  
 More options Oct 21 2012, 8:22 am
From: virtualeyes <sit1...@gmail.com>
Date: Sun, 21 Oct 2012 05:22:41 -0700 (PDT)
Local: Sun, Oct 21 2012 8:22 am
Subject: Preserve type inference when errors exist in Scala source file
This may be a difficult problem to solve, but one event that annoys me
daily is, while hacking out some test code block (e.g. to figure out
why another piece of code is not working), type inference (that is,
hover cursor over class/property/method and see type information)
vanishes, and I then have to comment out/get working any errors in the
source file before type inference returns (sometimes I have to close/
re-open the file)

If this is a Juno issue let me know. Also, if it's just the way it is,
let me know, can live with it ;-)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Simon Schäfer  
View profile  
 More options Oct 21 2012, 9:17 am
From: Simon Schäfer <m...@antoras.de>
Date: Sun, 21 Oct 2012 15:17:24 +0200
Local: Sun, Oct 21 2012 9:17 am
Subject: Re: [scala-ide-user] Preserve type inference when errors exist in Scala source file
Can you provide a code example to show what is not working? I can't
follow your text in detail.

On Sun 21 Oct 2012 02:22:41 PM CEST, virtualeyes wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
virtualeyes  
View profile  
 More options Oct 22 2012, 2:14 am
From: virtualeyes <sit1...@gmail.com>
Date: Sun, 21 Oct 2012 23:14:21 -0700 (PDT)
Local: Mon, Oct 22 2012 2:14 am
Subject: Re: Preserve type inference when errors exist in Scala source file
Silly example, but you get the point:
val test = 1
1.flatMap{_.toString} // error
val list = List(1,2,3) // hover cursor over "list", no type info
displays

In fact, no type information displays anywhere in the source file
until error(s) are resolved.

Juno, Java 7, Scala IDE latest (yesterday's nightly)

Am curious to know if others are experiencing the same...

On Oct 21, 3:17 pm, Simon Schäfer <m...@antoras.de> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mirco Dotta  
View profile  
 More options Oct 22 2012, 3:03 am
From: Mirco Dotta <mirco.do...@typesafe.com>
Date: Mon, 22 Oct 2012 09:03:44 +0200
Local: Mon, Oct 22 2012 3:03 am
Subject: Re: [scala-ide-user] Re: Preserve type inference when errors exist in Scala source file

> val test = 1
> 1.flatMap{_.toString} // error
> val list = List(1,2,3) // hover cursor over "list", no type info

This works for me on Indigo + latest Scala IDE 2.10 nightly. Are you on 2.9? Otherwise it looks like a Juno issue...

-- Mirco
---------------
Mirco Dotta
Typesafe - The software stack for applications that scale
PSE-D, 1015 Lausanne, Switzerland
Work: +41 (0)21 691 49 65
Twitter: @mircodotta


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iulian dragos  
View profile  
 More options Oct 22 2012, 6:41 am
From: iulian dragos <jagua...@gmail.com>
Date: Mon, 22 Oct 2012 12:40:41 +0200
Local: Mon, Oct 22 2012 6:40 am
Subject: Re: [scala-ide-user] Re: Preserve type inference when errors exist in Scala source file

On Mon, Oct 22, 2012 at 8:14 AM, virtualeyes <sit1...@gmail.com> wrote:
> Silly example, but you get the point:
> val test = 1
> 1.flatMap{_.toString} // error
> val list = List(1,2,3) // hover cursor over "list", no type info
> displays

> In fact, no type information displays anywhere in the source file
> until error(s) are resolved.

> Juno, Java 7, Scala IDE latest (yesterday's nightly)

> Am curious to know if others are experiencing the same...

Works for me in Indigo with 2.9, and also in Juno. Note that if you have
too many errors, the compiler can't really infer much anymore.

Do you know about Show Type? Might be useful if you need to debug type
errors this way (http://scala-ide.org/docs/helium/features/show-type.html)

iulian

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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
virtualeyes  
View profile  
 More options Oct 23 2012, 4:58 am
From: virtualeyes <sit1...@gmail.com>
Date: Tue, 23 Oct 2012 01:58:31 -0700 (PDT)
Local: Tues, Oct 23 2012 4:58 am
Subject: Re: Preserve type inference when errors exist in Scala source file
It can actually happen without errors as well (although errors in
source file will effectively guarantee it)

Code ahead, type inference, everything goes.

I then have to project clean and/or close & re-open the source file
before I can escape from blind coding.

Could be a Juno issue, I have no clue, just pointing it out.

If everyone else has rock solid consistent code ahead + type
inference, count me as envious...

On Oct 22, 12:41 pm, iulian dragos <jagua...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iulian dragos  
View profile  
 More options Oct 23 2012, 7:14 am
From: iulian dragos <jagua...@gmail.com>
Date: Tue, 23 Oct 2012 13:13:47 +0200
Local: Tues, Oct 23 2012 7:13 am
Subject: Re: [scala-ide-user] Re: Preserve type inference when errors exist in Scala source file

On Tue, Oct 23, 2012 at 10:58 AM, virtualeyes <sit1...@gmail.com> wrote:
> It can actually happen without errors as well (although errors in
> source file will effectively guarantee it)

> Code ahead, type inference, everything goes.

> I then have to project clean and/or close & re-open the source file
> before I can escape from blind coding.

> Could be a Juno issue, I have no clue, just pointing it out.

> If everyone else has rock solid consistent code ahead + type
> inference, count me as envious...

Are you on 2.10? That sounds like a crash in the presentation compiler.
Check your Error Log window for suspicious messages, I'm pretty sure you'll
find something (just to double check: if the outline view is empty, it's a
sure sign of such a crash).

iulian

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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
virtualeyes  
View profile  
 More options Oct 23 2012, 9:06 am
From: virtualeyes <sit1...@gmail.com>
Date: Tue, 23 Oct 2012 06:06:40 -0700 (PDT)
Local: Tues, Oct 23 2012 9:06 am
Subject: Re: Preserve type inference when errors exist in Scala source file
No, 2.9.2

Outline view is fine.

Could be Juno, could be incremental builds with Play 2 Scala, SBT...

I'll setup Indigo when I get the chance and see what the performance
differences are...

Thanks (semantic highlighting works great, btw, hung thread issue
seems to be gone ;-))

On Oct 23, 1:14 pm, iulian dragos <jagua...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
iulian dragos  
View profile  
 More options Oct 23 2012, 9:28 am
From: iulian dragos <jagua...@gmail.com>
Date: Tue, 23 Oct 2012 15:27:54 +0200
Local: Tues, Oct 23 2012 9:27 am
Subject: Re: [scala-ide-user] Re: Preserve type inference when errors exist in Scala source file

On Tue, Oct 23, 2012 at 3:06 PM, virtualeyes <sit1...@gmail.com> wrote:
> No, 2.9.2

> Outline view is fine.

> Could be Juno, could be incremental builds with Play 2 Scala, SBT...

> I'll setup Indigo when I get the chance and see what the performance
> differences are...

> Thanks (semantic highlighting works great, btw, hung thread issue
> seems to be gone ;-))

At least one good news.. :)

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

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Clint Gilbert  
View profile  
 More options Oct 23 2012, 4:11 pm
From: Clint Gilbert <clint_gilb...@hms.harvard.edu>
Date: Tue, 23 Oct 2012 16:11:27 -0400
Local: Tues, Oct 23 2012 4:11 pm
Subject: Re: [scala-ide-user] Re: Preserve type inference when errors exist in Scala source file
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/23/2012 04:58 AM, virtualeyes wrote:

> If everyone else has rock solid consistent code ahead + type
> inference, count me as envious...

You're not alone.  :(  Not infrequently, my Eclipse will get into a
state where it can't show the types of expressions or vals, and can't
offer crtl-space suggestions.  (I'm using Juno, so maybe the joke's on
me for that reason.)

The upside, I suppose, is that when types are available, they're
correct.  Just today, my IntelliJ-using coworker experienced a
situation where his IDE was "successfully" inferring types, they were
just wrong.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCG+e8ACgkQ5IyIbnMUeTuO2ACeNI904Yf02MgFz8iYfzqNP80h
FBEAn1SR7QJNzFzmjKwKV93Fgk+mQ5qn
=kwKV
-----END PGP SIGNATURE-----


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »