First time here? Check out the FAQ!
1

Auto-formatting w/Black and display errors

When I have a project setup to run black on file save, I see at the bottom of the screen the status of the black formatting. If there is an error I know the formatting was not done, but I do not see why Black failed. Is there a way to see these errors reported by black?

When I run black manually on the failed file I get a detailed error report.

Jeffrey Vahue's avatar
23
Jeffrey Vahue
asked 2023-05-10 12:10:25 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

The output from black should be in the ide.log file in the Wing Settings directory listed in the About dialog box.

Wingware Support's avatar
4.1k
Wingware Support
answered 2023-05-10 15:05:09 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks for the info - I did find it there.

Is it possible to add the results of black to the 'Messages" tool or some other Code Quality tool? It would be nice if this was easily accessible from within Wing.

Jeffrey Vahue's avatar Jeffrey Vahue (2023-05-10 17:22:03 -0500) edit

We'll try to add the output to Messages or some other tool in a future release.

Wingware Support's avatar Wingware Support (2023-05-11 09:35:34 -0500) edit

I was mistaken -- output on failure should be already going to the Messages tool in the Editor category.

Wingware Support's avatar Wingware Support (2023-05-16 15:23:21 -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