First time here? Check out the FAQ!
1

Select items to refactor

Hi, a quick question on refactoring. Selecting a symbol to refactor gives you a list of locations with a checkbox next to each one. Sometimes comes up with an unticked check box and question mark next to the symbol indicating Wing thinks it's a possible match only.

Questin is, how to easily tick/untick multiple checkboxes in this list? Takes a while to manually tick/untick matches if there lots of them! I can't see anything in the preference settings. This is all on Windows, Wing Pro 6.11

Cheers,

Steve

Steve Ingram's avatar
11
Steve Ingram
asked 2018-05-25 10:35:00 -0500
Wingware Support's avatar
4.1k
Wingware Support
updated 2019-03-14 08:25:08 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

The ones with ? are possible matches where Wing could not determine the types of one or both symbols so it doesn't know if it's actually the same symbol.  It looks like there is no way to check all the boxes quickly, which is partly an oversight and partly due to the fact that often this indicates that you should add to your Python Path in Project Properties so Wing can resolve imports or use one of the hints at http://wingware.com/doc/edit/helping-... so Wing can figure out the types.  Often not much is needed to get things to "click" for the analysis engine, and in general things work a lot better once this is done.

That said, I think we should try to make it easier to check items, probably by allowing multi-select in the list and checking on/off all the selected ones, as well as adding check-all-possible.  The issue here is of course that making this too easy can lead to people refactoring incorrectly.   Hence our greater emphasis on getting the analysis to be complete and correct in the first place...

Wingware Support's avatar
4.1k
Wingware Support
answered 2018-05-25 10:52:00 -0500
Wingware Admin's avatar
231
Wingware Admin
updated 2019-03-07 08:14:43 -0500
edit flag offensive 0 remove flag delete link

Comments

Thanks very much! Hadn't set the python path, oops! Multi select would be handy like you say, but there's always a balance between making things quick and easy to both break and fix....Cheers,Steve

Steve Ingram's avatar Steve Ingram (2018-05-25 11:01:00 -0500) edit
1

Hello I have the same problem of very many cliks for refactoring within the same module. While progressing in the analysis of my application, I feel like changing the name of a symbol which I find not appropriate. As long as this is in the same module, I do not think that python Path would help. Therefore I vote in favor of mutliple select!.....

piscvau's avatar piscvau (2019-06-29 02:07:17 -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