You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a data transfer object called Message which is for diagnostics. For example, we output a Message of level error if a plugin returns too many issues and we cut them off.
However, a trait Parser today returns Result<Vec<Issue>>, so it is not possible to emit Messages from the parser itself. We should extend the Parser interface to return a new struct ParserResult which has both a Vec<Issue> and Vec<Message>
The text was updated successfully, but these errors were encountered:
brynary
changed the title
Bug:
Allow parsers to output Messages
Nov 27, 2024
We have a data transfer object called Message which is for diagnostics. For example, we output a Message of level
error
if a plugin returns too many issues and we cut them off.However, a
trait Parser
today returnsResult<Vec<Issue>>
, so it is not possible to emit Messages from the parser itself. We should extend the Parser interface to return a newstruct ParserResult
which has both aVec<Issue>
andVec<Message>
The text was updated successfully, but these errors were encountered: