microsoft / sarif-vscode-extension

SARIF Microsoft Visual Studio Code extension
MIT License
111 stars 50 forks source link

TypeError: e is not a function when used with the "Alternate File" extension #431

Open aeisenberg opened 2 years ago

aeisenberg commented 2 years ago

Hello, I am getting this error in my console when I try to initialize the will-wow.vscode-alternate-file. I find it surprising that there is an interaction between the two extensions.

[2022-04-11 18:29:32.118] [exthost] [error] TypeError: e is not a function
    at sort (/Users/andrew.eisenberg/.vscode/extensions/ms-sarifvscode.sarif-viewer-3.1.1/src/shared/extension.ts:57:20)
    at Array.sort (<anonymous>)
    at Array.sortBy (/Users/andrew.eisenberg/.vscode/extensions/ms-sarifvscode.sarif-viewer-3.1.1/src/shared/extension.ts:56:10)
    at Object.<anonymous> (/Users/andrew.eisenberg/.vscode/extensions/will-wow.vscode-alternate-file-0.3.1/node_modules/result-async/src/pipeAsync.ts:170:22)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/andrew.eisenberg/.vscode/extensions/will-wow.vscode-alternate-file-0.3.1/node_modules/result-async/lib/pipeAsync.js:4:58) alternate.initProjections {"value":"will-wow.vscode-alternate-file","_lower":"will-wow.vscode-alternate-file"}

To reproduce:

  1. install sarif-vscode-extension and vscode-alternate-file extensions
  2. Run the command "Initialize Projections File"
  3. ERROR!
  4. See error message pop up and look at the "Log (Extension Host)" output.
  5. Uninstall sarif-vscode-extension and reload vscode
  6. No more error and the command succeeds.