[GHC] #10313: ApiAnnotations : strings in warnings do not return SourceText

#10313: ApiAnnotations : strings in warnings do not return SourceText -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1 Keywords: | Operating System: Unknown/Multiple ApiAnnotations | Type of failure: None/Unknown Architecture: | Blocked By: Unknown/Multiple | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- The `strings` used in a `WARNING` pragma are captured via {{{ strings :: { Located ([AddAnn],[Located FastString]) } : STRING { sL1 $1 ([],[L (gl $1) (getSTRING $1)]) } .. }}} The `STRING` token has a method `getSTRINGs` that returns the original source text for a string. A warning of the form {{{#!hs {-# WARNING Logic , mkSolver , mkSimpleSolver , mkSolverForLogic , solverSetParams , solverPush , solverPop , solverReset , solverGetNumScopes , solverAssertCnstr , solverAssertAndTrack , solverCheck , solverCheckAndGetModel , solverGetReasonUnknown "New Z3 API support is still incomplete and fragile: \ \you may experience segmentation faults!" #-} }}} returns the concatenated warning string rather than the original source. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10313 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10313: ApiAnnotations : strings in warnings do not return SourceText -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | ApiAnnotations Type of failure: None/Unknown | Architecture: Blocked By: | Unknown/Multiple Related Tickets: | Test Case: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Changes (by alanz): * milestone: => 7.12.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10313#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10313: ApiAnnotations : strings in warnings do not return SourceText -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: new Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | ApiAnnotations Type of failure: None/Unknown | Architecture: Blocked By: | Unknown/Multiple Related Tickets: | Test Case: | Blocking: | Differential Revisions: Phab:D907 -------------------------------------+------------------------------------- Changes (by alanz): * differential: => Phab:D907 * milestone: 7.12.1 => 7.10.2 Comment: I have set the milestone to 7.10.2, as this is the last item blocking a full hackage round trip, resulting in 40 or so failing files out of around 50k. It does require a tiny change to Haddock, but is basically just adding `SourceText` fields to the last places they are required. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10313#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10313: ApiAnnotations : strings in warnings do not return SourceText -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: patch Priority: normal | Milestone: 7.10.2 Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | ApiAnnotations Type of failure: None/Unknown | Architecture: Blocked By: | Unknown/Multiple Related Tickets: | Test Case: | Blocking: | Differential Revisions: Phab:D907 -------------------------------------+------------------------------------- Changes (by alanz): * status: new => patch -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10313#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10313: ApiAnnotations : strings in warnings do not return SourceText
-------------------------------------+-------------------------------------
Reporter: alanz | Owner: alanz
Type: bug | Status: patch
Priority: normal | Milestone: 7.10.2
Component: Compiler | Version: 7.10.1
Resolution: | Keywords:
Operating System: Unknown/Multiple | ApiAnnotations
Type of failure: None/Unknown | Architecture:
Blocked By: | Unknown/Multiple
Related Tickets: | Test Case:
| Blocking:
| Differential Revisions: Phab:D907
-------------------------------------+-------------------------------------
Comment (by Alan Zimmerman

#10313: ApiAnnotations : strings in warnings do not return SourceText -------------------------------------+------------------------------------- Reporter: alanz | Owner: alanz Type: bug | Status: closed Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | ApiAnnotations Type of failure: None/Unknown | Architecture: Blocked By: | Unknown/Multiple Related Tickets: | Test Case: | Blocking: | Differential Revisions: Phab:D907 -------------------------------------+------------------------------------- Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed * milestone: 7.10.2 => 7.12.1 Comment: This one won't be part of `ghc-7.10`, in order to keep API clients happy. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10313#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10313: ApiAnnotations : strings in warnings do not return SourceText
-------------------------------------+-------------------------------------
Reporter: alanz | Owner: alanz
Type: bug | Status: closed
Priority: normal | Milestone: 7.12.1
Component: Compiler | Version: 7.10.1
Resolution: fixed | Keywords:
| ApiAnnotations
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Revisions: Phab:D907
-------------------------------------+-------------------------------------
Comment (by Sergei Trofimovich
participants (1)
-
GHC