Giter Site home page Giter Site logo

wakatime / vscode-wakatime Goto Github PK

View Code? Open in Web Editor NEW
1.2K 17.0 125.0 1.48 MB

Visual Studio Code plugin for automatic time tracking and metrics generated from your programming activity.

Home Page: https://wakatime.com/vs-code

License: BSD 3-Clause "New" or "Revised" License

TypeScript 97.64% JavaScript 2.36%
vscode-extension time-tracking

vscode-wakatime's Introduction

WakaTime for Visual Studio Code

Version Installs WakaTime

WakaTime is an open source VS Code plugin for metrics, insights, and time tracking automatically generated from your programming activity.

Installation

  1. Press F1 or ⌘ + Shift + P and type install. Pick Extensions: Install Extension.

    type install

  2. Type wakatime and hit enter.

    type wakatime

  3. Enter your api key, then press enter.

    (If you’re not prompted, press F1 or ⌘ + Shift + P then type WakaTime API Key.)

  4. Use VSCode and your coding activity will be displayed on your WakaTime dashboard

Usage

Visit https://wakatime.com to see your coding activity.

Project Overview

Configuring

VS Code specific settings are available from ⌘ + Shift + P, then typing wakatime.

For example, to hide today's coding activity in your status bar:

Press ⌘ + Shift + P then set WakaTime: Status Bar Coding Activity to false.

Extension settings are stored in the INI file at $HOME/.wakatime.cfg.

More information can be found from wakatime-cli.

If using an online IDE like gitpods, add your api key to global ENV key WAKATIME_API_KEY.

Notes:

  1. $HOME defaults to $HOME
  2. To disable the extension at startup add disabled=true to your config, this operation can also be performed by pressing ⌘ + Shift + P and selecting WakaTime: Disable.

Troubleshooting

First, turn on debug mode:

  1. Press F1 or ⌘ + Shift + P
  2. Type > WakaTime: Debug, and press Enter.
  3. Select true, then press Enter.

Next, open your Developer Console to view logs and errors:

Help → Toggle Developer Tools

Errors outside the scope of vscode-wakatime go to $HOME/.wakatime/wakatime.log from wakatime-cli.

If your error message contains "won't send heartbeat due to backoff" then delete your ~/.wakatime/wakatime-internal.cfg file to trigger an API connection so we can see the real error message.

The How to Debug Plugins guide shows how to check when coding activity was last received from your editor using the Plugins Status Page.

Microsoft Windows Only: Using WakaTime behind a corporate proxy? Try enabling your Windows Root Certs inside VS Code with the win-ca extension: Press Ctrl + Shift + X, search for win-ca, press Install.

For more general troubleshooting info, see the wakatime-cli Troubleshooting Section.

SSH configuration

If you're connected to a remote host using the ssh extension you might want to force WakaTime to run locally instead on the server. This configuration is needed when the server you connect is shared among other people. Please follow this guide.

Uninstalling

  1. Click the Extensions sidebar item in VS Code.

  2. Type wakatime and hit enter.

  3. Click the settings icon next to WakaTime, then click Uninstall.

  4. Delete the ~/.wakatime* files in your home directory, unless you’re still using WakaTime with another IDE.

Contributing

Pull requests, bug reports, and feature requests are welcome! Please search existing issues before creating a new one.

To run from source:

  1. git clone [email protected]:wakatime/vscode-wakatime.git
  2. cd vscode-wakatime
  3. npm install
  4. npm run watch
  5. Install the extension from the marketplace
  6. Then symlink ~/.vscode/extensions/wakatime.vscode-wakatime-*/dist/extension.js to ./dist/extension.js

Or to run the web version from source:

  1. git clone [email protected]:wakatime/vscode-wakatime.git
  2. cd vscode-wakatime
  3. npm install
  4. npm run compile
  5. npm run open-in-browser
  6. Go to localhost:3000 in your web browser

Many thanks to all contributors!

Made with ❤️ by the WakaTime Team.

vscode-wakatime's People

Contributors

alanhamlett avatar codinggirl avatar gandarez avatar hardik127 avatar k33k0 avatar kidonng avatar kisaragi-hiu avatar mjbvz avatar notquiteamonad avatar psukys avatar salmonslay avatar valeth avatar zeh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-wakatime's Issues

Not registering files over a network disk (NAS in windows)

Hello,

First of all, great plugin.

Lately I have been working on a project that is located in an external disk mounted over a network location. The disk is mounted in windows in the location \\DISKSTATION\project\.

I can open the project in vscode and everything works fine, except that wakatime that is not registering any activity in that project. My dashboard is empty.

The wierd part is that the plugins seems to be sending heartbeats:
keke

Let me know if I can do something to help locate any bug.
Salut and thanks for your time.

Unknown error in VSCode on Ubuntu 18.04

I've installed this plugin as per the instruction, but instead of logging my activity it gives the following log output:

console.ts:136 [Extension Host] [WakaTime] [ERROR] Error: Command failed: python3 /home/kondenko/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/cli.py --file /home/kondenko/Projects/web/cv-kondenko/src/components/introduction/Introduction.vue --plugin vscode/1.23.1 vscode-wakatime/1.2.2 --alternate-project cv-kondenko --write
Traceback (most recent call last):
  File "/home/kondenko/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/cli.py", line 35, in <module>
    sys.exit(wakatime.execute(sys.argv[1:]))
  File "/home/kondenko/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/main.py", line 42, in execute
    setup_logging(args, __version__)
  File "/home/kondenko/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/logger.py", line 81, in setup_logging
    handler = logging.FileHandler(os.path.expanduser(logfile))
  File "/usr/lib/python3.6/logging/__init__.py", line 1030, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.6/logging/__init__.py", line 1059, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/home/kondenko/.wakatime.log'

