Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer doesn't prompt to install a JDK if none is found #194

Closed
Bob-Davis opened this issue Oct 23, 2019 · 10 comments
Closed

Installer doesn't prompt to install a JDK if none is found #194

Bob-Davis opened this issue Oct 23, 2019 · 10 comments

Comments

@Bob-Davis
Copy link

I just installed the XML support extension on my macOS (10.14.6), and didn't get a prompt to install a JDK. When I followed up with installing the Java Extension Pack, I did get it though. This is a fresh OS and I hadn't installed OpenJDK yet, so I should have gotten the prompt to download and install it.

Attached is an image of what I got with the Java Extension Pack installer, and would have expected to see when installing the XML extension.

Screen Shot 2019-10-23 at 10 04 56 AM

@fbricon
Copy link
Collaborator

fbricon commented Oct 24, 2019

the same popup should show up not on install, but when the xml extension is activated, i.e when an xml document is opened

@fbricon
Copy link
Collaborator

fbricon commented Oct 25, 2019

If you disable all java extensions, the first time you open an xml document you get
Screen Shot 2019-10-25 at 11 31 50 AM
(See the source)

@Bob-Davis
Copy link
Author

That might become frustrating for someone who just wants to edit a file quickly. Informing them again (even though it's in the docs as a requirement) might provide a better user experience.

@angelozerr
Copy link
Contributor

That might become frustrating for someone who just wants to edit a file quickly.

I understand your frustration and I think no-java developer don't like our vscode-xml because they need to install Java and they prefer installing other XML extensions which don't require java.

I think vscode-xml is for user who wants advanced XML support like validation, completion based on XML Schema / DTD. If Java is not installed, it's a little boring to configure it, but after that you benefit with advanced XML support than other XML extensions (written in TypeScript) doesn't support.

vscode-xml consumes LSP4XML a language server written in Java. Why Java? Because LSP4XML is based on Xerces the Java library which manages advanced XML Schema / DTD validation. It doesn't exist in TypeScript the same library which provides the same features than Xerces.

Informing them again (even though it's in the docs as a requirement) might provide a better user experience.

You mean that you wish to have the popup when you install the vscode-xml extension and not when you open a XML file?

@dsopko
Copy link

dsopko commented Jan 6, 2020

Simply boring to configure it? Here is a clue, I'm a non-java developer and I started attempting to install the extension at 3:40 PM, it's now 4:25 PM I've installed multiple versions of the JAVA SDK from Red Hat which I needed to hand over addresses, phone numbers, emails, and now I'm into multiple web searches as to why it still cant locate the Java SDK and now it appears the next step might be debugging source code. Is there really anything special in here that is worth my time?

@fbricon
Copy link
Collaborator

fbricon commented Jan 7, 2020

@dsopko did you set xml.java.home in your preferences?

@bluebrown
Copy link

Simply boring to configure it? Here is a clue, I'm a non-java developer and I started attempting to install the extension at 3:40 PM, it's now 4:25 PM I've installed multiple versions of the JAVA SDK from Red Hat which I needed to hand over addresses, phone numbers, emails, and now I'm into multiple web searches as to why it still cant locate the Java SDK and now it appears the next step might be debugging source code. Is there really anything special in here that is worth my time?

To be frank, that sounds like you need to brush up on your general it skills. If you need advanced xml validation then you should be able to install a package and make its binary available to your system.

I came also here a bit frustrated, not because I can't install the jdk, but more because I don't want to. After reading the above explanation regarding Xerces, it makes totally sense though.

I think maybe a solution could be to offer a lighter version by default that allowed to opt into advanced features if the JDK is installed. I don't know if this would be doable because the code may be completely in java.

@fbricon
Copy link
Collaborator

fbricon commented Oct 23, 2020

@bluebrown we're working on providing an xml language server that doesn't require installing Java #316

@Lorenz-N
Copy link

Lorenz-N commented Jun 9, 2021

Shouldn't this issue be closed already since you clearly noted at the README:

NO LONGER REQUIRES JAVA! since v0.15.0

https://github.com/redhat-developer/vscode-xml#no-longer-requires-java-since-v0150

@angelozerr
Copy link
Contributor

You are right @Lorenz-N, thanks for the update.

Fixed with #316

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants