Skip to content

error message misformatted #1423

Closed
Closed

Description

@stexandev

Bug Report

Description

I tried calling semantic-release --verbose --noop --strict version.

Expected behavior

Since I have no commits on my branch since the latest release, I expect PSR to return and print the error message formatted in bold orange.

Actual behavior

The error message is black and prepended by [bold orange1].

The reason for the bug is, so I guess, that in

click.echo is used to print the error instead of rprint

Environment

  • Operating System (w/ version): LMDE 7
  • Python version: 3.14.2
  • Pip version: uv 0.9.26
  • Semantic-release version: 10.5.3
  • Build tool (w/ version): uv 0.9.26
pip freeze
annotated-doc==0.0.4
annotated-types==0.7.0
anybadge==1.16.0
anyio==4.12.0
argcomplete==3.6.3
arrow==1.4.0
astroid==4.0.2
attrs==25.4.0
bandit==1.9.2
black==25.12.0
boolean.py==5.0
certifi==2025.11.12
cfgv==3.5.0
charset-normalizer==3.4.4
click==8.1.8
click-option-group==0.5.9
colorama==0.4.6
commitizen==4.11.2
coverage==7.13.1
decli==0.6.3
defusedxml==0.7.1
Deprecated==1.3.1
dill==0.4.0
distlib==0.4.0
dnspython==2.8.0
dotty-dict==1.3.1
fastapi==0.121.2
filelock==3.20.1
flake8==7.3.0
flake8-html==0.4.3
fqdn==1.5.1
genbadge==1.1.3
gitdb==4.0.12
GitPython==3.1.45
graphql-core==3.2.7
h11==0.16.0
harfile==0.4.0
httpcore==1.0.9
httptools==0.7.1
httpx==0.28.1
hypothesis==6.148.7
hypothesis-graphql==0.11.1
hypothesis-jsonschema==0.23.1
identify==2.6.15
idna==3.11
importlib_resources==6.5.2
iniconfig==2.3.0
interrogate==1.7.0
isoduration==20.11.0
isort==7.0.0
Jinja2==3.1.6
jsonpointer==3.0.0
jsonschema==4.25.1
jsonschema-specifications==2025.9.1
junit-xml==1.9
librt==0.7.4
license-expression==30.4.4
markdown-it-py==4.0.0
MarkupSafe==3.0.3
mccabe==0.7.0
mdurl==0.1.2
mypy==1.19.1
mypy_extensions==1.1.0
nodeenv==1.9.1
orjson==3.11.4
packaging==25.0
pathspec==0.12.1
pillow==12.0.0
pipdeptree==2.30.0
platformdirs==4.5.1
pluggy==1.6.0
pre_commit==4.5.1
prompt_toolkit==3.0.51
py==1.11.0
pycodestyle==2.14.0
pydantic==2.12.5
pydantic_core==2.41.5
pydocstringformatter==0.7.5
pyflakes==3.4.0
Pygments==2.19.2
pylint==4.0.4
pymongo==4.15.4
pyrate-limiter==3.9.0
pytest==9.0.2
pytest-subtests==0.15.0
python-dateutil==2.9.0.post0
python-debian==1.0.1
python-dotenv==1.2.1
python-gitlab==6.5.0
python-magic==0.4.27
python-semantic-release==10.5.3
pytokens==0.3.0
PyYAML==6.0.3
questionary==2.1.1
referencing==0.37.0
requests==2.32.5
requests-toolbelt==1.0.0
reuse==6.2.0
rfc3339-validator==0.1.4
rfc3987==1.3.8
rich==14.2.0
rpds-py==0.30.0
schemathesis==4.8.0
sentry-sdk==2.44.0
setuptools==80.9.0
shellingham==1.5.4
six==1.17.0
smmap==5.0.2
sortedcontainers==2.4.0
starlette==0.49.3
starlette-testclient==0.4.1
stevedore==5.6.0
tabulate==0.9.0
tenacity==9.1.2
termcolor==3.2.0
tomlkit==0.13.3
typing-inspection==0.4.2
typing_extensions==4.15.0
tzdata==2025.3
uri-template==1.3.0
urllib3==2.6.2
uvicorn==0.38.0
uvloop==0.22.1
virtualenv==20.35.4
watchfiles==1.1.1
wcwidth==0.2.14
webcolors==25.10.0
websockets==15.0.1
Werkzeug==3.1.4
wrapt==2.0.1

git log --oneline --decorate --graph --all -n 50

Configuration

Semantic Release Configuration
[tool.semantic_release]
# commit additional files
assets = ["uv.lock"]
build_command = """
    uv lock --upgrade-package "$PACKAGE_NAME"
    uv export --no-dev --format cyclonedx1.5 > sbom.json
    uv build
"""

commit_message = "chore(release): {version}"
major_on_zero = false
no_git_verify = true
tag_format = "{version}"
version_toml = [
  "pyproject.toml:tool.somesy.project.version",
  "pyproject.toml:project.version",
]
version_variables = []

[tool.semantic_release.changelog]
exclude_commit_patterns = [
  "^Merge",
  "^Revert",
  "^test",
  "^refactor",
  "^docs",
  "^ci",
  "^chore",
  "^build",
]

[tool.semantic_release.publish]
# files added to the gitlab release
dist_glob_patterns = ["dist/*", "sbom.json"]

[tool.semantic_release.remote]
domain = "gitlab.*****.de"
token = { env = "GL_TOKEN" }
type = "gitlab"

Build System Configuration

GitHub Actions Job Definition

Execution Log

semantic-release -vv command

Additional context

Activity

  1. added
    bugSomething isn't working properly
    triagewaiting for initial maintainer review
    on Jan 27, 2026
  2. added
    confirmedPrevent from becoming stale
    and removed
    triagewaiting for initial maintainer review
    on Jan 28, 2026
  3. added a commit that references this issue on Mar 17, 2026
    9fdc9fc
  4. frankgoldfish commented on Mar 17, 2026

    @frankgoldfish
    Contributor

    I've opened a PR to fix this: #1437

    The fix replaces click.echo(err_msg, err=True) with rprint(err_msg, file=sys.stderr) in the strict code path, making it consistent with the non-strict path which already uses rprint.

  5. github-actions commented on Jun 16, 2026

    @github-actions

    It has been 90 days since the last update on this confirmed issue. @python-semantic-release/team can you provide an update on the status of this issue?

  6. added 3 commits that reference this issue on Jul 5, 2026
    75b1fe9
    6a92487
    2f71f3b
  7. added a commit that references this issue on Jul 5, 2026
    5e8f94c
  8. codejedi365 commented on Jul 6, 2026

    @codejedi365
    Contributor

    🎉 This issue has been resolved in v10.6.1 🎉

    You can find more information about this release on the GitHub Releases page.

    If your issue persists, please reply here and we will re-open the issue. If you receive a new error, please open a new issue and reference this issue there.

  9. removed
    confirmedPrevent from becoming stale
    needs-updateNeeds status update from maintainers
    on Jul 6, 2026
  10. added theissue type on Jul 6, 2026
  11. added
    resolvedUsed when a bug has been fixed & released
    and removed
    bugSomething isn't working properly
    on Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    resolvedUsed when a bug has been fixed & released

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions