microsoft / microsoft/pyright

Exiting with a non-zero exit code causes nano to think the linter failed to run

Open
#11,762 0 comments 0 reactions 0 assignees View on GitHub
enhancement request
Dominant language
Python
Stars
15.6k
Forks
1.8k
Avg merge
12h 13m
Merged PRs (30d)
52

Description

**Is your feature request related to a problem? Please describe.**
In nano, if a linter exits with a non-zero exit code, it assumes the command has failed and aborts showing the results from the linter all-together (Instead simply displaying `[ Error invoking '' ]`, e.g. `[ Error invoking 'pylint' ]`).

**Describe the solution you’d like**
It would be helpful if pyright had a flag (or config option) similar to pylint's `--exit-zero` flag, so it can be used more easily in nano (the other option here being some form of wrapper to trash the exit code, which is not desirable since it adds unnecessary complexity).

Contributor guide

Open the contributing guide

Research direction

Start by locating Pyright's command-line option and configuration handling for process exit status, then check how diagnostics are emitted when a linter-like invocation returns a non-zero code. Add a documented option or configuration setting matching the requested behavior, and verify that diagnostics remain visible while the selected invocation can exit successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.