che icon indicating copy to clipboard operation
che copied to clipboard

launch.json configuration not loaded properly after refreshing the page with IDE

Open lexiv0re opened this issue 3 years ago • 0 comments

Describe the bug

For a workspace with 2 projects it is not picking the existing launch configuration if launch.json is created in the second workspace.

Che version

7.50

Steps to reproduce

  1. Create a workspace with two projects.
  2. Create a file to be run in the second project.
  3. Open the file and select Run -> Start Without Debugging. Start
  4. It asks for the environment and debug configuration and creates .theia/launch.json in the second project. LaunchConfig
  5. The file can now be run successfully with Run -> Start Without Debugging without any prompts.
  6. Refresh the page, close Getting Started tab so the same file is focused. Note, that launch.json is present. RunAgain
  7. Try Run -> Start Without Debugging again. Instead of executing the file it opens the existing launch.json and expects for more launch configurations to be added. Prompt

Expected behavior

On the step 7 it is expected to use the existing configuration and run without any additional prompts.

Runtime

other (please specify in additional context)

Screenshots

No response

Installation method

other (please specify in additional context)

Environment

Linux

Eclipse Che Logs

No response

Additional context

microK8s chectl 7.50.0

Note: If I try to run all the same steps but for the first project in the workspace the problem doesn't reproduce.

lexiv0re avatar Sep 08 '22 16:09 lexiv0re