payara / ecosystem-support

Placeholder repository to handle community requests for the Payara Platform ecosystem tools
3 stars 2 forks source link

Bug Report: VS Code Cannot Register Existing Domain #56

Closed m-reza-rahman closed 1 year ago

m-reza-rahman commented 1 year ago

Description


I think a bug was introduced in the VS Code plugin or something is broken in the latest VS Code and Payara. I am unable to register an existing Payara 5 domain (domain1). This used to work fine.

Environment

Windows - 11 22H2 Java - 17.0.3.1 2022-04-22 LTS VS Code - 1.71.2 Payara Tools - v1.1.1 Payara - 5.2022.2

JamesHillyard commented 1 year ago

Hi @m-reza-rahman,

I was able to add a local domain to the latest version of VS Code and Payara Tools successfully. Could you please share more details about what happens when you try to register an existing domain?

Thanks, James

NailykSturm commented 1 year ago

Hello @JamesHillyard,

Like @m-reza-rahman, I can't select a domain when I'm trying to add a server

For the environement, I use

JamesHillyard commented 1 year ago

Hi @NailykSturm,

Could you please attach a screenshot in place of where the select domain option used to be and what is now occurring for you? I still haven't been able to reproduce this locally on the following environment:

Thanks, James

NailykSturm commented 1 year ago

I don't know if this what you expected, but, when I'm select a domain, there is nothing happening

Screenshot_bug_selecting_domain_vscode

JamesHillyard commented 1 year ago

Thank you for sharing a screenshot, that's not what I was expecting. That is the same popup I have locally, where I'm able to click one of the domains in the dropdown that I want to register to VS Code.

Are you unable to click domain1 at this point?

Thanks, James

NailykSturm commented 1 year ago

I can click on it, but nothing happend after. I've trying to click on it when the server is started and when the server is down, but nothing changes

NailykSturm commented 1 year ago

I think, I worked around the problem, because instead of selecting a local domain, I've selected one remonte and for now, it work

Thanks for the help ^^

m-reza-rahman commented 1 year ago

I can confirm my issue is the same as @NailykSturm. How can we help debug this issue? Does scheduling a debugging session make sense or recording a video?

JamesHillyard commented 1 year ago

Hi @m-reza-rahman,

A short recording of the issue would help showcase the exact error you are encountering. I have managed to inconsistently reproduce an issue which sounds similar to what @NailykSturm reported where you click the domain name and nothing happens, clicking the button repeatedly does eventually work though.

Thanks, James

m-reza-rahman commented 1 year ago

Here is a video the best I have time to produce: https://drive.google.com/file/d/15HWIY5PjrFmXe0ENRaVimIumJD8c7UYw/view?usp=sharing. We are all talking about the same problem and the same symptoms. I cannot get this to work at all.

Elifzeynepedman commented 1 year ago

Hi @NailykSturm @m-reza-rahman,

I have been able to reproduce it locally. It seems wrong configurations of the environment variables might be the cause of this.

Can you please try configuring the JAVA_HOME and java Path environment variables? path = %JAVA_HOME%\bin JAVA_HOME = C:\Program Files\Java\jdk-17.0.3.1

Thanks, Elif

m-reza-rahman commented 1 year ago

I can confirm this works. Should it be documented somewhere?

Elifzeynepedman commented 1 year ago

Hi @m-reza-rahman

I have recently added this to the Payara VSCode extension documentation so that it is clearer in the future, however, it has not been published yet.

Thanks, Elif

JamesHillyard commented 1 year ago

Documentation has been merged and published. Thanks for raising this issue and your continued assistance in tracking down the cause, it's much appreciated.