Anonymous Apex window missing buttons

Issue #2345 resolved
Stanley Zapata created an issue

The execute script buttons in the Anonymous Apex window. This issue is preventing me from executing scripts in the Anonymous Apex window.

Steps to Reproduce:

  1. Open IntelliJ IDEA with the Illuminated Cloud plugin installed.
  2. Create a new Anonymous Apex script in the IDE.
  3. Check the toolbar and the editor for the execute script buttons.
  4. Note that the execute script buttons are missing.

Environment:

  • Operating System: Mac OS 13.3.1
  • IntelliJ IDEA Version: 2023.1.1
  • Illuminated Cloud Plugin Version: 2.2.6.4

Comments (9)

  1. Scott Wells repo owner
    • changed status to open

    Sorry for the issue. I was hoping to see some errors in the provided log, but it looks clean, at least with regard to what's going on here. Do you see this same behavior in the SOQL Query and/or Log Analyzer tool windows?

  2. Scott Wells repo owner

    Thanks for confirming. Yes, those are just warnings issued by the most recent versions of the underlying JetBrains IDEs about the thread state when certain data is accessed. They’re completely benign and (should be) unrelated to what’s happening here. I’m planning to address them since they are noisy, but they shouldn’t be contributing to the behavior that you’re seeing here.

    Do you see this behavior in all IC2 projects or just this one? If you create a brand new project from scratch, are the Anonymous Apex toolbar buttons present?

  3. Stanley Zapata reporter

    I hadn’t thought about checking other projects but yeah, it only seems to have been affecting this one project. I just recreated the Project and the buttons are back!

    So recreating the project seems to be the workaround.

  4. Scott Wells repo owner

    If the original project is still available, I’d be curious to see the differences between the .idea directories of the two to see if I can pinpoint why this was happening in that one project. There must be something in the original one causing those buttons not to show, and I can’t even begin to speculate what that might be. Do you mind sending those over if the original is still hanging around? Again, just the .idea directories from each and not anything else, and of course feel free to redact anything sensitive from those files. You can also email them to me directly at support@illuminatedcloud.com. No issues if you don’t have the original anymore.

  5. Scott Wells repo owner

    I'm going to resolve this since the problem is in fact resolved by creating a new project...but I don't ever like that as a solution, of course.

  6. Stanley Zapata reporter

    Don’t have the original .idea sorry, but thanks for the help. It was driving me nuts not being able to run my scripts in the IDE

  7. Scott Wells repo owner

    No problem. I’m just really sorry for the issue. If you ever see it happen again, please keep a copy of the original project and send before/after over so I can see what the heck happened.

  8. Log in to comment