Double click functionality within Eclipse (MacOS)

I'm not sure if it's something with my Eclipse setup (which I don't think I've customized since installing Eclipse for use with Connect IQ) or if it's a bug but I have encountered an issue when double-clicking on a word within a MonkeyC source file.

At first I thought it was random but I have now narrowed it down to the use of double quotes (for strings) within a source file. If a MC file has no strings in it then all is fine; double-clicking highlights the word and triple-clicking highlights the line. However, if a source file contains a string, then double-clicking on a word only works up to the point where the string occurs in the file. After that, double-clicking highlights everything from the previous occurance of a double quote character to the next occurance -- see the attached image. I did a quick search but I'm guessing this is something that is set in the Connect IQ plugin? I'm a SublimeText guy most of the time so I'm in a bit of uncharted territory here.



This occurs in valid, compiling and runnable MonkeyC source files so it's not an issue with me having invalid code.

For those that want to try and replicate, here is the code above that I have in the screenshot.
class HighlightSample {

var canDoubleClickThis = 1234;
var andThis;
var thisToo;

// no problems double clicking in this comment or this function
function canDoubleClickThisFunction() {
var xyz;

xyz = canDoubleClickThis + 42;
}

function troubleStartsInHere() {
// still no issues, with this comment or double clicking
// the println or the Test string...
println("Test...");
// double-clicking on the println below highlights what
// appears to be random but is actually string related weirdness
println("Trouble!");
}

}


Cheers,
Douglas
  • Thanks for narrowing it down. It has bugged me ever since I started in 2015, but never tried to narrow down the issue.

    Hopefully it is an easy one to fix.
    Would be interesting to know if same happens in Windows or not?
  • it happens to me too, eclipse mars x64 + W10

    it got me crazy, because i didn't see it described anywhere.
  • I've seen it on Windows (Luna and Neon) but not consistently. It seems it works fine for a day or two, then starts happening. Restarting Eclipse seems to return it to normal.

    I just tried the code posted above and right now it works fine for me... (2.2.1 Plugin)
  • Former Member
    Former Member over 8 years ago
    Thanks!

    That is super odd. I'm not sure if that's a bug in our plugin or a bug in eclipse itself. Either way that is super odd and I've created a ticket to investigate.

    -Coleman
  • That is super odd. I'm not sure if that's a bug in our plugin or a bug in eclipse itself. Either way that is super odd and I've created a ticket to investigate.

    -Coleman


    Just wondering if there was any traction on this issue and if so, if there's any news on the cause and/or workarounds? Even if someone could point me to where I could look into fixing it (assuming it's an Eclipse plugin thing that I could access) I'd be willing to try.

    Cheers,
    Douglas
  • Former Member
    Former Member over 8 years ago
    Hey,

    I double checked on the ticket. We have an idea on what might be causing it, but it's currently part of our back log of issue right now. Thanks for your patience.

    -Coleman
  • Just wondering if there was any traction on this issue and if so, if there's any news on the cause and/or workarounds? Even if someone could point me to where I could look into fixing it (assuming it's an Eclipse plugin thing that I could access) I'd be willing to try.

    Cheers,
    Douglas


    It is so annoying that I ended up associating mc files with the java editor. Syntax highlighting is not working properly but worth the minor discomfort for me.
  • Former Member
    Former Member over 7 years ago
    This has been fixed and should be available when the 3.x SDK is out of beta.