t.log @ console.ts:136
t._logExtensionHostMessage @ extensionHost.ts:393
(anonymous) @ extensionHost.ts:210
emitTwo @ events.js:106
emit @ events.js:194
process.nextTick @ internal/child_process.js:766
_combinedTickCallback @ internal/process/next_tick.js:73
_tickCallback @ internal/process/next_tick.js:104
console.ts:136 [Extension Host] [WakaTime] [ERROR] Unknown Error (1); Check your /home/kondenko/.wakatime.log file for more details.
t.log @ console.ts:136
t._logExtensionHostMessage @ extensionHost.ts:393
(anonymous) @ extensionHost.ts:210
emitTwo @ events.js:106
emit @ events.js:194
process.nextTick @ internal/child_process.js:766
_combinedTickCallback @ internal/process/next_tick.js:73
_tickCallback @ internal/process/next_tick.js:104
console.ts:136 [Extension Host] [WakaTime] [DEBUG] Sending heartbeat: python3 /home/kondenko/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/cli.py --file /home/kondenko/Projects/web/cv-kondenko/src/components/introduction/Introduction.vue --plugin "vscode/1.23.1 vscode-wakatime/1.2.2" --alternate-project cv-kondenko --write
console.ts:136 [Extension Host] [WakaTime] [ERROR] Traceback (most recent call last):
  File "/home/kondenko/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/cli.py", line 35, in <module>
    sys.exit(wakatime.execute(sys.argv[1:]))
  File "/home/kondenko/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/main.py", line 42, in execute
    setup_logging(args, __version__)
  File "/home/kondenko/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/logger.py", line 81, in setup_logging
    handler = logging.FileHandler(os.path.expanduser(logfile))
  File "/usr/lib/python3.6/logging/__init__.py", line 1030, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.6/logging/__init__.py", line 1059, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/home/kondenko/.wakatime.log'

t.log @ console.ts:136
t._logExtensionHostMessage @ extensionHost.ts:393
(anonymous) @ extensionHost.ts:210
emitTwo @ events.js:106
emit @ events.js:194
process.nextTick @ internal/child_process.js:766
_combinedTickCallback @ internal/process/next_tick.js:73
_tickCallback @ internal/process/next_tick.js:104
console.ts:136 [Extension Host] [WakaTime] [ERROR] Error: Command failed: python3 /home/kondenko/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/cli.py --file /home/kondenko/Projects/web/cv-kondenko/src/components/introduction/Introduction.vue --plugin vscode/1.23.1 vscode-wakatime/1.2.2 --alternate-project cv-kondenko --write
Traceback (most recent call last):
  File "/home/kondenko/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/cli.py", line 35, in <module>
    sys.exit(wakatime.execute(sys.argv[1:]))
  File "/home/kondenko/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/main.py", line 42, in execute
    setup_logging(args, __version__)
  File "/home/kondenko/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/logger.py", line 81, in setup_logging
    handler = logging.FileHandler(os.path.expanduser(logfile))
  File "/usr/lib/python3.6/logging/__init__.py", line 1030, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python3.6/logging/__init__.py", line 1059, in _open
    return open(self.baseFilename, self.mode, encoding=self.encoding)
PermissionError: [Errno 13] Permission denied: '/home/kondenko/.wakatime.log'

t.log @ console.ts:136
t._logExtensionHostMessage @ extensionHost.ts:393
(anonymous) @ extensionHost.ts:210
emitTwo @ events.js:106
emit @ events.js:194
process.nextTick @ internal/child_process.js:766
_combinedTickCallback @ internal/process/next_tick.js:73
_tickCallback @ internal/process/next_tick.js:104
console.ts:136 [Extension Host] [WakaTime] [ERROR] Unknown Error (1); Check your /home/kondenko/.wakatime.log file for more details.

Cannot read property 'isEmpty' of undefined

I recently started getting this error:

Cannot read property 'isEmpty' of undefined: TypeError: Cannot read property 'isEmpty' of undefined
    at PythonDefinitionProvider.provideDefinition 

File "C:\Users\<username>\.vscode\extensions\WakaTime.vscode-wakatime-1.1.9\out\wakatime-master\wakatime\configs.py", line 58, in parseConfigFile
    configs.read_file(fh)
  File "C:\Users\<username>\.vscode\extensions\WakaTime.vscode-wakatime-1.1.9\out\wakatime-master\wakatime\packages\configparser\__init__.py", line 724, in read_file
    self._read(f, source)
  File "C:\Users\<username>\.vscode\extensions\WakaTime.vscode-wakatime-1.1.9\out\wakatime-master\wakatime\packages\configparser\__init__.py", line 1131, in _read
    raise e
ParsingError: Source contains parsing errors: 'C:\\Users\\<username>\\.wakatime.cfg'
	[line  5]: u'{"now": "2017/06/11 09:29:26 Romance Daylight Time", "version": "8.0.3", "plugin": "vscode/1.13.0 vscode-wakatime/1.1.8", "time": 1497166160.074, "caller": "C:\\\\Users\\\\<username>\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.1.8\\\\out\\\\wakatime-master\\\\wakatime\\\\main.py", "lineno": 112, "file": "c:\\\\Users\\\\<username>\\\\PATH TO\\\\PROJECT\\\\opencl_convolution.py", "level": "DEBUG", "message": "{\'language\': u\'Python\', \'lines\': 767, \'entity\': \'c:\\\\\\\\Users\\\\\\\\<username>\\\\PATH TO\\\\PROJECT\\\\\opencl_convolution.py\', \'project\': \'OpenCL project\', \'dependencies\': [u\'pyopencl\', u\'PIL\', u\'numpy\', u\'math\', u\'time\'], \'time\': 1497166160.074, \'type\': \'file\'}"}\r\n'

