View previous topic :: View next topic |
Author |
Message |
njepsen
Joined: 13 Aug 2007 Posts: 469
|
Posted: Thu Nov 06, 2014 10:31 pm Post subject: bug in "replace" feature |
|
|
Replace will not find a search string if it is enclosed in a #if statement. Eg
Code: | #if num =5
Etc
Etc
#endif |
The string "num" cannot be globally replaced with something else because 'replace' will not find it.
(BASCOM-AVR version : 2.0.7.7 ) _________________ Neil |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5921 Location: Holland
|
Posted: Thu Nov 06, 2014 10:38 pm Post subject: |
|
|
works for me, replaced it with :
Code: | #if NUM =5
Etc
Etc
#endif |
is this reproducible? when you restart the IDE and load the project?
do you have options enabled :
- case sensitive
- whole words only
- regular expressions _________________ Mark |
|
Back to top |
|
|
njepsen
Joined: 13 Aug 2007 Posts: 469
|
Posted: Thu Nov 06, 2014 10:51 pm Post subject: |
|
|
Hi mark
Yes I have tested it several times, and every time it will miss the string with edit/replace but will find it with edit/.find.
neil _________________ Neil |
|
Back to top |
|
|
albertsm
Joined: 09 Apr 2004 Posts: 5921 Location: Holland
|
Posted: Thu Nov 06, 2014 11:01 pm Post subject: |
|
|
then i suggest to create a support ticket. add some test file that demonstrates the problem. and please verify that the problem exist with the file you send. it could be possible that it is related to the file, but in this case i doubt that. so it would be interesting to find out what is happening. _________________ Mark |
|
Back to top |
|
|
njepsen
Joined: 13 Aug 2007 Posts: 469
|
Posted: Thu Nov 06, 2014 11:06 pm Post subject: |
|
|
Hi again mark,
So far its just been of nuisance value, but i will do some more testing, and do that.
regards
neil _________________ Neil |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Thu Nov 06, 2014 11:44 pm Post subject: |
|
|
Just tried it here with your example, find and replace both work as expected using the target "num" and several other strings I tried. Whole words only, and regular expressions either on or off. both work. Scope global and origin entire. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
njepsen
Joined: 13 Aug 2007 Posts: 469
|
Posted: Thu Nov 06, 2014 11:53 pm Post subject: |
|
|
Hi Adrian,
I have done more testing in the last hour and it is definitely reproducable with my version of the qasseembler. However vthere is also another issue, which may bhe related (see my post re F7 key). Before I go any further, I'll re-load the assembler.
neil _________________ Neil |
|
Back to top |
|
|
|