PeterPanettone 157 Posted October 20, 2019 (edited) I have compiled GExperts 1.3.14 build 80 (r2809) in Delphi 10.3.1 : Searched for identifier "newshortcut" in Uses Clause Manager: As you can see in the above screenshot, nothing was found. Then I searched in RFindUnit 1.2.0 and found several identifiers: So why GExperts couldn't find these identifiers? Please have a look at RFindUnit at GitHub - it has a lot of useful features: https://github.com/rfrezino/RFindUnit Unfortunately, the author has abandoned the project. Please ask him whether you can use the source code in the GExperts Uses Clause Manager. Edited October 20, 2019 by PeterPanettone 1 Share this post Link to post
dummzeuch 1505 Posted October 20, 2019 By default, the uses manager only looks for identifiers only in the favorite units. If that is empty, you won't get any. In the settings you can tell it to search all units instead. 1 Share this post Link to post
PeterPanettone 157 Posted October 20, 2019 (edited) 21 minutes ago, dummzeuch said: By default, the uses manager only looks for identifiers only in the favorite units. If that is empty, you won't get any. In the settings you can tell it to search all units instead. Here are the settings: As you can see, the "Parse all units" option is checked. PS: I have also cleared and rebuilt the UCM cache. Still no results for "newshortcut" yet. (However, a search for "newcolor" got 6 results). Edited October 20, 2019 by PeterPanettone 1 Share this post Link to post
dummzeuch 1505 Posted October 20, 2019 I should have looked closer at the rfindunit results: There is no identifier that starts with newshortcut, its only part of a word. The uses clause manager searches only for identifiers that start with the given search text. So, maybe it should also search for identifiers that contain in anywhere. As for using rfindunit sources: I looked into it a while ago and found only one advantage: It extracts identifiers from the dcu files when no sources are available. This turns into a drawback when the dcu format changes (which it will). I definitely won't invest the time for reverse engineering the dcu format whenever it changes. Share this post Link to post
PeterPanettone 157 Posted October 20, 2019 (edited) 7 minutes ago, dummzeuch said: I should have looked closer at the rfindunit results: There is no identifier that starts with newshortcut, its only part of a word. The uses clause manager searches only for identifiers that start with the given search text. So, maybe it should also search for identifiers that contain in anywhere. RFindUnit finds madShell.newShortCut - so UCM should also find it. Why it doesn't? Edited October 20, 2019 by PeterPanettone Share this post Link to post
PeterPanettone 157 Posted October 20, 2019 (edited) 47 minutes ago, dummzeuch said: So, maybe it should also search for identifiers that contain in anywhere. There is absolutely NO logic in searching only for identifiers STARTING with the search term. Searching for identifiers CONTAINING the search term is the sensible way to go. Or you could add an option radio choice "Starts/Contains the search term". Edited October 20, 2019 by PeterPanettone Share this post Link to post
PeterPanettone 157 Posted October 20, 2019 (edited) 4 hours ago, dummzeuch said: As for using rfindunit sources: I looked into it a while ago and found only one advantage: It extracts identifiers from the dcu files when no sources are available. You can process the DCU files whenever you want, MANUALLY: It says: "This command will list all the DCUs files that you don't have access to .PAS and process it to make it available for search." PS: And it would be easy to make it process only those .DCU files where there is no .PAS file with the same name. Edited October 20, 2019 by PeterPanettone Share this post Link to post
PeterPanettone 157 Posted October 20, 2019 The GExperts UCM has the advantage to open the unit with the selected identifier in the IDE, so the user can inspect it: Unfortunately, RFindUnit does not have this feature. So, in my Christmas wishlist I have inserted a GExperts UCM which has all the other features of RFindUnit. 1 Share this post Link to post
PeterPanettone 157 Posted October 20, 2019 BTW, in the UCM configuration options there should be a warning when the user activates the "Read project units from map file rather than .dpr" checkbox (otherwise he would not see any units from the map file): The warning message should say: "Please make sure to activate the Map file creation in the Project options". 1 Share this post Link to post
PeterPanettone 157 Posted October 20, 2019 If the user has activated the map file usage for UCM (and activated map file creation in the project options) then the list of the project units in UCM contains all units the project uses EXPLICITLY and IMPLICITLY: This list can be quite USEFUL. So please add a button in the Project tab to copy/save this list. This would be very useful! 1 Share this post Link to post
dummzeuch 1505 Posted October 20, 2019 May I remind you that adding suggestions to the sf.net ticketing system increases your chances of gettimg them implemented? 1 Share this post Link to post
PeterPanettone 157 Posted October 20, 2019 3 minutes ago, dummzeuch said: May I remind you that adding suggestions to the sf.net ticketing system increases your chances of gettimg them implemented? I will do that, but useful ideas from other users could also arise here which could be added to the sf.net ticketing system later. 1 Share this post Link to post
PeterPanettone 157 Posted October 20, 2019 (edited) I couldn't wait, so I implemented the Copy Project Units List myself: The code is very simple: If you like, the button will save the list to a text file instead (in a save dialog), if the CTRL key is pressed while clicking. I have sent you the modified source in a personal message. Edited October 20, 2019 by PeterPanettone 2 Share this post Link to post
PeterPanettone 157 Posted October 20, 2019 BTW, the first page in UCM is "Search Path": Is this the correct term? Shouldn't it be "LIBRARY PATH"? Share this post Link to post
dummzeuch 1505 Posted October 21, 2019 No, it's the combination of the project's search path and the library path. Basically everything the IDE knows about. Share this post Link to post
PeterPanettone 157 Posted October 21, 2019 1 hour ago, dummzeuch said: No, it's the combination of the project's search path and the library path. Basically everything the IDE knows about. It would be useful if the user could add a list of custom paths to this "Search Path". (Like with the MMX Indexer) Share this post Link to post
Fr0sT.Brutal 900 Posted October 21, 2019 @PeterPanettone man you really mixing forum and WhatsApp. 1 3 Share this post Link to post
PeterPanettone 157 Posted October 21, 2019 1 hour ago, Fr0sT.Brutal said: @PeterPanettone man you really mixing forum and WhatsApp. You really mix up WhatsApp and delphi praxis forum. Don't you know what a forum is used for? Please don't annoy forum users. Share this post Link to post
Daniel 417 Posted October 21, 2019 Sure, this is a place to discuss. But there is no need to get mad to each other. This thread is quite dominant in all listings of recent activity and indeed this happens from time to time when a thread is quite active. Nonetheless you should accept when other people say "come on, keep it short". Honestly, it is a very specific topic and as long as we have no option to really ignore a thread, it pops up again and again. So this thread has an impact to this community. By nature of couse, because this community is a place for discussions. So when you are contribuiting to a thread that sticks out like this and is basically a conversation between two people, there might be some reactions to it - yes. I think we all need some forbearance [never used this word before, but dictionary says it is right 😉 ] here. Share this post Link to post
Stefan Glienke 2002 Posted October 21, 2019 Personally I also find threads annoying that have multiple posts after each other from the same person. Possible solutions: - make posts editable for a reasonable amount of time so people don't have to multipost but can amend to their previous one - moderate and manually squash such posts into one Share this post Link to post
PeterPanettone 157 Posted October 21, 2019 (edited) 5 hours ago, Daniel said: But there is no need to get mad to each other. MAD PEOPLE certainly should not participate in an IT forum. MAD PEOPLE should rather search for psychiatric help, maybe in a psychotherapeutic forum where they can criticize each other for writing too much. Edited October 21, 2019 by PeterPanettone 1 Share this post Link to post
Attila Kovacs 629 Posted October 21, 2019 I'm so upset I wrote this comment. Share this post Link to post