Visualforce Page editing sometimes does not allow me to <enter>

Issue #205 resolved
Marius Blajevschi created an issue

Hello,

I'm not sure how to explain this better but sometimes, when editing Visualforce pages, I'm hitting <enter> and nothing happens. This happens when the cursor is in between html nodes nodes.

I included my idea.log, you can see some exceptions at the end of the log.

This seems something really major because it interrupts work completely and I need to find some workaround to get some new html elements in between.

If I disable IlluminatedCloud plugin then this issue disappears.

Comments (20)

  1. Scott Wells repo owner

    Thanks for providing the log. Can you try rebuilding caches/indices to see if that helps? In this case I'd like to rebuild all of them since the Visualforce editor is injected into the standard HTML editor. You can do that under File>Invalidate Caches / Restart and then choosing Invalidate and Restart. After the IDE restarts and rebuilds its indices, let me know if the problem persists.

  2. Marius Blajevschi reporter

    Yeah, I have already tried that. While the editor is rebuilding indexes, the issue does not occur and I can work normally. Once the indexing is done the issue re-appears.

    Let me know if you need anything anything else from me!

    Thanks!

  3. Scott Wells repo owner

    Sounds like you're a few steps ahead of me! Let me take a look and I'll let you know what I find. One thing that would definitely help is a small standalone VF page that reproduces the issue since this doesn't seem to happen ubiquitously. Do you think that might be easy to create?

  4. Marius Blajevschi reporter

    Sure, I can provide one in the 30 mins.

    Please take into consideration that I'm using IDEA on OSX 10.11. I have JAVA 1.6 (from Apple) and also Oracle's 1.8.x installed. I've player with the Info.plist -> JVMOptions -> JVMVersion: 1.6*,1.7+ to run under 1.6 and 1.7+ but with no success :(.

  5. Scott Wells repo owner

    Thanks again for the detailed info. Once you have a reproducible test case, I should be able to get to the bottom of what's going on quickly. I won't have access to my Mac until this evening, so if it's Mac-specific (I doubt it is), I won't be able to debug it until then, but hopefully it's something I can reproduce independent of OS.

  6. Marius Blajevschi reporter

    I was able to get to this really fast. Just use code below. The issue starts occurring when I am in between the <ul></ul> and I hit enter.

    If it's working for you, remove the div and ul and write them again using the autocomplete feature. First the div and it's ending, hit enter, then the ul and it's ending. Once the ending appears and the cursor is in-between <ul> and </ul> I can no longer <enter>.

    <apex:page id="TestIssue"> <apex:pageBlock> <div> <ul></ul> </div> </apex:pageBlock> </apex:page>

  7. Marius Blajevschi reporter
    <apex:page id="TestIssue">
        <apex:pageBlock>
            <div>
                <ul></ul>
            </div>
        </apex:pageBlock>
    </apex:page>
    
  8. Scott Wells repo owner

    Hmmmm...I just tried this in both IntelliJ 15.0.2 and IntelliJ 14.1.6 and wasn't able to reproduce it. I tried three things:

    1. Pasting the example, putting the cursor in between <ul> and </ul>, and trying to hit ENTER.
    2. Pasting the example, removing the entire div, and retyping the div and ul elements.
    3. Retyping the entire example.

    Those all worked for me. You're on Mac OS X so that would be the main environmental difference. Let me use the stack trace from the original supplied log and see if I can figure out the root cause so perhaps I can back up from there and figure out what's going on.

  9. Scott Wells repo owner

    What's the extension of the file in which this is occurring? Is it something other than .page or .component (case-sensitive)?

  10. Scott Wells repo owner

    Okay. I have a lead on what might be happening, though it's a only a lead since I'm not able to reproduce it and am just trying to backtrack from the NPE. Do you mind installing a test build with a prospective fix and trying it? If so, I can provide you a link very shortly.

  11. Marius Blajevschi reporter

    It's working just fine, I think you found the issue! :) There is a highlighting issue though ... probably not too big of a deal.TestIssue.png

    How can I uninstall this update?

  12. Scott Wells repo owner

    You won't need to uninstall it. I used the same version number as the latest in the plugin repository, and when I post a newer version (likely tomorrow morning), it'll automatically prompt you to update when you're ready. The newer version already includes the same fix.

  13. Log in to comment