-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Comments
@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 |
@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. |
For this issue we had 2 root causes:
|
@tsmaeder @slemeur @tsmaeder Is it a normal behavior of LS(language server)? WDYT? @slemeur Could we close this issue as a fixed one? |
@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. |
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. |
Strike that...the project is back again. |
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. |
@tsmaeder: What do you think it the expected behavior by the end-user? |
@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. |
Added label |
@tsmaeder : Can you provide an update on this? |
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. |
Issues go stale after Mark the issue as fresh with If this issue is safe to close now please do so. Moderators: Add |
Description
Deleting a project, refreshing the workspace, the project is back.
Reproduction Steps
OS and version:
Diagnostics:
The text was updated successfully, but these errors were encountered: