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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Bill Waggoner's avatar
145
Bill Waggoner
asked 4 years ago
Wingware Support's avatar
4.2k
Wingware Support
updated 4 years ago

Comments

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

Wingware Support's avatar Wingware Support (4 years ago)
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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Bill Waggoner's avatar
145
Bill Waggoner
answered 4 years ago
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 (4 years ago)
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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)