eclipse-theia/theia
在 GitHub 查看can't debug current python file which is opened in preview mode
Open
#6,911 建立於 2020年1月19日
bugeditor-previewhelp wantedvariable-resolver
倉庫指標
- Star
- (18,676 star)
- PR 合併指標
- (平均合併 15天 4小時) (30 天內合併 75 個 PR)
描述
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: