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

path of project is not taken in account when cloning projects of a workspace #13675

Closed
sunix opened this issue Jul 2, 2019 · 7 comments
Closed
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/enhancement A feature request - must adhere to the feature request template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.

Comments

@sunix
Copy link
Contributor

sunix commented Jul 2, 2019

Description

Projects defined in a classic workspace configuration in Che6 were able to handle path which was the folder related to /projects where a project would be located

for instance

    {
      "name": "che-theia",
      "source": {
        "location": "https://github.com/eclipse/che-theia.git",
        "type": "git"
      },
      "path": "/subfolder/che-theia"
    },

Would have the project che-theia being clone into /projects/subfolder/che-theia.
It seems it is not possible to defined project in another location than underneath /projects

I have not tried with clonePath of a devfile but I suspect we have the same issue.

@sunix sunix closed this as completed Jul 2, 2019
@eclipse-che eclipse-che deleted a comment from kavirmusic Jul 3, 2019
@sunix sunix changed the title devfile workspace types are not dealing projects path path of project is not taken in account when cloning projects of a workspace Jul 3, 2019
@sunix sunix reopened this Jul 3, 2019
@sunix sunix added the kind/bug Outline of a bug - must adhere to the bug report template. label Jul 3, 2019
@sunix
Copy link
Contributor Author

sunix commented Jul 3, 2019

@nickboldt, @l0rd, @slemeur, @tsmaeder and @rhopp ? for GA ?

@sunix sunix added the team/ide2 label Jul 3, 2019
@slemeur slemeur added this to the 7.1.0 milestone Jul 3, 2019
@slemeur
Copy link
Contributor

slemeur commented Jul 3, 2019

This does look like a capability that we have not implemented back in Che 7.

I would label it as an enhancement, as this is not really creating a bug to the user. He would still be able to get his project imported but will miss the ability to specify a subfolder.

@slemeur slemeur added kind/enhancement A feature request - must adhere to the feature request template. and removed kind/bug Outline of a bug - must adhere to the bug report template. labels Jul 3, 2019
@slemeur
Copy link
Contributor

slemeur commented Jul 3, 2019

Unless we are documenting the use of the path and it was implemented, switching this to "kind/enhancement"

@sunix
Copy link
Contributor Author

sunix commented Jul 3, 2019

yes we had that in che7 but i think this is working for "devfile typed" workspaces.
But there is a difference between devfile and workspaceconfig: workspace config is taking / in the path.

    {
      "name": "che-theia",
      "source": {
        "location": "https://github.com/eclipse/che-theia.git",
        "type": "git"
      },
      "path": "/subfolder/che-theia"
    },

but devfile doesn't

  - name: che-theia
    clonePath: subfolder/che-theia
    source:
      type: git
      location: 'https://github.com/eclipse/che-theia.git'

But implementation is the same from my understanding, everything has been refactored eclipse-che/che-theia#242 ... so unless you start a workspace from a devfile with the factory or the sample, everything is broken (workspace sync ... etc ...)

But if we fix #13623
And if we say that in che7 we shouldn't have anyway to create a workspace config workspace. Then i would say it is fine not to fix it.

@tsmaeder
Copy link
Contributor

tsmaeder commented Jul 3, 2019

Go requires a particular folder structure. Is this related to that problem?

@sunix
Copy link
Contributor Author

sunix commented Jul 3, 2019

I have just made some tests.
I think we can skip that one if we concider that we don't support anymore the old workspace structure (not based on devfile) but then, that one #13623 becomes really blocker because creating a workspace from a devfile will create a workspace with the old structure.

From what i have tested, everything related to cloning and project sync is broken when you are using the legacy workspace structure. If you manage to start a devfile workspace, things are better but we still have this sync issue #13621.

@sunix sunix added the area/editor/theia Issues related to the che-theia IDE of Che label Jul 3, 2019
@slemeur slemeur modified the milestones: 7.1.0, 7.x Aug 2, 2019
@che-bot
Copy link
Contributor

che-bot commented Jan 29, 2020

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 Jan 29, 2020
@che-bot che-bot closed this as completed Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/theia Issues related to the che-theia IDE of Che kind/enhancement A feature request - must adhere to the feature request template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

4 participants