Seems related to the fact that I had to downgrade from python 3.6 to 2.7 in my machine.
Reinstalling the extension does not seem to fix the issue.

I've tried to find the .wakatime.log file but haven't been able to find it's location nor have I been able to generate the activity log for VS Code

Config Parser Error (103) check your wakatime.log file for more detail

My wakatime.log file is empty

when I click on toggle developer tools

[WakaTime] [ERROR] Error: Command failed: pythonw
....vscode\extensions\WakaTime.vscode-wakatime-1.1.12\out\wakatime-master\wakatime\cli.py --file afile.ts --plugin vscode/1.13.0 vscode-wakatime/1.1.12 --alternate-project --write --config .wakatime.cfg --logfile .wakatime.log

.logExtensionHostMessage @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:29
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/electron-browser/workbench.main.js:29 [Extension Host] [WakaTime] [ERROR] Config Parsing Error (103); Check your ~/.wakatime.log file for more details.

Proxy issue trying to initialize WakaTime

I can't get past the initialization step. I have our company's proxy set in the cfg and I've tried running it with no_ssl_verify set to both true and false. On load, I get this:

[Extension Host] [WakaTime] [DEBUG] Downloading wakatime-core...
log.ts:171   ERR unable to verify the first certificate: Error: unable to verify the first certificate
	at TLSSocket.<anonymous> (_tls_wrap.js:1088:38)
	at emitNone (events.js:86:13)
	at TLSSocket.emit (events.js:188:7)
	at TLSSocket._finishInit (_tls_wrap.js:610:8)
	at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)
log.ts:171   ERR socket hang up: Error: socket hang up
	at createHangUpError (_http_client.js:302:15)
	at TLSSocket.socketCloseListener (_http_client.js:334:23)
	at emitOne (events.js:101:20)
	at TLSSocket.emit (events.js:191:7)
	at _handle.close (net.js:510:12)
	at Socket.done (_tls_wrap.js:332:7)
	at Object.onceWrapper (events.js:293:19)
	at emitOne (events.js:96:13)
	at Socket.emit (events.js:191:7)
	at TCP._handle.close [as _onclose] (net.js:510:12)

Can't uninstall it...

Everytime I try to uninstall WakaTime from VSCode extensions, I hit reload, and I see "WakaTime initializing" and the extension is there again.

Any ideas?

Various ambigous errors

vscode status bar says: WakaTime offline, coding activity will sync when offline

This has been going on since I installed the extension, here is the content of ~/.wakatime.log:

{"now": "2017/08/20 13:01:42 +0700", "version": "8.0.3", "plugin": "vscode/1.15.1 vscode-wakatime/1.1.13", "time": 1503208902.229668, "level": "WARNING", "message": "Traceback (most recent call last):\n  File \"~/.vscode/extensions/WakaTime.vscode-wakatime-1.1.13/out/wakatime-master/wakatime/offlinequeue.py\", line 56, in push\n    conn, c = self.connect()\n  File \"~/.vscode/extensions/WakaTime.vscode-wakatime-1.1.13/out/wakatime-master/wakatime/offlinequeue.py\", line 49, in connect\n    '''.format(self.table_name))\nDatabaseError: database disk image is malformed\n"}
{"now": "2017/08/20 13:01:47 +0700", "version": "8.0.3", "plugin": "vscode/1.15.1 vscode-wakatime/1.1.13", "time": 1503208906.390131, "level": "WARNING", "message": "Traceback (most recent call last):\n  File \"~/.vscode/extensions/WakaTime.vscode-wakatime-1.1.13/out/wakatime-master/wakatime/offlinequeue.py\", line 56, in push\n    conn, c = self.connect()\n  File \"~/.vscode/extensions/WakaTime.vscode-wakatime-1.1.13/out/wakatime-master/wakatime/offlinequeue.py\", line 49, in connect\n    '''.format(self.table_name))\nDatabaseError: database disk image is malformed\n"}

I have tried deleting ~/.wakatime.db multiple times, doesn't seem to do anything, the error above keeps showing up

This error appears multiple times in vscode DevTools:

[Extension Host] [WakaTime] [ERROR] Error: Command failed: pythonw ~/.vscode/extensions/WakaTime.vscode-wakatime-1.1.13/out/wakatime-master/wakatime/cli.py --file ~PROJECT/package.json --plugin vscode/1.15.1 vscode-wakatime/1.1.13 --alternate-project ~PROJECT

Tried to execute this in terminal:

pythonw ~/.vscode/extensions/WakaTime.vscode-wakatime-1.1.13/out/wakatime-master/wakatime/cli.py --file ~PROJECT/package.json --plugin vscode/1.15.1 vscode-wakatime/1.1.13 --alternate-project ~PROJECT

got this instead:

usage: wakatime ...
wakatime: error: unrecognized arguments: vscode-wakatime/1.1.13

When executing this:

pythonw ~/.vscode/extensions/WakaTime.vscode-wakatime-1.1.13/out/wakatime-master/wakatime/cli.py --file ~PROJECT/package.json --plugin vscode/1.15.1 --plugin vscode-wakatime/1.1.13 --alternate-project ~PROJECT

no errors, message, or anything, maybe it works?

VS Code WakaTime extension version: 1.1.13
Python version: Python 2.7.10
OS: OSX 10.11.6 (El Capitan)

Never prompted to input API key on VS Code

According to the documentation:

  1. install the VS code Wakatime extension
  2. restart VS code
  3. Enter in your Wakatime API key

Step 3 is not really clear, after restarting I'm never prompted to input the Wakatime API key. I checked the Wakatime extension settings but I don't see any text field to input the API key.

Reinstalling leads to the same results.

Feature request: Get rid of "WakaTime Initialized" in status bar

Hi,

First, thanks for a great product & VSCode extension. I love to keep track of what I'm working on, and Wakatime helps me with that.

Now, to my problem: it takes up way too much space in the VSCode status bar.

image

This in itself is not a big deal, but my VSCode status bar is overly cluttered will all kinds of things. Being able to just show the icon would be much more useful for me.

Can it be done?

Timeout when connecting to API

@whiteviel commented 5 hours ago:

experiencing the same error error log from extension

{
  "now": "2017/11/07 13:58:09 +0300",
  "version": "9.0.0",
  "plugin": "vscode/1.17.2 vscode-wakatime/1.1.21",
  "time": 1510052220.00604,
  "caller": "/Users/******8/.vscode/extensions/WakaTime.vscode-wakatime-1.1.21/out/wakatime-master/wakatime/main.py",
  "lineno": 198,
  "file": "/Users/*******/****/***.py,
  "level": "WARNING",
  "message": "{'traceback': 'Traceback (most recent call last):\\n  File \"/Users/******8/.vscode/extensions/WakaTime.vscode-wakatime-1.1.21/out/wakatime-master/wakatime/main.py\", line 167, in send_heartbeat\\n    verify=not nosslverify)\\n  File \"/Users/******8/.vscode/extensions/WakaTime.vscode-wakatime-1.1.21/out/wakatime-master/wakatime/packages/requests/sessions.py\", line 555, in post\\n    return self.request(\\'POST\\', url, data=data, json=json, **kwargs)\\n  File \"/Users/******8/.vscode/extensions/WakaTime.vscode-wakatime-1.1.21/out/wakatime-master/wakatime/packages/requests/sessions.py\", line 508, in request\\n    resp = self.send(prep, **send_kwargs)\\n  File \"/Users/******8/.vscode/extensions/WakaTime.vscode-wakatime-1.1.21/out/wakatime-master/wakatime/packages/requests/sessions.py\", line 618, in send\\n    r = adapter.send(request, **kwargs)\\n  File \"/Users/******8/.vscode/extensions/WakaTime.vscode-wakatime-1.1.21/out/wakatime-master/wakatime/packages/requests/adapters.py\", line 521, in send\\n    raise ReadTimeout(e, request=request)\\nReadTimeout: HTTPSConnectionPool(host=\\'api.wakatime.com\\', port=443): Read timed out. (read timeout=60)\\n', 'ReadTimeout': u\"HTTPSConnectionPool(host='api.wakatime.com', port=443): Read timed out. (read timeout=60)\"}"
}

Leverage User Settings

OS: Windows 10 1706 / Ubuntu 16.04
vsCode Version: 1.20.1
Plugin Version: 1.1.22

Issue

I think that this plugin should leverage User Settings to store configuration options such as the APIKey and Status Bar Icon. This would be convenient, and allow for easier syncing.

Wakatime Offline, coding activity will sync when online

I have encountered this problem for several days in my editors such VSCode. And in Sublime text it is always showing "Wakatime initializing". I have no change in any setting files and I have computer accessed into the Internet but it doesn't work and no track data sync successfully to the API. Does there any problem in your servers or something else?
PS: I am in China...will the wall become cause the problem?

Cannot find module 'tough-cookie'

Today I installed this plugin in VS Code for Linux, and the install went great but it wasn't reporting data. So I checked the Developer Tools and found this error in the console:

[Extension Host] Activating extension 'WakaTime.vscode-wakatime' failed: Cannot find module 'tough-cookie'.

I've been using wakatime for a long time via WebStorm, so this is the first time I've tried it with VS Code. My Linux is Ubuntu 16.04 (xenial).

Here's a screenshot of the console:

wakatime-vscode-console-error

VSCode not working on Windows

I had to use my windows pc today because I forgot my charger at work. I installed WakaTime for vscode but it didn't ask me for an API key, so obviously it's not working.

this is the output from the console:

[Extension Host] Initializing WakaTime v1.0.4
threadService.ts:207[Extension Host] TypeError: Cannot read property 'length' of null
    at writeOrBuffer (_stream_writable.js:268:41)
    at Writable.write (_stream_writable.js:215:11)
    at Object.execFileSync (child_process.js:499:20)
    at Object.module.(anonymous function) [as execFileSync] (ELECTRON_ASAR.js:158:20)
    at Dependencies.getPythonLocation (C:\Users\stijn\.vscode\extensions\WakaTime.vscode-wakatime-1.0.4\out\extension.js:265:44)
    at Dependencies.isPythonInstalled (C:\Users\stijn\.vscode\extensions\WakaTime.vscode-wakatime-1.0.4\out\extension.js:384:14)
    at Dependencies.checkAndInstall (C:\Users\stijn\.vscode\extensions\WakaTime.vscode-wakatime-1.0.4\out\extension.js:182:14)
    at new WakaTime (C:\Users\stijn\.vscode\extensions\WakaTime.vscode-wakatime-1.0.4\out\extension.js:33:27)
    at activate (C:\Users\stijn\.vscode\extensions\WakaTime.vscode-wakatime-1.0.4\out\extension.js:16:20)
    at Function.t._callActivateOptional (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:12:438)
