Open sharon-wang opened 4 days ago
Tracking work in https://github.com/rstudio/rstudio-workbench-vscode-ext/issues/262; we'll verify this on the Positron side when complete.
Workbench changes now available in https://dailies.rstudio.com/version/2024.11.0-daily+299.pro3/!
System details:
Positron and OS details:
Latest on main.
Interpreter details:
Any supported Python. I've used 3.12 and 3.10.
Describe the issue:
When running a Dash app in Positron on Workbench, the Workbench extension creates a
.env
file as part of its Dash app handling. The.env
file sets a variable which conflicts with Positron's Dash app handling env vars, resulting in an error in the Terminal when the Dash app is run. Deleting the.env
and running the app again gets past the issue.The Workbench extension will be updated to skip its custom handling when running in Positron: https://github.com/rstudio/rstudio-workbench-vscode-ext/issues/262.
This issue is a reminder for us to test Dash apps in Positron on Workbench once https://github.com/rstudio/rstudio-workbench-vscode-ext/issues/262 is complete.
Steps to reproduce the issue:
.env
file that was created by the Workbench Extension (probably at the root of the folder you currently have open in Positron).env
fileExpected or desired behavior:
Dash apps should work in Positron on Workbench, running and displaying successfully in the Viewer, without having to delete the
.env
file / or the.env
should not be generated when a Dash app is run in Positron on Workbench.Were there any error messages in the UI, Output panel, or Developer Tools console?
Terminal error
Related things
https://github.com/posit-dev/positron/issues/4769
how we run dash apps https://github.com/posit-dev/positron/blob/10183fa8d9a8495b5d52cafd252cfa5a44b05599/extensions/positron-python/src/client/positron/webAppCommands.ts#L151-L161