Skip to content

Cloning a repo without any code fails with incorrect message #2939

@datho7561

Description

@datho7561

If you clone a repo that doesn't contain a devfile.yaml or any files that indicate the language or framework being used, then the form fails with the error message "Issue on Parsing Git URL/devfile".

This is a bad error message, since we know that the issue is not parsing the Git URL. Also, we don't need a devfile in the repo to import the project as a component. For instance, we can clone https://github.com/eclipse/lemminx, and it will automatically detect that a Java devfile is needed.

As well, in the cases that the recommended devfile can't be inferred from the repo content, we should be able to provide a selection drop down to pick the correct devfile (like in #2844).

Instead of the error message, we should have a warning message that explains that the language/framework couldn't be detected and what a devfile is, then provide a dropdown to select an appropriate devfile.

Metadata

Metadata

Labels

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions