javavscode icon indicating copy to clipboard operation
javavscode copied to clipboard

extension is providing incorrect quickfix code actions

Open robaho opened this issue 1 year ago • 7 comments

I see this in the extension host logs:

2024-04-25 20:33:33.896 [warning] Oracle.oracle-java - Code actions of kind 'quickfix 'requested but returned code action is of kind 'refactor.rewrite'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code actions.

This is using the latest v22.0

robaho avatar Apr 26 '24 13:04 robaho

Can you please provide steps to reproduce the issue where you got incorrect quick actions?

Achal1607 avatar Apr 26 '24 13:04 Achal1607

I am not really sure. I keep getting a popup message like "Element with id 17 is already registered" - which I "think" is a gradle issue - but in looking through the logs to see what might be causing this I found those warnings, so I thought I would report it.

robaho avatar Apr 26 '24 14:04 robaho

Because the warnings log that you have shared were present in previous version of extensions as well, so problem is faced with quickfix code actions or some gradle issue is there? Can you please clarify this.

Achal1607 avatar Apr 26 '24 14:04 Achal1607

I noticed the message in the logs - which seems to indicate there is a problem with the quickactions code in the extension. I don't have any more details than that - sorry.

robaho avatar Apr 26 '24 15:04 robaho

FYI: PR raised on the netbeans side: https://github.com/apache/netbeans/pull/7368

Achal1607 avatar May 10 '24 06:05 Achal1607

Fix available in NB-23

Achal1607 avatar May 14 '24 14:05 Achal1607

Nice work!

robaho avatar May 14 '24 14:05 robaho

اريد كود حساب اسم معين

Almushki avatar May 17 '24 15:05 Almushki

Merged

Achal1607 avatar Jun 17 '24 10:06 Achal1607