microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.73k stars 29.09k forks source link

Debug cannot read property 'onError' of undefined #61649

Closed TylerLeonhardt closed 5 years ago

TylerLeonhardt commented 6 years ago

From @carlocardella on October 23, 2018 16:35

Issue Description

Insiders only (works fine in Stable): every time I try to start a debug session (either press F5, or use the Start Debug command), regardless of the debug type I select (Interactive Sessions, or Current File etc...) I always get the error in the screenshot. I can reproduce with all extensions disabled (except Powershell of course), I tried to clean my C:\Users\carloc.vscode-insiders\extensions folder (basically reinstall the extensions from scratch) but the problem remains.

I use Code Insiders as my primary editor, I think I got this error the first time towards the end of last week but I don't have exact dates to confirm

image

Attached Logs

1540311154-1018dcff-3bc2-424c-a3bf-83841bbc9be21540311145453.zip

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.17763
VSCode 1.29.0-insider
PowerShell Extension Version 1.9.0

PowerShell Information

Name Value
PSVersion 5.1.17763.1
PSEdition Desktop
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.17763.1
BuildVersion 10.0.17763.1
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

launch.json

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [{
            "type": "PowerShell",
            "request": "launch",
            "name": "PowerShell Launch Current File",
            "script": "${file}",
            "args": [],
            "cwd": "${file}"
        },
        {
            "type": "PowerShell",
            "request": "launch",
            "name": "PowerShell Launch Current File in Temporary Console",
            "script": "${file}",
            "args": [],
            "cwd": "${file}",
            "createTemporaryIntegratedConsole": true
        },
        {
            "type": "PowerShell",
            "request": "launch",
            "name": "PowerShell Launch Current File w/Args Prompt",
            "script": "${file}",
            "args": [
                "${command:SpecifyScriptArgs}"
            ],
            "cwd": "${file}"
        },
        {
            "type": "PowerShell",
            "request": "attach",
            "name": "PowerShell Attach to Host Process",
            "processId": "${command:PickPSHostProcess}",
            "runspaceId": 1
        },
        {
            "type": "PowerShell",
            "request": "launch",
            "name": "PowerShell Interactive Session",
            "cwd": ""
        }
    ]
}

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand) |Extension|Author|Version| |---|---|---| |arm-snippets|samcogan|1.3.7| |atom-material-theme|tobiasalthoff|1.5.0| |auto-close-tag|formulahendry|0.5.6| |auto-rename-tag|formulahendry|0.0.15| |azure-account|ms-vscode|0.4.3| |azurecli|ms-vscode|0.4.2| |azurerm-vscode-tools|msazurermtools|0.4.2| |beautify|HookyQR|1.4.6| |better-align|wwm|1.1.6| |Bookmarks|alefragnani|9.1.0| |bracket-pair-colorizer|CoenraadS|1.0.60| |change-case|wmaurer|1.0.0| |code-runner|formulahendry|0.9.4| |code-settings-sync|Shan|3.2.0| |code-spell-checker|streetsidesoftware|1.6.10| |copy-text|salbert|0.4.1| |csharp|ms-vscode|1.16.2| |csharpextensions|jchannon|1.3.0| |csharpfixformat|Leopotam|0.0.76| |cursor-tools|naumovs|2.0.0| |debugger-for-chrome|msjsdiag|4.10.2| |docomment|k--kato|0.1.2| |emoji-code|idleberg|0.7.2| |extension-manifest-editor|ms-devlabs|0.1.5| |file-icons|file-icons|1.0.16| |filter-line|everettjf|1.1.0| |gc-excelviewer|GrapeCity|2.1.26| |gitignore|codezombiech|0.5.0| |gitlens|eamodio|8.5.6| |highlight-bad-chars|wengerk|0.0.3| |highlight-matching-tag|vincaslt|0.6.2| |highlight-words|rsbondi|0.0.8| |hogwarts-colors-dark|CarloCardella|0.7.0| |indent4to2|Compulim|0.1.2| |JavaScriptSnippets|xabikos|1.7.1| |json-escaper|joshuapoehls|1.1.0| |linux-themes|SolarLiner|1.0.1| |LiveServer|ritwickdey|5.1.1| |LogFileHighlighter|emilast|2.4.2| |markdown-all-in-one|yzhang|1.6.2| |markdown-table-prettify|darkriszty|2.2.0| |material-icon-theme|PKief|3.6.0| |Material-theme|zhuangtongfa|2.17.4| |metago|metaseed|2.11.0| |mssql|ms-mssql|1.4.0| |new-moon-vscode|taniarascia|1.4.11| |notification-tester|svipben|2.0.1| |one-monokai|azemoh|0.3.7| |open-in-browser|techer|2.0.0| |partial-diff|ryu1kn|1.4.0| |path-intellisense|christian-kohler|1.4.2| |PowerShell|ms-vscode|1.9.0| |preview-vscode|searKing|1.4.4| |python|ms-python|2018.9.1| |rainbow-csv|mechatroner|0.7.1| |reg|ionutvmi|0.0.2| |seito-openfile|Fr43nk|1.8.1| |selectline-statusbar|tomoki1207|0.0.2| |seti-icons|qinjia|0.1.3| |shell-launcher|Tyriar|0.2.0| |sort-lines|Tyriar|1.7.0| |string-converter|adamwalzer|0.1.1| |sublime-commands|Zarel|0.1.0| |supersharp|craigthomas|0.1.4| |TabOut|albert|0.1.6| |team|ms-vsts|1.142.0| |text-marker|ryu1kn|1.9.0| |text-power-tools|qcz|1.2.1| |theme-dracula|dracula-theme|2.14.1| |Theme-TomorrowKit|ms-vscode|0.1.4| |transformer|dakara|1.6.0| |tslint|eg2|1.0.40| |txt-syntax|xshrim|0.0.3| |typescript-hero|rbbit|3.0.0| |vsc-material-theme|Equinusocio|2.4.2| |vscode-csharp-snippets|jorgeserrano|0.3.1| |vscode-eslint|dbaeumer|1.6.1| |vscode-fileutils|sleistner|2.11.0| |vscode-format-context-menu|lacroixdavid1|1.0.4| |vscode-great-icons|emmanuelbeziat|2.1.44| |vscode-guid|heaths|1.4.0| |vscode-highlight|fabiospampinato|1.3.0| |vscode-icons|robertohuertasm|7.27.0| |vscode-insertdatestring|jsynowiec|2.2.3| |vscode-markdownlint|DavidAnson|0.20.0| |vscode-path-tools|cg-cnu|0.0.4| |vscode-pull-request-github|GitHub|0.2.1| |vscode-random|jrebocho|1.3.2| |vscode-simple-icons|LaurentTreguier|1.8.7| |vscode-simpler-icons|davidbabel|1.6.5| |vscode-smart-column-indenter|lmcarreiro|0.0.13| |vscode-theme-onedark|akamud|2.1.0| |vscode-theme-onelight|akamud|2.1.0| |vscode-todo-plus|fabiospampinato|4.9.2| |vscodeintellicode|VisualStudioExptTeam|1.0.5| |vsliveshare|ms-vsliveshare|0.3.834| |vsliveshare-audio|ms-vsliveshare|0.1.39| |wrapSelection|konstantin|0.6.8| |xml|DotJoshJohnson|2.3.2|;

