Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

bug in "replace" feature

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
njepsen

Bascom Member



Joined: 13 Aug 2007
Posts: 469

newzealand.gif
PostPosted: Thu Nov 06, 2014 10:31 pm    Post subject: bug in "replace" feature Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Thu Nov 06, 2014 10:38 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
njepsen

Bascom Member



Joined: 13 Aug 2007
Posts: 469

newzealand.gif
PostPosted: Thu Nov 06, 2014 10:51 pm    Post subject: Reply with quote

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
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Thu Nov 06, 2014 11:01 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
njepsen

Bascom Member



Joined: 13 Aug 2007
Posts: 469

newzealand.gif
PostPosted: Thu Nov 06, 2014 11:06 pm    Post subject: Reply with quote

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
View user's profile
AdrianJ

Bascom Expert



Joined: 16 Jan 2006
Posts: 2483
Location: Queensland

australia.gif
PostPosted: Thu Nov 06, 2014 11:44 pm    Post subject: Reply with quote

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
View user's profile Visit poster's website
njepsen

Bascom Member



Joined: 13 Aug 2007
Posts: 469

newzealand.gif
PostPosted: Thu Nov 06, 2014 11:53 pm    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum