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

Use PROJECT_SOURCE as the default working directory for Che-IDEA Run Configuration #21100

Closed
Tracked by #20591
vzhukovs opened this issue Jan 31, 2022 · 0 comments · Fixed by che-incubator/jetbrains-editor-images#85
Assignees
Labels
area/editor/jetbrains/intellij Issues related to the IntelliJ-based IDE for Eclipse Che kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system.
Milestone

Comments

@vzhukovs
Copy link
Contributor

vzhukovs commented Jan 31, 2022

Is your task related to a problem? Please describe

The working directory attribute may be omitted in the command definition in the user's Devfile.
In order not to break the command execution in Che-IDEA, we can provide PROJECT_SOURCE as a default working directory.

Describe the solution you'd like

The following PR devfile/devworkspace-operator#697 provides a new environment variable PROJECT_SOURCE which points to the first cloned project on the file system in DevWorkspace. Which should be included in the following che-operator update eclipse-che/che-operator#1302

After merging eclipse-che/che-operator#1302 provide the PROJECT_SOURCE variable as default current working directory if any value is missed in the workingDir parameter of the execution command in Devfile.

Describe alternatives you've considered

N/A

Additional context

An enhancement of #21029

Related issue #21079

@vzhukovs vzhukovs added kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system. team/editors area/editors area/editor/jetbrains/intellij Issues related to the IntelliJ-based IDE for Eclipse Che labels Jan 31, 2022
@vzhukovs vzhukovs self-assigned this Jan 31, 2022
@azatsarynnyy azatsarynnyy mentioned this issue Feb 2, 2022
6 tasks
@azatsarynnyy azatsarynnyy changed the title Provide PROJECT_SOURCE env variable as current working directory for Run Configuration Use PROJECT_SOURCE as the default working directory for Run Configuration Feb 4, 2022
@azatsarynnyy azatsarynnyy changed the title Use PROJECT_SOURCE as the default working directory for Run Configuration Use PROJECT_SOURCE as the default working directory for Che-IDEA Run Configuration Feb 4, 2022
@azatsarynnyy azatsarynnyy added this to the 7.44 milestone Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/editor/jetbrains/intellij Issues related to the IntelliJ-based IDE for Eclipse Che kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants