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

Rethink/rework the Che workspace with workspace-roots #15529

Closed
2 of 6 tasks
sunix opened this issue Dec 18, 2019 · 12 comments
Closed
2 of 6 tasks

Rethink/rework the Che workspace with workspace-roots #15529

sunix opened this issue Dec 18, 2019 · 12 comments
Labels
area/devfile-spec Issues related to Devfile v2 area/editor/theia Issues related to the che-theia IDE of Che area/languages Issues related to Language extensions or plugins integration. kind/epic A long-lived, PM-driven feature request. Must include a checklist of items that must be completed. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. severity/P1 Has a major impact to usage or development of the system.

Comments

@sunix
Copy link
Contributor

sunix commented Dec 18, 2019

Is your enhancement related to a problem? Please describe.

At the moment, a lot of vscode extensions are relying on workspace root to work properly, the ones I have identified:

  • openshift-connector
  • quarkus-extension
  • Go extension
  • k8s extension

It means that we are getting through a lot bugs if we don't handle it properly. Basically, all these extensions are assuming that a project (maybe a subfolder of a git repo or not) is configured as a workspace root.

Describe the solution you'd like

The goal of this issue is to rethink the way we handle projects and create sub issues to fix all theses problem:

So we do not show anymore /projects as workspace root in the explorer. So, be careful not to break all the behaviors that are related to the current default workspace root /projects.

@sunix sunix added the kind/enhancement A feature request - must adhere to the feature request template. label Dec 18, 2019
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Dec 18, 2019
@tsmaeder
Copy link
Contributor

@sunix number 3 would be addressed by Java LS "Classpath is incomplete" warning when loading petclinic #13427 (if I ever get to it).

@tsmaeder
Copy link
Contributor

tsmaeder commented Dec 18, 2019

Number 4 would likely have to be configured in the devfile. For doing it by hand, we would have to write special UI, I guess, since only subpaths would be allowed. Checkout would still always be to /projects, though.

@sunix
Copy link
Contributor Author

sunix commented Dec 18, 2019

Number 4 would likely have to be configured in the devfile. For doing it by hand, we would have to write special UI, I guess, since only subpaths would be allowed. Checkout would still always be to /projects, though.

Yes, i have a proposal in #15347
you can also use the command Add folder to workspace to add a workspace root

@benoitf benoitf added area/languages Issues related to Language extensions or plugins integration. severity/P1 Has a major impact to usage or development of the system. team/languages and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Dec 18, 2019
@benoitf
Copy link
Contributor

benoitf commented Dec 18, 2019

I've added languages as label but it might be as well editor or plug-ins

@sunix sunix added kind/epic A long-lived, PM-driven feature request. Must include a checklist of items that must be completed. and removed kind/enhancement A feature request - must adhere to the feature request template. labels Jan 2, 2020
@tsmaeder tsmaeder added this to the Backlog - Languages milestone Jan 23, 2020
@ericwill ericwill mentioned this issue Mar 12, 2020
50 tasks
@ericwill ericwill mentioned this issue Apr 1, 2020
47 tasks
@ericwill ericwill mentioned this issue Apr 22, 2020
52 tasks
@svor
Copy link
Contributor

svor commented May 8, 2020

A few words about Go extension which uses gopls (language server for Go). If the project uses Go module, it requires you to open the project as your workspace root. Some improvements should be done in the next v0.5.0 release: https://github.com/golang/go/milestone/138

@tsmaeder
Copy link
Contributor

tsmaeder commented May 8, 2020

The behaviour for workspace roots is different depending on the workspace, project and language server. I believe we'll have to have some way to configure where to open a workspace root given a project structure. Also think about opening multiple projects inside a monorepo. This would require support in the devfile format.

@sunix
Copy link
Contributor Author

sunix commented May 9, 2020

@tsmaeder the proposal for opening multiple projects inside a monorepo: #15347

@amisevsk
Copy link
Contributor

A few words about Go extension which uses gopls (language server for Go). If the project uses Go module, it requires you to open the project as your workspace root.

The recently-added Scala plugin has the same limitation: eclipse-che/che-plugin-registry#356

@che-bot
Copy link
Contributor

che-bot commented Feb 4, 2021

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

@che-bot che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 4, 2021
@ericwill ericwill added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Feb 4, 2021
@azatsarynnyy
Copy link
Member

multi-root mode is already present in Che-Theia
All further enhancements can be made within the separate issues

@sunix
Copy link
Contributor Author

sunix commented Mar 19, 2021

this was an umbrella issue, sub issues like #15347 were not covered

@l0rd
Copy link
Contributor

l0rd commented Jan 30, 2023

Closing as we are sunsetting che-theia

@l0rd l0rd closed this as completed Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devfile-spec Issues related to Devfile v2 area/editor/theia Issues related to the che-theia IDE of Che area/languages Issues related to Language extensions or plugins integration. kind/epic A long-lived, PM-driven feature request. Must include a checklist of items that must be completed. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

9 participants