threadService.ts:207[Extension Host] Downloading wakatime-core...
threadService.ts:207[Extension Host] Extracting wakatime-core into "C:\Users\stijn\.vscode\extensions\WakaTime.vscode-wakatime-1.0.4\out"...
threadService.ts:207[Extension Host] Finished extracting wakatime-core.

Name of the project

Hello there,
Great plugin. Thank you for creating it.
Is there a way to set the name of the project? Currently it gets the folder name of the project, which in my situation is always named "public_html", and I can't separate the projects at wakatime. Maybe an optional variable at the project vscode file would be the best way to do it.

Thank you for your help.

Extension host terminated unexpectedly on Windows 10

Whenever I enable the WakaTime plugin and reload the editor, I get the following error message displayed at the top of the screen:

capture

If I click the Developer Tools button, the following errors are shown in the console:

capture2

WakaTime not working through corp SSL proxy

I get this error when I start vscode, api key is entered wakatime stays offline and the wakatime.log is empty.

hreadService.ts:207[Extension Host] Error: Command failed: pythonw %USERPROFILE%\.vscode\extensions\WakaTime.vscode-wakatime-1.0.6\out\wakatime-master\wakatime\cli.py --file %FILENAME% --plugin vscode/1.2.1 vscode-wakatime/1.0.6 --alternate-project %PROJECTNAME%

    at ChildProcess.exithandler (child_process.js:214:12)
    at emitTwo (events.js:105:20)
    at ChildProcess.emit (events.js:185:7)
    at maybeClose (internal/child_process.js:850:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)

Conflict with Markdown+Math plugin

Is there any special logic to deal dollar sign in markdown doc? If wakatime plugin is enabled, then the math equation(starts and ends with two continuous dollars) won't be able to display correctly.

More details please refer to this issue

Wasting space on the status bar

There's no option to disable the status bar line "WakaTime Active", it's unnecessary. I'd further suggest to have it off by default. A notification banner would be better as it can disappear quickly, and be more readily seen when there are connection issues.

Detect unsaved files

I'm not sure what type of file type detection that vsCode offers the plugin, but would it be possible to count time spent with unsaved files? Maybe look at the active language in the editor pane?

Getting SSL Errors since April 6th

Hello,

wakatime in VS Code keeps initializing/working offline/erroring for me since Friday April 6th.
The last Heartbeat that made it to the API seems to be from Friday, 6. April 2018 05:29:28.295 GMT.
I was still working until about 6 hours later and did so today as well but it's still not working.

.wakatime.log has nothing in it for Friday but added this multiple times today:

