IDE Double Click stops working

Answered

I've just recently been given a new Windows 10 machine at work, and have Intellij IDEA 2018.3.6 installed.

I have an issue that's driving me nuts, in that frequently the double-click stops working in Intellij.

This affects all aspects of the IDE including the trees and the editor window.

It seems to be that if I navigate away from the IDE to another window, and then come back sometimes the double click has stopped working (but not always). If I leave it for a few minutes, or carry on working without the double-click support, then randomly it will just start working again.

I haven't been able to come up with a proven way of getting it to fail, it just seems completely random. I have tried different mice, different USB ports etc. on the machine.

It is ONLY the Intellij IDE that this issue if affecting - every other Windows app I use still supports double-click when the IDE stops working.

I have tried countless installs/uninstalls, as well as using the latest 2019 version (that has other non-related issues).

Can anyone think of how I can better debug this issue, or even better provide a solution/workaround?

Thanks Steve

2
15 comments

Are there any exceptions in the logs? https://intellij-support.jetbrains.com/hc/articles/207241085 .

Can you try to assign a mouse shortcut to some action and see if the mouse double click is recognized?

Please try the current IDE version available at http://www.jetbrains.com/idea/download/index.html, use the one with JBR11 and see if it helps:

0
Avatar
Permanently deleted user

I've installed the latest JBR11 version, and touch wood to-date I've not had the issue.

I'll report back in a few days.

Thanks very much for your support!

 

 

0
Avatar
Permanently deleted user

I'm having the same issue. It appears to only happen on html files. In addition, intellisense stops working, and I'm unable to type a closing > character. I resort to copying/pasting the character. Very annoying.

0
Avatar
Permanently deleted user

Hello Adavenport,

Could you please provide the details from "Help | About"?

Also, what keyboard layout do you use?

0
Avatar
Permanently deleted user

2019.2.3 (ultimate edition)

build #IU-192.6817.14, built on September 23, 2019

Runtime version: 11.04+10-b304.69 amd64

VM: OpenJDK 64-bit Server VM by JetBrains s.r.o

 

It's often entire html files, but it looks like at this very moment it's only strings (attribute values). It's very sporadic, comes and goes. Keyboard is English (US)

0
Avatar
Permanently deleted user

Adavenport,

Do you also use Windows? Do you have the system installed on a virtual machine or not?

Concerning HTML files, do you mean that the problem disappears after opening a file of a different type? Does it get back after switching back to an HTML file?

0
Avatar
Permanently deleted user

Windows 10, not a VM.

The problem DOES disappear after opening another file type, but again, it's only not working for html attributes at the moment. There are no html attributes in other file types. Switching back to HTML doesn't resolve the issue, nor does restarting intellij.

In the following example, I can double-click every word in this file except `en`, `utf` `8`, `this`, `is`, `a` and `test`. Double clicking `doctype`, `html`, `lang`, `head` etc all highlight as expected.

I DO have a logitech trackpad (T650) installed, but I've tested with a standard USB mouse and the issue remains.

0
Avatar
Permanently deleted user

Am I getting right that the autocompletion and the '>' character are not working only in attributes when the problem happens, or they don't work in all places of the editor?

Could you check if the problem persists with all non-bundled plugins disabled?

0
Avatar
Permanently deleted user

I did some experimenting to see if I can figure out how to reproduce it: 

  1. typing `<div>` produces <div>
  2. typing <span> produces <span>
  3. typing <foo> produces <foo
  4. typing <mat-step> produces <mat-step>
  5. typing <mat-step2> produces <mat-step2

Notice how 3 and 5 don't have the closing >. It looks like it won't let me type > if it doesn't recognize the element? I don't have any non-bundled plugins enabled. 

0
Avatar
Permanently deleted user

Does it happen since starting the IDE, or it starts to happen after working for a while?

Does it work if you type '>' in an attribute, or in some random place of a file?

What about the autocompletion? As you said: "intellisense stops working".

0
Avatar
Permanently deleted user

When I originally joined this thread I thought it was sporadic, but I think I was mistaken. I think it's just consistently only working in a few scenarios. Neither restarting my computer nor intellij resolves the issue.

Typing '>' elsewhere works fine, and even in the cases where it doesn't work I'm able to copy/paste '>' to get my work done.

Intellisense in html is half-working for me:

 

<div *ngIf="variableOne" [ngClass]="variableTwo">{{variableThree}}</div>

<mat-icon [ngClass]="variableFour">{{variableFive | myPipe}}</mat-icon>

 

In the above code, ctrl-clicking "div", "variableThree" and "variableFive" works, but ctrl-clicking "variableOne", "variableTwo", "mat-icon", "variableFour" or "myPipe" does not. Autocompletion worked while typing "variableThree" and "variableFive" but nowhere else.

0
Avatar
Permanently deleted user

Thanks for all the details. Could you please clarify, what do you mean by "Intellisense"? There's no such action in IntelliJ IDEA. The basic action on Ctrl-click is called "Declaration or Usages", it either invokes Find Usages popup or moves to the declaration of the item. Do you have this action assigned to Ctrl-click? To check that, you can go to "File | Settings | Keymap", then click "Find Actions by Shortcut" loupe and Ctrl-click on "Mouse shortcut" area.

0
Avatar
Permanently deleted user

Oops, I guess I thought Intellisense was an IntelliJ thing. Turns out it's from visual studio. Regardless, I meant the auto-completion of variable names, tags, etc.

I've verified that "declaration or usages" is bound to "ctrl+button1 click". Thanks.

0
Avatar
Permanently deleted user

Adavenport,

I filed a new issue to investigate your case: https://youtrack.jetbrains.com/issue/IDEA-225895

Unfortunately, the problem is not reproduced locally.

Could you please try to recreate the problem in a small sample project? If you succeed, please, attach this project to the mentioned issue.

Also, please, attach complete logs folder from "Help | Compress Logs and Show in Explorer".

You can make the attachments private - see `Providing sensitive data` section under the topic https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications

0
Avatar
Permanently deleted user

Thanks for creating that issue. As per his suggestion I invalidated caches (File > Invalidate caches and restart...) and all my problems seem to be resolved. Thanks.

0

Please sign in to leave a comment.