First time here? Check out the FAQ!
1

Errors using black in remote activated environment

I have started using Black for reformatting but I'm having trouble in my remote activated environment (pyenv virtualenv).

I was getting timeouts for black but just updated to 7.2.2.5 and am seeing Error executing command .internal.edit.black_file

So, the timeouts have gone away but it still isn't working.

Bill Waggoner's avatar
145
Bill Waggoner
asked 2020-04-29 09:45:04 -0500
Wingware Support's avatar
4k
Wingware Support
updated 2020-04-29 15:24:16 -0500
edit flag offensive 0 remove flag close merge delete

Comments

Could you submit a bug report from Wing's help menu and include the error log?

Wingware Support's avatar Wingware Support (2020-04-29 09:46:41 -0500) edit
add a comment see more comments

1 Answer

1

My apologies. It is actually working. My problem was that there was a subtle syntax error and black abandoned the reformat. No errors were displayed in Wing though. Once I ran pylint and corrected the error then black worked fine.

Bill Waggoner's avatar
145
Bill Waggoner
answered 2020-04-29 10:36:15 -0500
edit flag offensive 0 remove flag delete link

Comments

No problem! Clearly we should be reporting total failure of black to run in some way, so I'm marking this as a bug report.

Wingware Support's avatar Wingware Support (2020-04-29 15:24:51 -0500) edit
add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer