Strange result after a "go to definition" LC 6.7

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Strange result after a "go to definition" LC 6.7

Post by jmburnod » Tue Dec 09, 2014 6:09 pm

Hi All,
I update one stack
After a "go to definition" in a group backgroud script I get a strange result "resolve ambiguity"between two groups with the same name although there is only one script with the searched handler.
No problem with LC 5.5.5
That happens with LC 6.7.0.
If I change the name of the group, the name of the other group also is changed and a search with find tools return only one group.

it looks like a bug

Best regards
Jean-Marc
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Strange result after a "go to definition" LC 6.7

Post by dunbarx » Tue Dec 09, 2014 6:41 pm

Jean-Marc

Do you indeed have two groups? Did you say that when you changed the name of one group, the name of the other group changed also?

Craig

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Strange result after a "go to definition" LC 6.7

Post by jmburnod » Tue Dec 09, 2014 6:59 pm

hi Craig,
Do you indeed have two groups?
One background group called "grNavigation" placed on 7 cds. They have the same ID
Did you say that when you changed the name of one group, the name of the other group changed also?
Yes. :shock:
If I change the name of group "grNavigation" to "grNavigation1" the name of the other group also change to "grNavigation1" in the "resolve ambiguity" message
And when I search the handler with find tools, it return only one result
Jean-Marc
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Strange result after a "go to definition" LC 6.7

Post by dunbarx » Tue Dec 09, 2014 8:53 pm

Hi.

A background Group placed on several cards is only one group. It is rather "shared" among those cards. That is why changing the name on any particular card will cause the name of the "other" groups to change as well. And so only one group would be "found" by searching.

How do you get the "resolve ambiguity" message? What sort of code trips this?

Craig
Last edited by dunbarx on Thu Dec 11, 2014 12:26 am, edited 1 time in total.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Strange result after a "go to definition" LC 6.7

Post by jmburnod » Tue Dec 09, 2014 10:45 pm

Hi Craig
How do you get the "resolve ambiguity" message? What sort of code trips this?
No code. Just search an handler with a "go to definition" from the script editor
Jean-Marc
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Strange result after a "go to definition" LC 6.7

Post by dunbarx » Thu Dec 11, 2014 12:27 am

Hi.

What is "go to definition"?

Craig

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Strange result after a "go to definition" LC 6.7

Post by jmburnod » Thu Dec 11, 2014 7:29 am

Hi Craig,
What is "go to definition"?
A contextual menu in the script editor (with a click right or with optionkey )
Jean-Marc
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Strange result after a "go to definition" LC 6.7

Post by dunbarx » Thu Dec 11, 2014 6:41 pm

Jean-Marc.
A contextual menu in the script editor (with a click right or with optionkey )
Still cannot find this. Just a right-click anywhere? During a step-through? I am on a Mac.

Craig

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Strange result after a "go to definition" LC 6.7

Post by jmburnod » Thu Dec 11, 2014 7:41 pm

Hi Craig,
Sorry. An image should be better than explanations with my poor english
http://www.alternatic.ch/jmb/devrev/IGo ... tionLC.png
And many thanks for your time
Jean-Marc
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10354
Joined: Wed May 06, 2009 2:28 pm

Re: Strange result after a "go to definition" LC 6.7

Post by dunbarx » Thu Dec 11, 2014 10:58 pm

Jean-Marc.
thanks for your time
Thanks for yours. I never used "go to definition" before. Never actually remembered it existed at all.

I bet your English is better than my French.

Craig

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Strange result after a "go to definition" LC 6.7

Post by jmburnod » Fri Dec 12, 2014 6:53 pm

Hi
Here is a simplified stack.
You can reproduce this problem and make differences between LC 5.5.5. and 6.7.0
Jean-Marc
Attachments
ResolveAmbiguityTest_001.livecode.zip
(38.91 KiB) Downloaded 165 times
https://alternatic.ch

Post Reply