eclipse-theia/theia
Vedi su GitHubcan't debug current python file which is opened in preview mode
Open
#6911 aperta il 19 gen 2020
bugeditor-previewhelp wantedvariable-resolver
Metriche repository
- Star
- (18.676 star)
- Metriche merge PR
- (Merge medio 15g 4h) (75 PR mergiate in 30 g)
Descrizione
Description
After opening a python file in preview mode(single-clicked) and click start debugging or press F5,
then a notification of File does not exist. "${file}" showed in the bottom right corner.

Reproduction Steps
1 download python extension(https://marketplace.visualstudio.com/items?itemName=ms-python.python) 2 build theia browser example 3 setup workspace
cat << 'EOF' > test.py
if __name__ == "__main__":
print("Hello World!")
EOF
mkdir .theia
cat << 'EOF' > .theia/launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}
EOF
3 single click test.py and press F5
OS and Theia version: OS: centos 7 theia: https://github.com/eclipse-theia/theia/commit/6f1651655d879a2a00a30d6aa46eeb86f7834b13 Diagnostics: