swdotcom / swdc-vscode

Time-tracking plugin for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=softwaredotcom.swdc-vscode
Apache License 2.0
451 stars 46 forks source link

Stack bug #422

Closed syzgod closed 6 months ago

syzgod commented 1 year ago

VS Code Version: 1.72.2 OS Version: Ubuntu 22.04.1 LTS Plugin version: 2.6.33

Hello everyone!

I'm getting this error on Code Time after everything is loaded in VScode:

Activating extension 'softwaredotcom.swdc-vscode' failed: Maximum call stack size exceeded. $onExtensionActivationError @ mainThreadExtensionService.ts:111

Any idea why?

xavluiz commented 1 year ago

Thank you for the information. We'll look into this right away.

flerpo commented 1 year ago

Yeah, me to. Worked last week Same version of VS-code and extension but on windows...

[2022-10-26 20:19:14.648] [exthost] [error] Activating extension softwaredotcom.swdc-vscode failed due to an error: [2022-10-26 20:19:14.648] [exthost] [error] RangeError: Maximum call stack size exceeded at splitPath (node:electron/js2c/asar_bundle:5:747) at e.existsSync (node:electron/js2c/asarbundle:5:6372) at P (c:\Users*.vscode\extensions\softwaredotcom.swdc-vscode-2.6.33\dist\extension.js:2:922135) at k (c:\Users*.vscode\extensions\softwaredotcom.swdc-vscode-2.6.33\dist\extension.js:2:921822) at F (c:\Users*.vscode\extensions\softwaredotcom.swdc-vscode-2.6.33\dist\extension.js:2:921965) at (c:\Users*.vscode\extensions\softwaredotcom.swdc-vscode-2.6.33\dist\extension.js:2:921265) at H (c:\Users*.vscode\extensions\softwaredotcom.swdc-vscode-2.6.33\dist\extension.js:2:922529) at U (c:\Users*.vscode\extensions\softwaredotcom.swdc-vscode-2.6.33\dist\extension.js:2:922274) at o (c:\Users*.vscode\extensions\softwaredotcom.swdc-vscode-2.6.33\dist\extension.js:2:946264) at t.getJsonItem (c:\Users*.vscode\extensions\softwaredotcom.swdc-vscode-2.6.33\dist\extension.js:2:946567)

syzgod commented 1 year ago

Thank you for the information. We'll look into this right away.

Thank you. Anyway, everything is fine in Windows 11 but even after reinstalling the extension in VScode it is still now working in Ubuntu sadly.

daZepelin commented 1 year ago

I am having the same issue for like half a year now and simply can't use the extenstion since. Output in the Extenstion Host is similar:

2023-01-26 09:31:51.274 [info] ExtensionService#_doActivateExtension softwaredotcom.swdc-vscode, startup: false, activationEvent: 'onStartupFinished'
2023-01-26 09:31:54.241 [error] Activating extension softwaredotcom.swdc-vscode failed due to an error:
2023-01-26 09:31:54.241 [error] RangeError: Maximum call stack size exceeded
    at splitPath (node:electron/js2c/asar_bundle:5:747)
    at Object.e.existsSync (node:electron/js2c/asar_bundle:5:6372)
    at P (c:\Users\vytut\.vscode\extensions\softwaredotcom.swdc-vscode-2.6.42\dist\extension.js:2:967976)
    at D (c:\Users\vytut\.vscode\extensions\softwaredotcom.swdc-vscode-2.6.42\dist\extension.js:2:967663)
    at F (c:\Users\vytut\.vscode\extensions\softwaredotcom.swdc-vscode-2.6.42\dist\extension.js:2:967806)
    at C (c:\Users\vytut\.vscode\extensions\softwaredotcom.swdc-vscode-2.6.42\dist\extension.js:2:967106)
    at U (c:\Users\vytut\.vscode\extensions\softwaredotcom.swdc-vscode-2.6.42\dist\extension.js:2:968246)
    at t.logIt (c:\Users\vytut\.vscode\extensions\softwaredotcom.swdc-vscode-2.6.42\dist\extension.js:2:970476)
    at a (c:\Users\vytut\.vscode\extensions\softwaredotcom.swdc-vscode-2.6.42\dist\extension.js:2:988599)
    at t.getJsonItem (c:\Users\vytut\.vscode\extensions\softwaredotcom.swdc-vscode-2.6.42\dist\extension.js:2:988902)
    at C (c:\Users\vytut\.vscode\extensions\softwaredotcom.swdc-vscode-2.6.42\dist\extension.js:2:967105)

And the extenstion Tab only comes up with: An error occurred while loading view: codetime.webView. Some time ago it was just always stuck in an infinite loading.

Tried reinstalling the extenstion multiple times, even reinstalled VSC at some point. Seems to work on my another Windows server machine now as well as Windows 11 one, but on my Windows 10 still can't get it to work.