{"now": "2018/04/09 08:58:48 Mitteleurop\u00e4ische Sommerzeit", "version": "10.1.3", "plugin": "vscode/1.22.1 vscode-wakatime/1.2.0", "time": 1523257128.693403, "caller": "C:\\Users\\sschewe\\.vscode\\extensions\\WakaTime.vscode-wakatime-1.2\\out\\wakatime-master\\wakatime\\api.py", "lineno": 59, "file": "d:\\MiniProjects\\ColoPix V3\\Assets\\_Frameworks\\BaseClasses\\CustomGUIStyle.cs", "level": "DEBUG", "message": "[{'language': 'C#', 'user_agent': 'wakatime/10.1.3 (Windows-8-6.2.9200) Python3.4.3.final.0 vscode/1.22.1 vscode-wakatime/1.2.0', 'cursorpos': None, 'lines': 39, 'time': 1523257128.693403, 'lineno': None, 'branch': 'master', 'is_write': False, 'entity': 'd:\\\\MiniProjects\\\\ColoPix V3\\\\Assets\\\\_Frameworks\\\\BaseClasses\\\\CustomGUIStyle.cs', 'type': 'file', 'dependencies': ['UnityEngine', 'UnityEditor'], 'project': 'ColoPix V3'}]"}
{"now": "2018/04/09 08:58:50 Mitteleurop\u00e4ische Sommerzeit", "version": "10.1.3", "plugin": "vscode/1.22.1 vscode-wakatime/1.2.0", "time": 1523257128.693403, "caller": "C:\\Users\\sschewe\\.vscode\\extensions\\WakaTime.vscode-wakatime-1.2\\out\\wakatime-master\\wakatime\\api.py", "lineno": 121, "file": "d:\\MiniProjects\\ColoPix V3\\Assets\\_Frameworks\\BaseClasses\\CustomGUIStyle.cs", "level": "WARNING", "message": "{'traceback': 'Traceback (most recent call last):\\n  File \"C:\\\\Users\\\\sschewe\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.2\\\\out\\\\wakatime-master\\\\wakatime\\\\packages\\\\urllib3\\\\connectionpool.py\", line 601, in urlopen\\n    chunked=chunked)\\n  File \"C:\\\\Users\\\\sschewe\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.2\\\\out\\\\wakatime-master\\\\wakatime\\\\packages\\\\urllib3\\\\connectionpool.py\", line 346, in _make_request\\n    self._validate_conn(conn)\\n  File \"C:\\\\Users\\\\sschewe\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.2\\\\out\\\\wakatime-master\\\\wakatime\\\\packages\\\\urllib3\\\\connectionpool.py\", line 850, in _validate_conn\\n    conn.connect()\\n  File \"C:\\\\Users\\\\sschewe\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.2\\\\out\\\\wakatime-master\\\\wakatime\\\\packages\\\\urllib3\\\\connection.py\", line 326, in connect\\n    ssl_context=context)\\n  File \"C:\\\\Users\\\\sschewe\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.2\\\\out\\\\wakatime-master\\\\wakatime\\\\packages\\\\urllib3\\\\util\\\\ssl_.py\", line 329, in ssl_wrap_socket\\n    return context.wrap_socket(sock, server_hostname=server_hostname)\\n  File \"C:\\\\python34\\\\lib\\\\ssl.py\", line 365, in wrap_socket\\n    _context=self)\\n  File \"C:\\\\python34\\\\lib\\\\ssl.py\", line 583, in __init__\\n    self.do_handshake()\\n  File \"C:\\\\python34\\\\lib\\\\ssl.py\", line 810, in do_handshake\\n    self._sslobj.do_handshake()\\nssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n  File \"C:\\\\Users\\\\sschewe\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.2\\\\out\\\\wakatime-master\\\\wakatime\\\\packages\\\\requests\\\\adapters.py\", line 440, in send\\n    timeout=timeout\\n  File \"C:\\\\Users\\\\sschewe\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.2\\\\out\\\\wakatime-master\\\\wakatime\\\\packages\\\\urllib3\\\\connectionpool.py\", line 639, in urlopen\\n    _stacktrace=sys.exc_info()[2])\\n  File \"C:\\\\Users\\\\sschewe\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.2\\\\out\\\\wakatime-master\\\\wakatime\\\\packages\\\\urllib3\\\\util\\\\retry.py\", line 388, in increment\\n    raise MaxRetryError(_pool, url, error or ResponseError(cause))\\nurllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=\\'api.wakatime.com\\', port=443): Max retries exceeded with url: /api/v1/users/current/heartbeats.bulk (Caused by SSLError(SSLError(1, \\'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)\\'),))\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n  File \"C:\\\\Users\\\\sschewe\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.2\\\\out\\\\wakatime-master\\\\wakatime\\\\api.py\", line 107, in send_heartbeats\\n    verify=not args.nosslverify)\\n  File \"C:\\\\Users\\\\sschewe\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.2\\\\out\\\\wakatime-master\\\\wakatime\\\\packages\\\\requests\\\\sessions.py\", line 555, in post\\n    return self.request(\\'POST\\', url, data=data, json=json, **kwargs)\\n  File \"C:\\\\Users\\\\sschewe\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.2\\\\out\\\\wakatime-master\\\\wakatime\\\\packages\\\\requests\\\\sessions.py\", line 508, in request\\n    resp = self.send(prep, **send_kwargs)\\n  File \"C:\\\\Users\\\\sschewe\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.2\\\\out\\\\wakatime-master\\\\wakatime\\\\packages\\\\requests\\\\sessions.py\", line 618, in send\\n    r = adapter.send(request, **kwargs)\\n  File \"C:\\\\Users\\\\sschewe\\\\.vscode\\\\extensions\\\\WakaTime.vscode-wakatime-1.2\\\\out\\\\wakatime-master\\\\wakatime\\\\packages\\\\requests\\\\adapters.py\", line 506, in send\\n    raise SSLError(e, request=request)\\nwakatime.packages.requests.exceptions.SSLError: HTTPSConnectionPool(host=\\'api.wakatime.com\\', port=443): Max retries exceeded with url: /api/v1/users/current/heartbeats.bulk (Caused by SSLError(SSLError(1, \\'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)\\'),))\\n', 'SSLError': \"HTTPSConnectionPool(host='api.wakatime.com', port=443): Max retries exceeded with url: /api/v1/users/current/heartbeats.bulk (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)'),))\"}"}

I tried un-/reinstalling the plugin as well as the newest python version but still can't get it to work.
using debug=true I get this in the Developer Tools in VS Code:

[Extension Host] [WakaTime] [DEBUG] Initializing WakaTime v1.2.0
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260 [Extension Host] [WakaTime] [DEBUG] Looking for python at: C:\Users\sschewe\.vscode\extensions\WakaTime.vscode-wakatime-1.2.0\out\python\pythonw
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260 [Extension Host] [WakaTime] [DEBUG] Invalid python version: 
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260 [Extension Host] [WakaTime] [DEBUG] Looking for python at: pythonw
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260 [Extension Host] [WakaTime] [DEBUG] Valid python version: Python 3.6.5

/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260 [Extension Host] [WakaTime] [DEBUG] Downloading wakatime-core...
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1306   ERR self signed certificate in certificate chain: Error: self signed certificate in certificate chain
	at TLSSocket.<anonymous> (_tls_wrap.js:1088:38)
	at emitNone (events.js:86:13)
	at TLSSocket.emit (events.js:188:7)
	at TLSSocket._finishInit (_tls_wrap.js:610:8)
	at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38)
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1306   ERR socket hang up: Error: socket hang up
	at createHangUpError (_http_client.js:302:15)
	at TLSSocket.socketCloseListener (_http_client.js:334:23)
	at emitOne (events.js:101:20)
	at TLSSocket.emit (events.js:191:7)
	at _handle.close (net.js:510:12)
	at TCP.done [as _onclose] (_tls_wrap.js:332:7)
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260 [Extension Host] ApplicationInsights:Sender Array(1)
t.log @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260 [Extension Host] ApplicationInsights:Sender Array(1)
t.log @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260 [Extension Host] [WakaTime] [DEBUG] Sending heartbeat: pythonw C:\Users\sschewe\.vscode\extensions\WakaTime.vscode-wakatime-1.2.0\out\wakatime-master\wakatime\cli.py --file "d:\MiniProjects\ColoPix V3\Assets\_Frameworks\BaseClasses\CustomGUIStyle.cs" --plugin "vscode/1.22.1 vscode-wakatime/1.2.0" --alternate-project "ColoPix V3" --config C:\Users\sschewe\.wakatime.cfg --logfile C:\Users\sschewe\.wakatime.log
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260 [Extension Host] [WakaTime] [ERROR] pythonw: can't open file 'C:\Users\sschewe\.vscode\extensions\WakaTime.vscode-wakatime-1.2.0\out\wakatime-master\wakatime\cli.py': [Errno 2] No such file or directory

