Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 579341

Summary: proposals don't compute
Product: [Eclipse Project] JDT Reporter: Serhii Pylypenko <serhii.pylypenko.0>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: Dirk.Steinkamp, kalyan_prasad, Vikas.Chandra
Version: 4.23   
Target Milestone: ---   
Hardware: PC   
OS: Windows 10   
Whiteboard:
Attachments:
Description Flags
snapshot of the proposals computation empty window
none
working config set for proposals
none
all proposals options enabled none

Description Serhii Pylypenko CLA 2022-03-20 17:59:10 EDT
Created attachment 288254 [details]
snapshot of the proposals computation empty window

Version: 2022-03 (4.23.0), Build id: 20220310-1457.
I press Ctrl-Space but proposals doesn't compute, says 'computing proposals (0%)' and "1 completion proposal processors requested. 0 completed; 1 
 pending.". It works just after IDE start but stops working after a while.
I attached snapshot.
Comment 1 Dirk Steinkamp CLA 2022-03-21 05:08:44 EDT
(In reply to Serhii Pylypenko from comment #0)
> Created attachment 288254 [details]
> snapshot of the proposals computation empty window
> 
> Version: 2022-03 (4.23.0), Build id: 20220310-1457.
> I press Ctrl-Space but proposals doesn't compute, says 'computing proposals
> (0%)' and "1 completion proposal processors requested. 0 completed; 1 
>  pending.". It works just after IDE start but stops working after a while.
> I attached snapshot.

Which proposal-kinds are active in Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced?
Could you maybe narrow it down to one of them or find out if it's happening independently from the selected proposal kinds?
(If applicable: might it be related to the Lombok issue mentioned in https://bugs.eclipse.org/bugs/show_bug.cgi?id=579339?)
Comment 2 Serhii Pylypenko CLA 2022-03-21 15:51:45 EDT
(In reply to Dirk Steinkamp from comment #1)
> (In reply to Serhii Pylypenko from comment #0)
> > Created attachment 288254 [details]
> > snapshot of the proposals computation empty window
> > 
> > Version: 2022-03 (4.23.0), Build id: 20220310-1457.
> > I press Ctrl-Space but proposals doesn't compute, says 'computing proposals
> > (0%)' and "1 completion proposal processors requested. 0 completed; 1 
> >  pending.". It works just after IDE start but stops working after a while.
> > I attached snapshot.
> 
> Which proposal-kinds are active in Window -> Preferences -> Java -> Editor
> -> Content Assist -> Advanced?
> Could you maybe narrow it down to one of them or find out if it's happening
> independently from the selected proposal kinds?
> (If applicable: might it be related to the Lombok issue mentioned in
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=579339?)

Thanks for hint, I'll try to narrow by switching them off one by one and report
Active proposals are:
API Tools Proposals
Java Proposals
Java Proposals (Task Focused)
JAXB Proposals
JAX-WS Proposals
JPA Proposals
Language Server Proposals
SWT Template Proposals
Template Proposals

I'll try latest snapshot from Lombok, thanks for advice.
Comment 3 Dirk Steinkamp CLA 2022-03-21 18:32:52 EDT
(In reply to Serhii Pylypenko from comment #2)

> I'll try latest snapshot from Lombok, thanks for advice.

Latest snapshot won't help, but probably a pre-build: https://github.com/projectlombok/lombok/issues/3134#issuecomment-1069662386
Comment 4 Serhii Pylypenko CLA 2022-03-22 03:49:08 EDT
(In reply to Dirk Steinkamp from comment #3)
> (In reply to Serhii Pylypenko from comment #2)
> 
> > I'll try latest snapshot from Lombok, thanks for advice.
> 
> Latest snapshot won't help, but probably a pre-build:
> https://github.com/projectlombok/lombok/issues/3134#issuecomment-1069662386

Yeah, it fixed refactoring issue and proposals computation works well at this moment.
Many thanks for your help!
Comment 5 Serhii Pylypenko CLA 2022-03-22 04:04:18 EDT
Created attachment 288263 [details]
working config set for proposals

(In reply to Serhii Pylypenko from comment #4)
> (In reply to Dirk Steinkamp from comment #3)
> > (In reply to Serhii Pylypenko from comment #2)
> > 
> > > I'll try latest snapshot from Lombok, thanks for advice.
> > 
> > Latest snapshot won't help, but probably a pre-build:
> > https://github.com/projectlombok/lombok/issues/3134#issuecomment-1069662386
> 
> Yeah, it fixed refactoring issue and proposals computation works well at
> this moment.
> Many thanks for your help!

Sorry, I'm back again. Just after a moment I posted previous comment I found out that proposals didn't work again. I switched off them one by one and it's 'Language Server Proposals' that caused the problem. I attached screenshot for working configuration. I installed that prebuild fix of Lombok you mentioned.
Comment 6 Serhii Pylypenko CLA 2022-03-22 04:05:17 EDT
Sorry, I'm back again. Just after a moment I posted previous comment I found out that proposals didn't work again. I switched off them one by one and it's 'Language Server Proposals' that caused the problem. I attached screenshot for working configuration. I installed that prebuild fix of Lombok you mentioned.
Comment 7 Kalyan Prasad Tatavarthi CLA 2022-03-28 00:57:53 EDT
(In reply to Serhii Pylypenko from comment #6)
> Sorry, I'm back again. Just after a moment I posted previous comment I found
> out that proposals didn't work again. I switched off them one by one and
> it's 'Language Server Proposals' that caused the problem. I attached
> screenshot for working configuration. I installed that prebuild fix of
> Lombok you mentioned.

Please move the bug to appropriate component, because the above comment clearly says that "Language Server Proposals" are causing the issue and so, this is not a JDT UI issue.
Comment 8 Serhii Pylypenko CLA 2022-03-29 13:28:36 EDT
> (In reply to Serhii Pylypenko from comment #6)
> > Sorry, I'm back again. Just after a moment I posted previous comment I found
> > out that proposals didn't work again. I switched off them one by one and
> > it's 'Language Server Proposals' that caused the problem. I attached
> > screenshot for working configuration. I installed that prebuild fix of
> > Lombok you mentioned.
> 
> Please move the bug to appropriate component, because the above comment
> clearly says that "Language Server Proposals" are causing the issue and so,
> this is not a JDT UI issue.

I'm not sure that "Language Server Proposals" option is to be blamed. It seems to be intermittent problem. You see I switched it off and still sometimes experienced this problem. I switched off rest of remaining options except for necessary 'Java Proposals' and 'Java Proposals (Task-Focused)' and try to collect extra information.
Comment 9 Kalyan Prasad Tatavarthi CLA 2022-03-31 02:55:01 EDT
(In reply to Serhii Pylypenko from comment #8)
> > (In reply to Serhii Pylypenko from comment #6)
> > > Sorry, I'm back again. Just after a moment I posted previous comment I found
> > > out that proposals didn't work again. I switched off them one by one and
> > > it's 'Language Server Proposals' that caused the problem. I attached
> > > screenshot for working configuration. I installed that prebuild fix of
> > > Lombok you mentioned.
> > 
> > Please move the bug to appropriate component, because the above comment
> > clearly says that "Language Server Proposals" are causing the issue and so,
> > this is not a JDT UI issue.
> 
> I'm not sure that "Language Server Proposals" option is to be blamed. It
> seems to be intermittent problem. You see I switched it off and still
> sometimes experienced this problem. I switched off rest of remaining options
> except for necessary 'Java Proposals' and 'Java Proposals (Task-Focused)'
> and try to collect extra information.

Can you please provide the steps to reproduce/attachment of the behavior that you see after disabling other options
Comment 10 Serhii Pylypenko CLA 2022-03-31 14:32:20 EDT
Created attachment 288354 [details]
all proposals options enabled

all options enabled, proposals list builds ok
Comment 11 Serhii Pylypenko CLA 2022-03-31 14:35:49 EDT
(In reply to Kalyan Prasad Tatavarthi from comment #9)
> Can you please provide the steps to reproduce/attachment of the behavior
> that you see after disabling other options

I've just tried to enable all available options and proposal list builds normally.  Can't figure this out myself and have no time to switch all the options step by step and collect appropriate info, sorry.