CnPack Forum » CnWizards IDE Wizards » Rename(F2) did not work with last version


2015-12-28 15:05 ukrainian
Rename(F2) did not work with last version

Hi,
After update with last stable version( 1.0.9.803 Build 2015.12.12) the functionality "Rename and Replace Identifier under Cursor with F2" stop working. I'm using Delphi XE8

[[i] Last edited by  ukrainian at 2015-12-28 15:53 [/i]]

2015-12-28 20:13 Passion
Can't reproduce this problem. Could you provide more information using our Bug Report Wizard in Menu?

If you have time, could you help to download our debug version to test it?

[url]http://www.cnpack.org/downbuilds.php?kind=debug&lang=zh-cn[/url]

CnDebugViewer will record the logs and please save and send it to us?

2015-12-29 04:02 ukrainian
Hi,&lt;br /&gt;&lt;br /&gt;<br />
After review I found that "Rename(F2)" did not work on my two units that are declare with Namespace something like this: MyNameSpace.MyUnitName. In this two units I use and a lot of XML Documentary comments, but in other units where F2 works I used also XML Document comments so it cannot be a problem. I install a debug version and found this error "Access violation at address 00000000 in module 'bds.exe'. Read of address 0000000...." :)
Here is and my log file. I hope it can help You

[[i] Last edited by  ukrainian at 2015-12-29 04:07 [/i]]

2015-12-29 09:43 Passion
OK. Maybe parsing error. I'll check this problem. Thanks for your log.

2016-1-11 15:07 ukrainian
Hi,
I was send you a PM, but forum did not work correct and I did not know you received it. I found the problem. In this two problem units there was Identifiers that contains Cyrillic letter "e". When change it to Latin "e" the Rename functionality work again. But in New(Unicode) RAD Studio it is possible to declare Identifiers in ASCII and UNICODE char([url=http://docwiki.embarcadero.com/RADStudio/Seattle/en/Identifiers]RAD Studio Identifiers[/url]).
You can test and fix it on some future release.

Best regards!

[[i] Last edited by  ukrainian at 2016-1-11 15:10 [/i]]

2016-1-11 17:25 Passion
These days we're migrating the whole website to a new server, so your data maybe lost. :L

And could you send me the file contains the chars which will cause F2 broken? I'll check it.

2016-1-11 20:53 ukrainian
Hi,
I made some simple unit and define a class TMyClass.
I make a privet field FValueE where last "E" is Cyrillic letter. In name of getter method GetValueE() again last letter "E" is Cyrillic. When the "E" letters are Latin everything is OK. I try to rename and from Latin to Cyrillic "E" and take a error "Invalid Identifier. Abord Replacing." With build-in Delphi Refactor replace I can do i on both sides Cyrillic<->Latin.
I hope this can help you.

2016-1-12 12:22 Passion
See. I'll check it.

2016-1-16 15:18 Passion
Now we add some Unicode Identifier support to F2 rename feature in 812 nightly-build version of CnWizards, Could you download and try it ?

http://www.cnpack.org/downbuilds.php

2016-1-17 00:51 ukrainian
Hi,
Everythin is work fine. I test it with rename already exist Unicode identifier and then rename Latin identifier with Cyrillic identifier and two test work.
Thanks for fast reaction and fixing

2016-1-17 10:39 Passion
OK. I think there're some minor problems about IDE Open Tools API support for unicode identifiers, so if meet problem about it, please tell us. We'll fix again.

页: [1]


Powered by Discuz! Archiver 5.0.0  © 2001-2006 Comsenz Inc.