Skip to content

Conversation

indev29
Copy link
Contributor

@indev29 indev29 commented May 20, 2022

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Other: Replace this with a description of the type of this PR

Description

This PR adds error handling for value errors when parsing deprecated config values (e.g. when convert<double> throws, like in #2724).

I didn't add warn_deprecate, since this warning would be the next thing users see after they fix the original error.

Related Issues & Documents

Closes #2724

Documentation (check all applicable)

  • This PR requires changes to the Wiki documentation (describe the changes)
  • This PR requires changes to the documentation inside the git repo (please add them to the PR).
  • Does not require documentation changes

@codecov
Copy link

codecov bot commented May 20, 2022

Codecov Report

Merging #2725 (ae08285) into master (1ee11f7) will decrease coverage by 0.00%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master    #2725      +/-   ##
==========================================
- Coverage   13.56%   13.56%   -0.01%     
==========================================
  Files         152      152              
  Lines       11357    11358       +1     
==========================================
  Hits         1541     1541              
- Misses       9816     9817       +1     
Flag Coverage Δ
unittests 13.56% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
include/components/config.hpp 0.00% <0.00%> (ø)
src/components/bar.cpp 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1ee11f7...ae08285. Read the comment docs.

Copy link
Member

@patrick96 patrick96 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix :)

The config stuff is overdue for a bit of refactoring, especially for error reporting (e.g. adding line numbers).
And we should take care that no internal errors ever escape the config code.

@patrick96 patrick96 merged commit 0331a5f into polybar:master Jun 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Help needed! "error: Uncaught exception, shutting down: stof"
2 participants