Copied from original issue: PowerShell/vscode-powershell#1590

vscodebot[bot] commented 6 years ago

(Experimental duplicate detection) Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

TylerLeonhardt commented 6 years ago

Did something about this API change?

Also, @carlocardella could you possibly try to attach the vscode logs? I'm not 100% where they are but maybe go to:

"Developer: Show logs..." and open each of those and paste it here.

carlocardella commented 6 years ago

Extension Host is the only one with some interesting tracing:

[2018-10-23 09:36:08.629] [exthost] [info] extension host started
[2018-10-23 09:36:08.755] [exthost] [info] ExtensionService#_doActivateExtension vscode.debug-auto-launch {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:08.755] [exthost] [info] ExtensionService#loadCommonJSModule c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\debug-auto-launch\dist\extension
[2018-10-23 09:36:08.774] [exthost] [info] ExtensionService#_doActivateExtension vscode.emmet {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:08.774] [exthost] [info] ExtensionService#loadCommonJSModule c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\emmet\dist\extension
[2018-10-23 09:36:08.805] [exthost] [info] ExtensionService#_doActivateExtension vscode.git {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:08.805] [exthost] [info] ExtensionService#loadCommonJSModule c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\git\dist\main
[2018-10-23 09:36:08.954] [exthost] [info] ExtensionService#_doActivateExtension vscode.merge-conflict {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:08.954] [exthost] [info] ExtensionService#loadCommonJSModule c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\merge-conflict\dist\extension
[2018-10-23 09:36:08.965] [exthost] [info] ExtensionService#_doActivateExtension adamwalzer.string-converter {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:08.965] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\adamwalzer.string-converter-0.1.1\out\src\extension
[2018-10-23 09:36:09.024] [exthost] [info] ExtensionService#_doActivateExtension albert.TabOut {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:09.024] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\albert.tabout-0.1.6\out\src\extension
[2018-10-23 09:36:09.035] [exthost] [info] ExtensionService#_doActivateExtension alefragnani.Bookmarks {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:09.035] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\alefragnani.bookmarks-9.1.0\out\src\extension
[2018-10-23 09:36:09.053] [exthost] [info] ExtensionService#_doActivateExtension christian-kohler.path-intellisense {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:09.053] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\christian-kohler.path-intellisense-1.4.2\out\src\extension
[2018-10-23 09:36:09.082] [exthost] [info] ExtensionService#_doActivateExtension CoenraadS.bracket-pair-colorizer {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:09.082] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\coenraads.bracket-pair-colorizer-1.0.60\out\src\extension
[2018-10-23 09:36:09.127] [exthost] [info] ExtensionService#_doActivateExtension dbaeumer.vscode-eslint {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:09.127] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\dbaeumer.vscode-eslint-1.6.1\client\out\extension
[2018-10-23 09:36:09.299] [exthost] [info] ExtensionService#_doActivateExtension eamodio.gitlens {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:09.299] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\eamodio.gitlens-8.5.6\out\extension
[2018-10-23 09:36:09.739] [exthost] [info] ExtensionService#_doActivateExtension Equinusocio.vsc-material-theme {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:09.740] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\equinusocio.vsc-material-theme-2.4.2\extensions\material.theme.config.js
[2018-10-23 09:36:09.774] [exthost] [info] ExtensionService#_doActivateExtension fabiospampinato.vscode-highlight {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:09.774] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\fabiospampinato.vscode-highlight-1.3.0\out\extension.js
[2018-10-23 09:36:09.808] [exthost] [info] ExtensionService#_doActivateExtension fabiospampinato.vscode-todo-plus {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:09.808] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\fabiospampinato.vscode-todo-plus-4.9.2\out\extension.js
[2018-10-23 09:36:09.992] [exthost] [info] ExtensionService#_doActivateExtension formulahendry.auto-close-tag {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:09.992] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\formulahendry.auto-close-tag-0.5.6\out\src\extension
[2018-10-23 09:36:09.994] [exthost] [info] ExtensionService#_doActivateExtension formulahendry.auto-rename-tag {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:09.994] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\formulahendry.auto-rename-tag-0.0.15\out\src\extension
[2018-10-23 09:36:09.998] [exthost] [info] ExtensionService#_doActivateExtension Fr43nk.seito-openfile {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:09.998] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\fr43nk.seito-openfile-1.8.2\out\src\extension
[2018-10-23 09:36:10.065] [exthost] [info] ExtensionService#_doActivateExtension HookyQR.beautify {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:10.065] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\hookyqr.beautify-1.4.6\extension
[2018-10-23 09:36:10.144] [exthost] [info] ExtensionService#_doActivateExtension LaurentTreguier.vscode-simple-icons {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:10.144] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\laurenttreguier.vscode-simple-icons-1.8.7\out\extension
[2018-10-23 09:36:10.146] [exthost] [info] ExtensionService#_doActivateExtension metaseed.metago {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:10.146] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\metaseed.metago-2.11.0\out\src\extension
[2018-10-23 09:36:10.188] [exthost] [info] ExtensionService#_doActivateExtension ms-vsliveshare.vsliveshare {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:10.188] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\ms-vsliveshare.vsliveshare-0.3.834\out\src\extension
[2018-10-23 09:36:11.384] [exthost] [info] ExtensionService#_doActivateExtension ms-vsts.team {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:11.384] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\ms-vsts.team-1.142.0\out\src\extension
[2018-10-23 09:36:13.175] [exthost] [info] ExtensionService#_doActivateExtension naumovs.cursor-tools {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:13.175] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\naumovs.cursor-tools-2.0.0\dist\extension
[2018-10-23 09:36:13.178] [exthost] [info] ExtensionService#_doActivateExtension PKief.material-icon-theme {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:13.178] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\pkief.material-icon-theme-3.6.0\out\src\extension
[2018-10-23 09:36:13.252] [exthost] [info] ExtensionService#_doActivateExtension ritwickdey.LiveServer {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:13.253] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\ritwickdey.liveserver-5.1.1\out\src\extension
[2018-10-23 09:36:13.722] [exthost] [info] ExtensionService#_doActivateExtension robertohuertasm.vscode-icons {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:13.722] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\robertohuertasm.vscode-icons-7.27.0\out\src\
[2018-10-23 09:36:13.865] [exthost] [info] ExtensionService#_doActivateExtension ryu1kn.text-marker {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:13.865] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\ryu1kn.text-marker-1.9.0\out\extension
[2018-10-23 09:36:14.177] [exthost] [info] ExtensionService#_doActivateExtension salbert.copy-text {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:14.177] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\salbert.copy-text-0.4.1\out\src\extension
[2018-10-23 09:36:14.237] [exthost] [info] ExtensionService#_doActivateExtension Shan.code-settings-sync {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:14.237] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\shan.code-settings-sync-3.2.0\out\src\extension
[2018-10-23 09:36:15.161] [exthost] [info] ExtensionService#_doActivateExtension streetsidesoftware.code-spell-checker {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:15.161] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\streetsidesoftware.code-spell-checker-1.6.10\out\src\extension
[2018-10-23 09:36:15.420] [exthost] [info] ExtensionService#_doActivateExtension tomoki1207.selectline-statusbar {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:15.420] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\tomoki1207.selectline-statusbar-0.0.2\extension
[2018-10-23 09:36:15.423] [exthost] [info] ExtensionService#_doActivateExtension vincaslt.highlight-matching-tag {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:15.423] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\vincaslt.highlight-matching-tag-0.6.2\out\src\extension
[2018-10-23 09:36:15.435] [exthost] [info] ExtensionService#_doActivateExtension wengerk.highlight-bad-chars {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:15.435] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\wengerk.highlight-bad-chars-0.0.3\out\src\extension
[2018-10-23 09:36:15.471] [exthost] [info] ExtensionService#_doActivateExtension vscode.configuration-editing {"startup":false,"activationEvent":"onLanguage:jsonc"}
[2018-10-23 09:36:15.471] [exthost] [info] ExtensionService#loadCommonJSModule c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\configuration-editing\dist\extension
[2018-10-23 09:36:15.480] [exthost] [info] ExtensionService#_doActivateExtension vscode.json-language-features {"startup":false,"activationEvent":"onLanguage:jsonc"}
[2018-10-23 09:36:15.480] [exthost] [info] ExtensionService#loadCommonJSModule c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\json-language-features\client\dist\jsonMain
[2018-10-23 09:36:15.545] [exthost] [info] ExtensionService#_doActivateExtension vscode.typescript-language-features {"startup":false,"activationEvent":"onLanguage:jsonc"}
[2018-10-23 09:36:15.545] [exthost] [info] ExtensionService#loadCommonJSModule c:\Users\carloc\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\extensions\typescript-language-features\dist\extension
[2018-10-23 09:36:15.606] [exthost] [info] ExtensionService#_doActivateExtension msazurermtools.azurerm-vscode-tools {"startup":false,"activationEvent":"onLanguage:jsonc"}
[2018-10-23 09:36:15.606] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\msazurermtools.azurerm-vscode-tools-0.4.2\out\src\AzureRMTools
[2018-10-23 09:36:17.299] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode.csharp {"startup":true,"activationEvent":"workspaceContains:*.csproj,*.sln,*.csx,*.cake,**/*.csproj,**/*.sln,**/*.csx,**/*.cake"}
[2018-10-23 09:36:17.299] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\ms-vscode.csharp-1.16.2\out\src\main
[2018-10-23 09:36:24.915] [exthost] [info] eager extensions activated
[2018-10-23 09:36:25.200] [exthost] [info] ExtensionService#_doActivateExtension GitHub.vscode-pull-request-github {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:25.200] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\github.vscode-pull-request-github-0.2.1\media\extension
[2018-10-23 09:36:25.376] [exthost] [info] ExtensionService#_doActivateExtension ms-vsliveshare.vsliveshare-audio {"startup":true,"activationEvent":"*"}
[2018-10-23 09:36:25.376] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\ms-vsliveshare.vsliveshare-audio-0.1.39\out\extension
[2018-10-23 09:36:26.947] [exthost] [info] ExtensionService#_doActivateExtension GrapeCity.gc-excelviewer {"startup":false,"activationEvent":"onLanguage:plaintext"}
[2018-10-23 09:36:26.947] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\grapecity.gc-excelviewer-2.1.26\out\src\extension
[2018-10-23 09:36:27.925] [exthost] [info] ExtensionService#_doActivateExtension mechatroner.rainbow-csv {"startup":false,"activationEvent":"onLanguage:plaintext"}
[2018-10-23 09:36:27.925] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\mechatroner.rainbow-csv-0.7.1\extension
[2018-10-23 09:38:03.674] [exthost] [info] ExtensionService#_doActivateExtension ms-vscode.PowerShell {"startup":false,"activationEvent":"onLanguage:powershell"}
[2018-10-23 09:38:03.674] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\ms-vscode.powershell-1.9.0\out\src\main
[2018-10-23 14:28:37.694] [exthost] [info] ExtensionService#_doActivateExtension emilast.LogFileHighlighter {"startup":false,"activationEvent":"onLanguage:log"}
[2018-10-23 14:28:37.694] [exthost] [info] ExtensionService#loadCommonJSModule C:\Users\carloc\.vscode-insiders\extensions\emilast.logfilehighlighter-2.4.2\out\src\extension
carlocardella commented 6 years ago

