Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows interactive debugging fixes #544

Merged
merged 2 commits into from
May 23, 2020

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

  • Fix a path issue preventing the interactive debugger from working on Windows systems
  • Fix a colorama issue on Windows related to the interactive debugger

How I did it

  • Properly convert the path using BrowniePytestPlugin._path, so that the lookup in node_map doesn't produce a KeyError
  • Load and init colorama within the init process of Console to ensure it properly has an effect

How to verify it

Load the interactive debugger on a Windows system.

when using the console for interactive test debugging, colorama
doesn't seem to have any effect. by initializing it again during
the console init method, we ensure proper colorized output for
windows users.

admittedly this is a bandaid and not a solution, but repeated
calls to colorama.init() have no effect so i don't think there
are any unintended side effects or performance hit taken here.
@codecov-commenter
Copy link

codecov-commenter commented May 23, 2020

Codecov Report

Merging #544 into master will decrease coverage by 0.04%.
The diff coverage is 25.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #544      +/-   ##
==========================================
- Coverage   88.47%   88.43%   -0.05%     
==========================================
  Files          56       56              
  Lines        6276     6279       +3     
  Branches     1386     1387       +1     
==========================================
  Hits         5553     5553              
- Misses        494      496       +2     
- Partials      229      230       +1     
Impacted Files Coverage Δ
brownie/_cli/console.py 55.84% <0.00%> (-0.74%) ⬇️
brownie/test/managers/runner.py 86.40% <100.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 900567a...62fbbc0. Read the comment docs.

@iamdefinitelyahuman iamdefinitelyahuman merged commit 782c32e into master May 23, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix-windows-debug-console branch May 23, 2020 16:17
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.

None yet

2 participants