Repository navigation
Read erlc's diagnostics from stderr (fixes #9) - #10
Merged
Merged
Conversation
erlc writes every diagnostic to stderr and nothing to stdout, so with STREAM_STDOUT the linter never saw any output. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014pvU247nEC9XmgzkSMGdt4
Member
|
Thanks. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9, the part that is still needed after SublimeLinter#2001.
erlc prints every diagnostic on stderr and nothing on stdout (
erlc -W bad.erlgives 0 bytes on stdout), but the linter asked forSTREAM_STDOUT, so the regex never saw any output and no markers were ever shown.error_streamis nowutil.STREAM_STDERR.Tested on Sublime Text 4215 / SublimeLinter 4.30 / Erlang/OTP 29 / Windows 11, through SublimeLinter (markers read back from
persist.file_errors), with this file:bad.erl:5:5: Warning: variable 'X' is unusedXbad.erl:6:5: Warning: variable 'Y' is unusedYbad.erl:6:17: variable 'Z' is unboundZbad.erl:9:1: Warning: function g/0 is unusedgbad.erl:9:8: function h/1 undefinedh(columns in the marker column are zero-based.) Before the change the same file gives no markers.
(Written by Claude, the AI assistant doing this work for dpc00.)
🤖 Generated with Claude Code
https://claude.ai/code/session_014pvU247nEC9XmgzkSMGdt4