Visualforce Page editing sometimes does not allow me to <enter>
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)
-
repo owner -
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!
-
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?
-
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 :(.
-
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.
-
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>
-
reporter <apex:page id="TestIssue"> <apex:pageBlock> <div> <ul></ul> </div> </apex:pageBlock> </apex:page>
-
repo owner Thanks! I'll let you know what I find.
-
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:
- Pasting the example, putting the cursor in between <ul> and </ul>, and trying to hit ENTER.
- Pasting the example, removing the entire div, and retyping the div and ul elements.
- 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.
-
reporter Thanks for looking into this quickly!
-
repo owner What's the extension of the file in which this is occurring? Is it something other than
.page
or.component
(case-sensitive)? -
reporter It's .page.
-
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.
-
reporter Yeah, please do!
I can test it in about 20 mins. What do I have to do?
-
repo owner Okay, you can download the build here:
https://drive.google.com/open?id=0B2eoK6ID4_FeVUJpUkRQandoa0U
Once downloaded, you can install it using Settings>Plugins>Install plugin from disk and choosing the downloaded archive file. Let the IDE restart and see if the problem is still present. Please let me know your findings!
-
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.
How can I uninstall this update?
-
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.
-
reporter Thanks Scott!
-
repo owner - changed status to resolved
My pleasure! Thanks for providing all the useful troubleshooting info!
-
repo owner Fix delivered in 1.6.7.9.
- Log in to comment
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.