git-time-metric / gtm

Simple, seamless, lightweight time tracking for Git
MIT License
977 stars 52 forks source link

VS Code bug - property document #55

Closed ajsb85 closed 7 years ago

ajsb85 commented 7 years ago

Hi @nexus-uw

I can see this error message in the devtools:

shell.ts:433 Cannot read property 'document' of undefined: TypeError: Cannot read property 'document' of undefined at C:\<extensions-path>\s3ramsay.vscode-gtm-0.1.2\out\src\extension.js:49:88

Extension Author Version
vscode-markdownlint DavidAnson 0.6.1
jshint dbaeumer 0.10.15
ghlink dt 0.0.4
EditorConfig EditorConfig 0.3.4
Theme-Zenburn gerane 0.0.3
sass-lint glen-84 0.0.3
vscode-commitizen KnisterPeter 0.3.5
vscode-github KnisterPeter 0.9.0
debugger-for-chrome msjsdiag 2.4.2
vscode-docker PeterJausovec 0.0.11
gitlink qezhu 0.0.1
sass-indented robinbentley 1.3.0
sharecode RolandGreim 0.4.0
vscode-gtm s3ramsay 0.1.2

Steps to Reproduce:

  1. Open the Extension list of the sidebar
  2. Select any extension
mschenk42 commented 7 years ago

I see that too. The plugin seems to be working fine for me even with this error. Is GTM tracking your time?

Not sure why you are getting this error. I'm not the author of this plugin and my knowledge of typescript is minimal. BTW, this is the main repo for the plugin, https://github.com/nexus-uw/vscode-gtm.

Any guidance on how to fix this?

mschenk42 commented 7 years ago

See issue here https://github.com/nexus-uw/vscode-gtm/issues/12