SEL* Not working

Issue #2289 resolved
Matthew Chevalier created an issue

Steps:

  1. Open anonymous query tool
  2. type SEL*
  3. hit tab

Then nothing happens, when previously a modal popped up for selecting the object type

Comments (9)

  1. Scott Wells repo owner

    Matthew, I’m not seeing that behavior:

    Are there any exceptions in your idea.log?

  2. Matthew Chevalier reporter
      <div class="preview-container wiki-content"><!-- loaded via ajax --></div>
      <div class="mask"></div>
    </div>
    

    </div> </form>

  3. Scott Wells repo owner

    Well, those are actually just noise from the 2022.3 versions of the JetBrains IDEs. There’s not an actual exception being thrown in those stack traces, only logged, and it’s benign if quite noisy. Almost every release the plugin SDK logs warnings about how things should be handled properly, and those are VERY fluid rules. IC2 has been doing those exact same things since ~2016 without any such noise in the logs, but now they’re being reported. I’ll certainly tune things to match the “new” requirements right after the new year, but for now you can disregard the ones that include reportPsiElementOnEdt and similar.

    Okay, so as you said, you type SEL*<tab> and it doesn’t start that live template, correct? Does SEL<tab> work? What if you use Ctrl+J/Cmd+J and type SEL? Does it show the following?

    If so, does it work if you then cursor down to SEL* and hit Enter?

    I’m just trying to characterize what works and what doesn’t since I just tried this on multiple machines (Windows, Mac, and Linux) and can’t reproduce it.

  4. Matthew Chevalier reporter

    Okay, so as you said, you type SEL*<tab> and it doesn’t start that live template, correct?

    A: correct

    Does SEL<tab> work?

    A: it works, but only creates a rudimentary query with Id in the select clause

    What if you use Ctrl+J/Cmd+J and type SEL? Does it show the following?

    A: yes

    If so, does it work if you then cursor down to SEL* and hit Enter?

    A: no. The template loads, and I select the object, but the fields never populate

  5. Scott Wells repo owner

    Okay. Please do a full File > Invalidate Caches, allow the IDE to restart, and after indexing completes, see whether the same problem is still present. I’m wondering if the 2022.3 update (or something else) borked your indices based on the behavior you’re describing.

  6. Scott Wells repo owner

    If you just type `SELECT Id FROM ` and then press Ctrl+Space, does it show a completion list for SObject types properly, e.g.:

    It just seems to be behaving as if it isn’t able to enumerate the SObjects types.

  7. Scott Wells repo owner

    Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.

  8. Log in to comment