intellij-quarkus
intellij-quarkus copied to clipboard
New project can be created with blank "Class name" and "Path" fields
- firstly I think all required field should be marked with an asterisk
- new project can be created with blank "Class name" and "Path" fields, which leads to issues
A) empty project will be created (only project folder with empty src folder, .idea folder and 1 file inside - and code-with-quarkus.iml)
Content of the code-with-quarkus.iml file:
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
B) following exception appears:
com.intellij.util.io.HttpRequests$HttpStatusException: Request failed with status code 400. Status=400, Url=https://code.quarkus.io/api/download?p&a=code-with-quarkus&b=MAVEN&c&v=1.0.0-SNAPSHOT&g=org.acme
at com.intellij.util.io.HttpRequests.throwHttpStatusError(HttpRequests.java:643)
at com.intellij.util.io.HttpRequests.openConnection(HttpRequests.java:624)
at com.intellij.util.io.HttpRequests.access$300(HttpRequests.java:56)
at com.intellij.util.io.HttpRequests$RequestImpl.getConnection(HttpRequests.java:375)
at com.intellij.util.io.HttpRequests$RequestImpl.getInputStream(HttpRequests.java:384)
at com.redhat.devtools.intellij.quarkus.module.QuarkusModuleBuilder.lambda$null$2(QuarkusModuleBuilder.java:142)
at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:516)
at com.intellij.util.io.HttpRequests.process(HttpRequests.java:498)
at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:56)
at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:349)
at com.redhat.devtools.intellij.quarkus.module.QuarkusModuleBuilder.lambda$processDownload$3(QuarkusModuleBuilder.java:141)
at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:255)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Update - after repeatedly deleting and creating new projects with blank "Class name" and "Path" fields, sometimes happens that new project is created with the default class name (org.acme.ExampleResource) and default Path (/hello)