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

Even if the project is deleted from a VS Code workspace, it's back when the Che workspace is re-started #13621

Open
slemeur opened this issue Jun 22, 2019 · 14 comments
Assignees
Labels
area/editor/vscode Issues related to the Code OSS editor of Che kind/bug Outline of a bug - must adhere to the bug report template. 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. status/blocked Issue that can’t be moved forward. Must include a comment on the reason for the blockage.

Comments

@slemeur
Copy link
Contributor

slemeur commented Jun 22, 2019

Description

Deleting a project, refreshing the workspace, the project is back.

delete-project

Reproduction Steps

OS and version:

Diagnostics:

@slemeur slemeur added kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system. team/ide2 labels Jun 22, 2019
@l0rd l0rd mentioned this issue Jun 27, 2019
85 tasks
@l0rd l0rd added severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. target/che7GA and removed target/che7GA severity/P1 Has a major impact to usage or development of the system. labels Jun 27, 2019
@l0rd l0rd added this to the 7.0.0 milestone Jun 27, 2019
@olexii4 olexii4 self-assigned this Jul 2, 2019
@sunix
Copy link
Contributor

sunix commented Jul 3, 2019

@olexii4 you fix it i recommand you update these test with devfile: https://github.com/eclipse/che-theia/blob/master/plugins/factory-plugin/tests/projects.spec.ts#L164-L275

@sunix sunix added the area/editor/theia Issues related to the che-theia IDE of Che label Jul 3, 2019
@sunix
Copy link
Contributor

sunix commented Jul 8, 2019

@olexii4 I have just reproduced the problem with

metadata:
  name: che7-readme-update-e
projects:
  - name: che
    source:
      location: 'https://github.com/eclipse/che'
      type: git
  - name: web-rails-simple
    source:
      location: 'https://github.com/che-samples/web-rails-simple.git'
      type: git
components:
  - mountSources: true
    command:
      - tail
    args:
      - '-f'
      - /dev/null
    memoryLimit: 512M
    type: dockerimage
    image: sunix/git-devtools
    alias: sunix-git-devtools
apiVersion: 1.0.0

try to check only the devfile tab. and refresh before and after. There is no language server.

@sunix
Copy link
Contributor

sunix commented Jul 15, 2019

For this issue we had 2 root causes:

@olexii4
Copy link
Contributor

olexii4 commented Jul 15, 2019

@tsmaeder @slemeur
The original issue has two problems. One is a synchronization of the existing projects(fixed in PRs).
The other is a result of a language server work. And we can still reproduce it
https://youtu.be/voqsE7LCVlA

@tsmaeder Is it a normal behavior of LS(language server)? WDYT?

@slemeur Could we close this issue as a fixed one?

@tsmaeder
Copy link
Contributor

tsmaeder commented Jul 15, 2019

@olexii4 yes, when a build is running, for example, class files are produced, this is normal behaviour. There is always a window between the time the delete happens in the ide and when the language server notices the project files are gone.

@tsmaeder
Copy link
Contributor

Btw: I can reproduce the behaviour with VS Code: the /bin folder remains after I delete the project from the file explorer. Repeating the delete gets rid of the project eventually.

@tsmaeder
Copy link
Contributor

Strike that...the project is back again.

@tsmaeder
Copy link
Contributor

Btw: if we move to mounting projects as workspace roots, we can solve this one by first removing the workspace root and then deleting the project.

@slemeur
Copy link
Contributor Author

slemeur commented Jul 16, 2019

@tsmaeder: What do you think it the expected behavior by the end-user?

@l0rd l0rd added team/languages and removed team/ide2 severity/blocker Causes system to crash and be non-recoverable or prevents Che developers from working on Che code. labels Jul 18, 2019
@sunix
Copy link
Contributor

sunix commented Jul 19, 2019

@tsmaeder If you plan to fix that, could to explain what is your plan ?

This is the responsibility of the language server: files are being deleted and it has to kill the running process.

@l0rd l0rd added the severity/P1 Has a major impact to usage or development of the system. label Jul 23, 2019
@l0rd l0rd assigned tsmaeder and unassigned evidolob and olexii4 Jul 23, 2019
@l0rd l0rd added the status/in-progress This issue has been taken by an engineer and is under active development. label Jul 23, 2019
@l0rd
Copy link
Contributor

l0rd commented Jul 23, 2019

Added label in-progress since I believe that what Thomas is working on should fix this issue.

@slemeur
Copy link
Contributor Author

slemeur commented Jul 24, 2019

@tsmaeder : Can you provide an update on this?

@tsmaeder
Copy link
Contributor

Using multi-root workspaces should mitigate this (at least being able to eventually delete the project). However, it is VERY slow going. Wasting time on our self-hosting process.

@tsmaeder tsmaeder modified the milestones: 7.0.0, 7.1.0 Aug 14, 2019
@tsmaeder tsmaeder modified the milestones: 7.1.0, Backlog - Languages Sep 23, 2019
@tsmaeder tsmaeder added status/blocked Issue that can’t be moved forward. Must include a comment on the reason for the blockage. and removed status/in-progress This issue has been taken by an engineer and is under active development. labels Sep 25, 2019
@azatsarynnyy azatsarynnyy added area/languages Issues related to Language extensions or plugins integration. and removed area/editor/theia Issues related to the che-theia IDE of Che labels Feb 6, 2020
@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
@l0rd l0rd added area/editor/vscode Issues related to the Code OSS editor of Che and removed area/languages Issues related to Language extensions or plugins integration. labels Jan 30, 2023
@l0rd l0rd changed the title Impossible to delete a project Even if the project is deleted from a VS Code workspace, it's back when the Che workspace is re-started Jan 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/vscode Issues related to the Code OSS editor of Che kind/bug Outline of a bug - must adhere to the bug report template. 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. status/blocked Issue that can’t be moved forward. Must include a comment on the reason for the blockage.
Projects
None yet
Development

No branches or pull requests

10 participants