question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Eclipse Che doesn't check IDE preferences when initializing a project via a zip file

See original GitHub issue

Describe the bug

While I was trying to create a workspace from a devfile that refers to a zip file for the project location, I observed that Eclipse Che does not respect the user IDE preference as specified in the “che-editor.yaml” file but instead defaults to “Che Theia” IDE.

Che version

next (development version)

Steps to reproduce

  1. Create a devfile as such:
schemaVersion: 2.1.0
metadata:
  name: test
projects:
  - name: test
    zip:
      location: 'http://192.168.1.101:2020/test.zip'
components: []
  1. Make sure the project in the zip file follows the following directory structure:
test.zip
    | .che
        | che-editor.yaml (Should contain appropriate IDE definition or an IDE plugin ID)
    | file1
    | file2
  1. Generate a workspace through a factory URL:
https://192.168.1.120.nip.io#<path to your devfile>
  1. Once the workspace is up and running, verify if the IDE being used is as per what was specified in the “che-editor.yaml” file.

Expected behavior

Eclipse Che should look for IDE definitions in the “che-editor.yaml” file no matter if the project is being cloned from git or being extracted from a zip file.

Relevant Docs:

https://www.eclipse.org/che/docs/stable/end-user-guide/selecting-an-ide/

Runtime

minikube

Screenshots

No response

Installation method

chectl/next

Environment

Windows

Eclipse Che Logs

No response

Additional context

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
l0rdcommented, Jul 5, 2022

@vatsal-uppal-1997 I think that @svor suggestion may solve your problem. That’s something that has been introduced last week. Anyway, in your comment the URL encoding is fine. I suspect that the Devfile you are pointing to is a version 1 Devfile that doesn’t work with VS Code:

https://192.168.1.136.nip.io/devfile-registry/devfiles/sample-project/devfile.yaml

@svor there are still a lot of version 1 devfiles. I have created a PR to removed them. What do you think?

0reactions
svorcommented, Jul 5, 2022

@svor there are still a lot of version 1 devfiles. https://github.com/eclipse-che/che-devfile-registry/pull/663. What do you think?

It’s very good cleanup of the devfile registry!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Newcomers » [SOLVED]error while opening eclipse Luna
When I try to open Eclipse I have the following error. ... org.eclipse.wst.common.project.facet.ui org.eclipse.osgi [osgi.identity; ...
Read more >
Launching Eclipse 2020-09R error Version 11 or greater is ...
I've been using the zip file and extracting the Eclipse folder to C:\Program Files folder. In a cmd window I run java -version...
Read more >
Eclipse IDE for Java Developers - Installation failed with an error
1. Go to the eclipse installation file. · 2. Right click on it and go to properties. · 3. Remove the block that...
Read more >
Newcomers » BIRT report designer not getting installed - Eclipse
I am very new to this tool doing R&D for my organization. Trying to get installed birt report designer, but not able to...
Read more >
C / C++ IDE (CDT) » No paths in 'Hello World' example - Eclipse
I actually had better results downloading Windows and using ... This was a zip file larger than 2GB which had to be unzipped...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found