tjx666 / open-in-external-app

Open file with external application in VSCode
https://marketplace.visualstudio.com/items?itemName=YuTengjing.open-in-external-app
MIT License
52 stars 9 forks source link

Version 0.9.9 doesn't work. #55

Closed YiHoze closed 1 year ago

YiHoze commented 1 year ago

Description

Today morning I found that it does not work anymore and that Open in External App has updated. When I press the shortcut key or call from the command palette to run it, it still shows the three options as the settings below, but nothing happens after I select one. I rolled back to the previous version 0.9.7, and now it works well.

Thanks.

Extension Version

0.9.9

VS Code Version

Version: 1.77.3 (system setup)
Commit: 704ed70d4fd1c6bd6342c436f1ede30d1cff4710
Date: 2023-04-12T09:16:02.548Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Windows_NT x64 10.0.22621
Sandboxed: No

Extension Settings

"openInExternalApp.openMapper": [    
    {
        "extensionName": "xml",
        "apps": [
               { 
                    "title": "Firefox",
                    "openCommand": "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
                },
                { 
                    "title": "Colander",
                    "openCommand": "colander.py",
                    "args": ["-H"]
                },
                { 
                    "title": "DITA-OT by Colander",
                    "openCommand": "colander.py",
                    "args": ["-D", "-V"]
                }
            ]
     }
]

Logs, Notifications, Screenshots, Screen Recording etc

[INFO] language: en
[INFO] parsed args: [
    null,
    null
]
[INFO] parsed extension name: xml
[INFO] find config by extensionName
[INFO] found matched config
[INFO] open with configItem:
{
    "extensionName": "xml",
    "apps": [
        {
            "title": "Firefox",
            "openCommand": "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
        },
        {
            "title": "Colander",
            "openCommand": "colander.py",
            "args": [
                "-H"
            ]
        },
        {
            "title": "DITA-OT by Colander",
            "openCommand": "colander.py",
            "args": [
                "-D",
                "-V"
            ]
        }
    ]
}
[INFO] opened file is: "c:\projects\HMC\SX2eEV\2024\en_GN\Instrument_Cluster_Instrument_cluster.xml"
[INFO] variables:
    userHome: C:\Users\yihoze
    workspaceFolder: c:\projects\HMC\SX2eEV\2024
    workspaceFolderBasename: 2024
    file: c:\projects\HMC\SX2eEV\2024\en_GN\Instrument_Cluster_Instrument_cluster.xml
    fileWorkspaceFolder: c:\projects\HMC\SX2eEV\2024
    relativeFile: en_GN\Instrument_Cluster_Instrument_cluster.xml
    relativeFileDirname: en_GN
    fileBasename: Instrument_Cluster_Instrument_cluster.xml
    fileBasenameNoExtension: Instrument_Cluster_Instrument_cluster
    fileDirname: c:\projects\HMC\SX2eEV\2024\en_GN
    fileExtname: .xml
    cwd: c:\projects\HMC\SX2eEV\2024
    lineNumber: 357
    selectedText: 
    execPath: ${execPath}
    defaultBuildTask: ${defaultBuildTask}
    pathSeparator: \
    cursorLineNumber: 357
    cursorColumnNumber: 41
[INFO] open file by open pkg, options:
{
    "app": {
        "name": "C:\\Program Files\\Mozilla Firefox\\firefox.exe",
        "arguments": []
    }
}
tjx666 commented 1 year ago

@YiHoze please try latest version

YiHoze commented 1 year ago

It works. Thanks a lot.