t.log @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260 [Extension Host] [WakaTime] [ERROR] Error: Command failed: pythonw C:\Users\sschewe\.vscode\extensions\WakaTime.vscode-wakatime-1.2.0\out\wakatime-master\wakatime\cli.py --file d:\MiniProjects\ColoPix V3\Assets\_Frameworks\BaseClasses\CustomGUIStyle.cs --plugin vscode/1.22.1 vscode-wakatime/1.2.0 --alternate-project ColoPix V3 --config C:\Users\sschewe\.wakatime.cfg --logfile C:\Users\sschewe\.wakatime.log
pythonw: can't open file 'C:\Users\sschewe\.vscode\extensions\WakaTime.vscode-wakatime-1.2.0\out\wakatime-master\wakatime\cli.py': [Errno 2] No such file or directory

t.log @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260
/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260 [Extension Host] [WakaTime] [ERROR] Unknown Error (2); Check your C:\Users\sschewe\.wakatime.log file for more details.
t.log @ /C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:260
console.ts:136 [Extension Host] ApplicationInsights:Sender [Object]

The wakatime-master folder it looks for does not exist, but there's an empty wakatime-master.zip file in the out folder

I'm using VS Code Version 1.22.1 on a Windows 10 and the WakaTime Extension has Version 1.2 (I played around with WakaTime Version 1.1.24 but that didn't help).
Python is now on Version 3.6.5

My company removed the proxy a few weeks back, but wakatime kept working without problems(I checked the Dashboard daily).

Any ideas what could be happening/what I could try to make it work again?

WakaTime Error : SSL behind corporate proxy

Hello,

I'm working behind a corporate proxy and can't manage to make it work.

I installed python, and wakatime-cli.
Everything runs well when using with SublimeText plugin, but I can't make it work with VSCode.

Here are the logs from VSCode Developers Tool :

extensionHost.ts:282 [Extension Host] Uncaught Exception:  Error: write EPROTO 0:error:14077419:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert access denied:c:\jenkins\workspace\electron-win-ia32\vendor\node\deps\openssl\openssl\ssl\s23_clnt.c:769:
shell.ts:437 write EPROTO 0:error:14077419:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert access denied:c:\jenkins\workspace\electron-win-ia32\vendor\node\deps\openssl\openssl\ssl\s23_clnt.c:769:
: Error: write EPROTO 0:error:14077419:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert access denied:c:\jenkins\workspace\electron-win-ia32\vendor\node\deps\openssl\openssl\ssl\s23_clnt.c:769:
    at exports._errnoException (util.js:1026:11)
    at WriteWrap.afterWrite (net.js:795:14)
extensionHost.ts:282 [Extension Host] Error: write EPROTO 0:error:14077419:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert access denied:c:\jenkins\workspace\electron-win-ia32\vendor\node\deps\openssl\openssl\ssl\s23_clnt.c:769:
    at exports._errnoException (util.js:1026:11)
    at WriteWrap.afterWrite (net.js:795:14)
shell.ts:437 socket hang up: Error: socket hang up
    at createHangUpError (_http_client.js:252:15)
    at TLSSocket.socketCloseListener (_http_client.js:284:23)
    at emitOne (events.js:101:20)
    at TLSSocket.emit (events.js:188:7)
    at TCP._handle.close [as _onclose] (net.js:493:12)
extensionHost.ts:282 [Extension Host] Uncaught Exception:  Error: socket hang up
extensionHost.ts:282 [Extension Host] Error: socket hang up
    at createHangUpError (_http_client.js:252:15)
    at TLSSocket.socketCloseListener (_http_client.js:284:23)
    at emitOne (events.js:101:20)
    at TLSSocket.emit (events.js:188:7)
    at TCP._handle.close [as _onclose] (net.js:493:12)

My wakatime.log got logs from Sublime, but none from VSCode.
wakatime.log.txt

Thank you :D

Error Reading WinReg

Hi, How are you?

Well I instaled wakatime but it doesn't work.

See

image

I have Python

image

The log file is empty.

What you think?

Information Required: Idle State of Waka Time

