Bug 547743 - [content assist] Auto activation of completion on Java files out of a source folder cause popup on every keystroke.
Summary: [content assist] Auto activation of completion on Java files out of a source ...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 4.12   Edit
Hardware: Other All
: P5 minor (vote)
Target Milestone: ---   Edit
Assignee: Mickael Istria CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: usability
Depends on: 562655
Blocks: 101420
  Show dependency tree
 
Reported: 2019-05-28 14:06 EDT by Mickael Istria CLA
Modified: 2023-11-20 19:42 EST (History)
3 users (show)

See Also:


Attachments
Screenshot (113.15 KB, image/png)
2020-11-11 15:52 EST, Lars Vogel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mickael Istria CLA 2019-05-28 14:06:18 EDT
Auto activation also currently causesan annoying popup on every keystroke in .java files that aren't in a JDT source folder.

To reproduce:
• Create a blank non-java project
• create a .java file in it with basic content and open it in Java editor
• trigger completion (manually or automatically)
-» An annoying popup interrupts typing.
Comment 1 Mickael Istria CLA 2019-05-28 14:11:17 EDT
Instead of a popup, it would be better integrated to show the error as a completion proposal. Hitting enter on it would show the popup or directly bring to preferences.
Comment 2 Dani Megert CLA 2019-05-29 08:33:15 EDT
This is really a rare setup. Most other Java related things won't work either, though not showing a dialog.
Comment 3 Mickael Istria CLA 2019-05-31 04:43:56 EDT
Not so rare to me, it happens once every week.
Comment 4 Mickael Istria CLA 2019-07-03 10:46:20 EDT
I'd rather see the error reported as an error completion proposal in the completion popup. This would be less interrupting.
@Dani what do you think?
Comment 5 Lars Vogel CLA 2020-11-11 15:40:46 EST
(In reply to Mickael Istria from comment #4)
> I'd rather see the error reported as an error completion proposal in the
> completion popup. This would be less interrupting.

+1
Comment 6 Lars Vogel CLA 2020-11-11 15:52:03 EST
Created attachment 284739 [details]
Screenshot

Mickael, is this the popup you are also seeing? Super annoying

Do I understand you correctly that you want to write a log error message instead of the popup?
Comment 7 Mickael Istria CLA 2020-11-11 16:53:50 EST
(In reply to Lars Vogel from comment #6)
> Mickael, is this the popup you are also seeing? Super annoying

Yes.

> Do I understand you correctly that you want to write a log error message
> instead of the popup?

I basically want to show the content-assist popup as usual, but with 1st entry like
"⚠️ Completion not available because this compilation unit is not part of a project".
Comment 8 Mickael Istria CLA 2021-03-02 09:42:37 EST
What's even stranger is that for files that are not in workspace at all, then completion is somewhat available. I think a .java file that's in the workspace but out of a source folder should be equally capable as a non-workspace file.
Comment 9 Eclipse Genie CLA 2021-03-02 10:12:12 EST
New Gerrit change created: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/177057
Comment 10 Eclipse Genie CLA 2023-11-20 19:42:57 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.