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

Cannot run code in workspace after reloaded webpage #23319

Open
nykredit-gusg opened this issue Jan 24, 2025 · 1 comment
Open

Cannot run code in workspace after reloaded webpage #23319

nykredit-gusg opened this issue Jan 24, 2025 · 1 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. severity/P1 Has a major impact to usage or development of the system. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs.

Comments

@nykredit-gusg
Copy link

Describe the bug

Running a Python file and then reloading the webpage during runtime will prohibit you from running the same Python file again. Please note, that this issue is experienced when using the "Run or debug" button in the top right corner. I have enclosed a screen recording of this behaviour. In the end of the video, I click the button "Run or debug" button even though the click is not apparent on the recording.

Optagelse-20250124_155743.webm

Che version

7.92

Steps to reproduce

  1. Create workspace based on Nykredit/ds-extension
  2. Open workspace and wait for plugins to load
  3. "ctrl+shift+p" then "Tasks: Run Task", choose "Devfile" and then
    "devfile: create-environment"
  4. "ctrl+shift+p" then choose "Python: Select Interpreter" and choose the
    interpreter located in the newly created virtual environment
  5. Select a Python file to run, press run and then while the code is running
    press "ctrl+r" to reload the page.

Expected behavior

I expect that you should be able to run the same Python file again across multiple reloads of the web page.

Runtime

OpenShift

Screenshots

No response

Installation method

other (please specify in additional context)

Environment

other (please specify in additional context)

Eclipse Che Logs

Additional context

Unfortunately I do not know the installation method nor the environment.

@nykredit-gusg nykredit-gusg added the kind/bug Outline of a bug - must adhere to the bug report template. label Jan 24, 2025
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jan 24, 2025
@vitaliy-guliy
Copy link
Contributor

vitaliy-guliy commented Jan 26, 2025

I quickly checked how does Python extensions work in Visual Studio Code desktop and I can say they are quite unstable.
I did the same, launched the Python script and then reloaded the editor by Developer: Reload Window command.
After reload, I was unable to run the script by first click Run button.
The terminal view was not completely restored as well.

@RomanNikitenko RomanNikitenko added area/editor/vscode Issues related to the Code OSS editor of Che team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs. severity/P1 Has a major impact to usage or development of the system. labels Jan 27, 2025
@RomanNikitenko RomanNikitenko moved this to 📋 Backlog (not in current Sprint) in Eclipse Che Team B Backlog Jan 27, 2025
@RomanNikitenko RomanNikitenko removed the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jan 27, 2025
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. severity/P1 Has a major impact to usage or development of the system. team/B This team is responsible for the Web Terminal, the DevWorkspace Operator and the IDEs.
Projects
Status: 📋 Backlog (not in current Sprint)
Development

No branches or pull requests

4 participants