The process does not seem to crash (at least not the main process). I can collect a dump in first chance exceptions if that helps

isidorn commented 6 years ago

I can not reproduce this issue both on my OS X and on my windows. I am using a simple powershell hello world sample and the "PowerShell Launch Current File" config you attached.

However is seeing this error please do the following: F1 > developer tools > open console and let us know if you see any errors @carlocardella @tylerl0706 can you reproduce this all the time? Are you doing something differently than me?

powershell

carlocardella commented 6 years ago

I can consistently repro on two machines, a third one (all three should be using the same settings and extensions, I'm keeping them in sync with shan.code-settings-sync.

This is the full Developer Tools console output from a fresh session while I reproduced the error: posh_debug_error.log

No differences in your actions, except I did not try on OS X, just Windows

isidorn commented 6 years ago

@carlocardella since you can reproduce and the logs are not useful in this case F1 > open developer tools > source (wait a bit) and put a brekapoint here Start debugging, the breakpoint should be hit and the debugAdapter should be null. If that is indeed the case figure out why this guy is returning null https://github.com/Microsoft/vscode/blob/e3938ba331f36aa1739356b8d93a8586a8e549de/src/vs/workbench/parts/debug/node/debugger.ts#L47

Also make sure to not have any extensions installed when reproducing this bug. LIke live share

TylerLeonhardt commented 6 years ago

If you want me to pair-debug this with you, @carlocardella, just let me know and I can stop by. 👍

carlocardella commented 6 years ago

The problem seems a conflict with Live Share, if I disable it then the error disappears and I can debug powershell. I had read #58847 but it did not seem to apply since that problem is resolved and I have a third laptop where I cannot reproduce the problem even with Live Share enabled.

I can certainly try to debug more, anything specific should I look for?

isidorn commented 6 years ago

Please file this against a live share extension and continue the investigation there - they would know more. Thanks a lot https://github.com/MicrosoftDocs/live-share

weinand commented 5 years ago

I can easily reproduce.

The issue is that the PowerShell extension does not contribute a "label" property in its package.json but relies on its "type" property to be used as a label (which explains why the type uses a rather unusual camel case style).

When running the PowerShell DA in the EH instead of VS Code, we were ignoring debugger contributions that lack the type attribute.

In addition the error alert was not describing the problem adequately.

/cc @rkeithhill

weinand commented 5 years ago

I've fixed the bug by accepting debugger contribution that lack a "label" but have a "program" or "runtime" instead.

In addition, I've improved the error reporting.