Editor Bug - Double Click

General discussion on mikroC PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
dslocum
Posts: 102
Joined: 31 Aug 2009 12:21

Editor Bug - Double Click

#1 Post by dslocum » 13 Oct 2018 22:25

Using MikroC PRO dsPIC editor 7.1.0 on Win 10 64 bit.

In a normal Windows style editor, if I double click a word, the editor will highlight and select that word.

In my editor, double clicking on a word will move my edit window to some random place in the text and highlights some unrelated text. I think this has something to do with recent edits to the text and / or moving text around, but I can't duplicate it.

For instance, I try to double click the word "LVL_Target":
2018-10-13 17_17_21-mikroC PRO for dsPIC v.7.1.0-C__Users_dsloc_Desktop_VODER Firmware_VODER Code_Re.png
2018-10-13 17_17_21-mikroC PRO for dsPIC v.7.1.0-C__Users_dsloc_Desktop_VODER Firmware_VODER Code_Re.png (8.62 KiB) Viewed 2623 times
And the editor takes me here:
2018-10-13 17_20_49-mikroC PRO for dsPIC v.7.1.0-C__Users_dsloc_Desktop_VODER Firmware_VODER Code_Re.png
2018-10-13 17_20_49-mikroC PRO for dsPIC v.7.1.0-C__Users_dsloc_Desktop_VODER Firmware_VODER Code_Re.png (5.74 KiB) Viewed 2623 times

dslocum
Posts: 102
Joined: 31 Aug 2009 12:21

Re: Editor Bug - Double Click

#2 Post by dslocum » 13 Oct 2018 22:42

A similar issue is when I manually highlight "LVL_Target" and hit Ctrl-F (Find) on the keyboard. The Find window pops up correctly with the correct word, but finds something completely unrelated. Subsequent F3 (search next) searches go to more strange places.
2018-10-13 17_34_34-Find Text.png
2018-10-13 17_34_34-Find Text.png (33.44 KiB) Viewed 2621 times
2018-10-13 17_35_14-mikroC PRO for dsPIC v.7.1.0-C__Users_dsloc_Desktop_VODER Firmware_VODER Code_Re.png
2018-10-13 17_35_14-mikroC PRO for dsPIC v.7.1.0-C__Users_dsloc_Desktop_VODER Firmware_VODER Code_Re.png (6.58 KiB) Viewed 2621 times
2018-10-13 17_35_47-mikroC PRO for dsPIC v.7.1.0-C__Users_dsloc_Desktop_VODER Firmware_VODER Code_Re.png
2018-10-13 17_35_47-mikroC PRO for dsPIC v.7.1.0-C__Users_dsloc_Desktop_VODER Firmware_VODER Code_Re.png (6.38 KiB) Viewed 2621 times

User avatar
petar.suknjaja
mikroElektronika team
Posts: 683
Joined: 05 Mar 2018 09:44
Location: Belgrade

Re: Editor Bug - Double Click

#3 Post by petar.suknjaja » 18 Oct 2018 16:24

Hi,
I'll try to reproduce the issue and then report it to our developers.
Kind regards,
Petar

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Editor Bug - Double Click

#4 Post by filip » 25 Oct 2018 08:25

Hi,

Can you please attach the project that demonstrates this issue ?

Regards,
Filip.

dslocum
Posts: 102
Joined: 31 Aug 2009 12:21

Re: Editor Bug - Double Click

#5 Post by dslocum » 28 Oct 2018 16:42

OK. Here you go.
Attachments
VODER Code - for MikroE.zip
(94.45 KiB) Downloaded 86 times

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Editor Bug - Double Click

#6 Post by filip » 29 Oct 2018 15:02

Hi,

I have tried your code on my PC using and didn't manage to reproduce this issue ?

Is it possible that you try this on another PC, just to check things out ?

Regards,
Filip.

dslocum
Posts: 102
Joined: 31 Aug 2009 12:21

Re: Editor Bug - Double Click

#7 Post by dslocum » 31 Oct 2018 12:12

Hi Filip,

I tried your suggestion, but I have found the problem area. It is when sections of code are "rolled up" - hidden by clicking the "-". I'm not an expert, but it seems that when the code is hidden, search features don't know about it, so they place the search selection in a place that would be normal if the code was NOT hidden. Make sense?

The first file is when I double click "Serial_Init" when Flush_Com1 is expanded. The second file is when Flush_Com1 is rolled up. Notice that the editor selection seems to be at some random place.

(It looks like the images are reversed. I can't remember how to place images inline. Sorry - hope you get the idea.)

Hope this helps!

Best regards,

Doug
Attachments
2018-10-31 07_05_28-Window.png
2018-10-31 07_05_28-Window.png (24.45 KiB) Viewed 2559 times
2018-10-31 07_01_20-Window.png
2018-10-31 07_01_20-Window.png (18.38 KiB) Viewed 2559 times

Dominic75
Posts: 87
Joined: 05 Oct 2012 23:37
Location: Quebec, Canada

Re: Editor Bug - Double Click

#8 Post by Dominic75 » 05 Nov 2018 12:53

Just don't use the "Collapse Feature" (If you can call that a feature when it's breaks things), it is utterly broken. If you start using it you will see that it's not only the search that is broken when you collapses code. (Search in this forum, you will find many post on this and other GUI defects)

dslocum
Posts: 102
Joined: 31 Aug 2009 12:21

Re: Editor Bug - Double Click

#9 Post by dslocum » 30 Apr 2023 00:22

Disappointed today... Even after several years, it seems this problem has still not been resolved. It just bit me AGAIN. :twisted: :( :evil:

Post Reply

Return to “mikroC PRO for dsPIC30/33 and PIC24 General”