Scala Programming Language
  1. Scala Programming Language
  2. SI-6120

Warnings beyond the first to the same position are dropped

    Details

      Description

      All warnings beyond the first to the same position are silently dropped. Since they may be about unrelated matters, this is less than ideal. Martin says:

      What we could do:
      
      1) there may only be one error reported in any position
      2) If an error is reported in a position no warning can be reported in
      the same position
      3) if there is no error reported in some position, any number of
      warnings may be reported in that position.
      

      This would certainly solve the problem for me - my concern is with the set of warnings issued on successful compilation runs (which are likely to be inferred by the user to be the complete set of normal warnings.)

        Activity

        Hide
        Paul Phillips added a comment -

        Oh geez, I found this comment written 2 years, 5 months ago, by me of course.

        /** Note: if a symbol has both @deprecated and @migration annotations and both
         *  warnings are enabled, only the first one checked here will be emitted.
         *  I assume that's a consequence of some code trying to avoid noise by suppressing
         *  warnings after the first, but I think it'd be better if we didn't have to
         *  arbitrarily choose one as more important than the other.
         */
        
        Show
        Paul Phillips added a comment - Oh geez, I found this comment written 2 years, 5 months ago, by me of course. /** Note: if a symbol has both @deprecated and @migration annotations and both * warnings are enabled, only the first one checked here will be emitted. * I assume that's a consequence of some code trying to avoid noise by suppressing * warnings after the first, but I think it'd be better if we didn't have to * arbitrarily choose one as more important than the other. */
        Hide
        James Iry added a comment -

        2.10.2 is about to be cut. Kicking down the road and un-assigning to foster work stealing.

        Show
        James Iry added a comment - 2.10.2 is about to be cut. Kicking down the road and un-assigning to foster work stealing.
        Show
        Jason Zaugg added a comment - https://github.com/scala/scala/pull/2998

          People

          • Assignee:
            Paul Phillips
            Reporter:
            Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development