I didn't know where to go when I have question, that's why I came here to ask
What happens if I leave my editor open for 5 hours and then come back and start using it. Do wakatime tracks those idle time? (which I don't want at all)

WakaTime: Working offline - API connection errors

Hey, just installed wakatime, added API key, but it won't connect.

System Details
Elementary OS Loki - Based on Ubuntu 16.04
Python 3.5.2 is installed.

I've enabled debugging. See the last line of debug log(~./wakatime.log) below:

{"now": "2018/06/04 21:15:16 +0200", "version": "10.2.1", "plugin": "vscode/1.23.1 vscode-wakatime/1.2.2", "time": 1528139656.4469244, "caller": "/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/api.py", "lineno": 121, "is_write": true, "file": "/home/stephen/Development/Play-Ground/React/first/index.html", "level": "WARNING", "message": "{'traceback': 'Traceback (most recent call last):\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/urllib3/connection.py\", line 141, in _new_conn\\n    (self.host, self.port), self.timeout, **extra_kw)\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/urllib3/util/connection.py\", line 83, in create_connection\\n    raise err\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/urllib3/util/connection.py\", line 73, in create_connection\\n    sock.connect(sa)\\nsocket.timeout: timed out\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/urllib3/connectionpool.py\", line 601, in urlopen\\n    chunked=chunked)\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/urllib3/connectionpool.py\", line 346, in _make_request\\n    self._validate_conn(conn)\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/urllib3/connectionpool.py\", line 850, in _validate_conn\\n    conn.connect()\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/urllib3/connection.py\", line 284, in connect\\n    conn = self._new_conn()\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/urllib3/connection.py\", line 146, in _new_conn\\n    (self.host, self.timeout))\\nurllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeab272518>, \\'Connection to api.wakatime.com timed out. (connect timeout=60)\\')\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/requests/adapters.py\", line 440, in send\\n    timeout=timeout\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/urllib3/connectionpool.py\", line 639, in urlopen\\n    _stacktrace=sys.exc_info()[2])\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/urllib3/util/retry.py\", line 388, in increment\\n    raise MaxRetryError(_pool, url, error or ResponseError(cause))\\nurllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host=\\'api.wakatime.com\\', port=443): Max retries exceeded with url: /api/v1/users/current/heartbeats.bulk (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeab272518>, \\'Connection to api.wakatime.com timed out. (connect timeout=60)\\'))\\n\\nDuring handling of the above exception, another exception occurred:\\n\\nTraceback (most recent call last):\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/api.py\", line 107, in send_heartbeats\\n    verify=not args.nosslverify)\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/requests/sessions.py\", line 555, in post\\n    return self.request(\\'POST\\', url, data=data, json=json, **kwargs)\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/requests/sessions.py\", line 508, in request\\n    resp = self.send(prep, **send_kwargs)\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/requests/sessions.py\", line 618, in send\\n    r = adapter.send(request, **kwargs)\\n  File \"/home/stephen/.vscode/extensions/WakaTime.vscode-wakatime-1.2.2/out/wakatime-master/wakatime/packages/requests/adapters.py\", line 496, in send\\n    raise ConnectTimeout(e, request=request)\\nwakatime.packages.requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host=\\'api.wakatime.com\\', port=443): Max retries exceeded with url: /api/v1/users/current/heartbeats.bulk (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeab272518>, \\'Connection to api.wakatime.com timed out. (connect timeout=60)\\'))\\n', 'ConnectTimeout': \"HTTPSConnectionPool(host='api.wakatime.com', port=443): Max retries exceeded with url: /api/v1/users/current/heartbeats.bulk (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7faeab272518>, 'Connection to api.wakatime.com timed out. (connect timeout=60)'))\"}"}

Would love to get this setup and working. I'm just stumped as to what next steps might be here.

Thanks!

Incorrect branch tracking with git submodules

My current project uses a top-level git repository called development which uses in turn uses a git submodule for each of the many microservices that make up the app. WakaTime thinks that I spend all day in development/master but in reality, I'm moving between submodules, and between branches within submodules, all day. It would be nice if this workflow were supported better.

WakaTime Error - 401 Unauthorized

Receiving 401 unauthorized response codes although api_keys match.
I have reset my api key and reinstalled the plugin without success.

Errors from console with wakatime debugging on:

[WakaTime] [ERROR] Error: Command failed: \python27\pythonw C:\Users\mobrien\.vscode\extensions\WakaTime.vscode-wakatime-1.1.21\out\wakatime-master\wakatime\cli.py --file c:\Users\mobrien\.wakatime.cfg --plugin vscode/1.17.2 vscode-wakatime/1.1.21 --alternate-project test --config 
[WakaTime] [ERROR] Invalid API Key (104); Make sure your API Key is correct!

Unable to use with Anaconda python distribution

Getting this error when running wakatime cli:

wakatime: error: unrecognized arguments: vscode-wakatime/1.1.18

Python: Python 2.7.5 :: Anaconda 1.8.0 (x86_64)
OS: Mac OS X

The plugin argument contains a space and is being parsed as two separate arguments.

Error in vscode

image
i've been had some troubles using wakatime in vscode since i tried to use it in OsWindows

Error in VSCode(Mac)

Hi,

I get error below when I use wakatime in IDE VSCode for mac.

I did not find this document, I do not know why.

pythonw: can't open file '/Users/mars/.vscode/extensions/WakaTime.vscode-wakatime-1.1.22/out/wakatime-master/wakatime/cli.py': [Errno 2] No such file or directory

And i just find an zip file below:
/Users/mars/.vscode/extensions/WakaTime.vscode-wakatime-1.1.22/out/wakatime-master.zip

Then i tail ~/.wakatime.log but it's empty.

I can provide more debugging information if needed.

Thanks.

It says 'Error' in the status bar if no internet connectivity is found.

It would be more helpful to add some other text like No Internet and a tooltip that says We are still logging your work and will upload it as soon as we can find internet.

If this behaviour is fine by you, I would like to work on it.

And hats off to you for almost single handedly managing the growing catalogue of wakatime plugins.

Unknown Error

Updated Wakatime to version 1.1.13 and got that error after reloading.

I'm running VS Code Version 1.9.1 on Mac OS 10.12.3

In the console, it says the following
screen shot 2017-02-17 at 11 49 03 am

Multi Folder WorkSpace

With the multi folder work-space now included in the stable release, wakatime reports only the first folder added into the work-space. All others are disregarded. Files are reported but parent folder is not accurately reported.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.