Giter Site home page Giter Site logo

wakatime / atom-wakatime Goto Github PK

View Code? Open in Web Editor NEW
317.0 13.0 34.0 1.03 MB

Atom plugin for automatic time tracking and metrics generated from your programming activity.

Home Page: https://wakatime.com/atom

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

Less 0.60% JavaScript 99.40%
atom atom-plugin timer time-tracker analytics metrics time-tracking

atom-wakatime's People

Contributors

alanhamlett avatar aminya avatar bradzacher avatar burka avatar codinggirl avatar e-jigsaw avatar ein-stein-chen avatar gandarez avatar mkg20001 avatar notslang avatar ripper2hl 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

atom-wakatime's Issues

Uncaught Error: EPERM: operation not permitted, chmod 'C:\Users\[SNIP]\.atom\packages\wakatime\lib...

Was just using atom as normal and after going in the menues this error occurred.

Atom Version: 1.0.0
System: Microsoft Windows 8.1 Pro
Thrown From: wakatime package, v4.0.11

Stack Trace

Uncaught Error: EPERM: operation not permitted, chmod 'C:\Users[SNIP].atom\packages\wakatime\lib\wakatime-master.gitignore'

At fs.js:1004

Error: EPERM: operation not permitted, chmod 'C:\Users\[SNIP]\.atom\packages\wakatime\lib\wakatime-master\.gitignore'
  at Error (native)
  at Object.fs.chmodSync (fs.js:1004:18)
  at Object.module.exports.writeFileTo (C:\Users\[SNIP]\.atom\packages\wakatime\node_modules\adm-zip\util\utils.js:108:20)
  at C:\Users\[SNIP]\.atom\packages\wakatime\node_modules\adm-zip\adm-zip.js:361:23
  at Array.forEach (native)
  at Object.extractAllTo (C:\Users\[SNIP]\.atom\packages\wakatime\node_modules\adm-zip\adm-zip.js:352:26)
  at unzip (C:\Users\[SNIP]\.atom\packages\wakatime\lib\wakatime.coffee:229:13)
  at C:\Users\[SNIP]\.atom\packages\wakatime\lib\wakatime.coffee:204:13
  at next (C:\Users\[SNIP]\.atom\packages\wakatime\node_modules\rimraf\rimraf.js:72:7)
  at CB (C:\Users\[SNIP]\.atom\packages\wakatime\node_modules\rimraf\rimraf.js:108:9)
  at C:\Users\[SNIP]\.atom\packages\wakatime\node_modules\rimraf\rimraf.js:244:18
  at next (C:\Users\[SNIP]\.atom\packages\wakatime\node_modules\rimraf\rimraf.js:72:7)
  at CB (C:\Users\[SNIP]\.atom\packages\wakatime\node_modules\rimraf\rimraf.js:108:9)
  at C:\Users\[SNIP]\.atom\packages\wakatime\node_modules\rimraf\rimraf.js:164:7
  at FSReqWrap.oncomplete (fs.js:77:15)

Commands

     -0:11.9.0 project-manager:save-project (div.settings-view.pane-item)
     -0:10.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
  2x -0:10.7.0 focus (atom-workspace.workspace.scrollbars-visible-always.theme-base16-ocean-dark-syntax-theme.theme-one-dark-ui)
     -0:03.9.0 project-manager:toggle (atom-workspace.workspace.scrollbars-visible-always.theme-base16-ocean-dark-syntax-theme.theme-one-dark-ui)

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "base16-ocean-dark-syntax-theme"
    ],
    "disabledPackages": [
      "silent-sync",
      "php-class-tree"
    ],
    "projectHome": "C:\\Users\\[SNIP]\\[SNIP]\\[SNIP]"
  },
  "wakatime": {
    "ignore": [
      "^/var/",
      "^/tmp/",
      "^/private/",
      "COMMIT_EDITMSG$",
      "PULLREQ_EDITMSG$",
      "MERGE_MSG$"
    ],
    "apikey": "[SNIP]"
  }
}

Installed Packages

# User
base16-ocean-dark-syntax-theme, v0.1.5
color-picker, v2.0.7
docblockr, v0.7.2
editorconfig, v1.0.1
file-icons, v1.5.8
minimap, v4.10.1
project-manager, v1.15.10
remote-sync, v3.1.2
wakatime, v4.0.11

# Dev
No dev packages

UnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 66791: invalid start byte

From the log:

{"now": "2015/12/14 16:48:05 +0000", "version": "4.1.8", "plugin": "atom-wakatime/5.0.1", "time": 1450129685.390131, "level": "ERROR", "message": "Traceback (most recent call last):\n  File \"/home/thomas/.atom/packages/wakatime/lib/wakatime-master/wakatime/stats.py\", line 192, in get_file_contents\n    text = fh.read(512000)\n  File \"/usr/lib/python2.7/codecs.py\", line 686, in read\n    return self.reader.read(size)\n  File \"/usr/lib/python2.7/codecs.py\", line 492, in read\n    newchars, decodedbytes = self.decode(data, self.errors)\nUnicodeDecodeError: 'utf8' codec can't decode byte 0x92 in position 66791: invalid start byte\n"}

Uncaught TypeError: Cannot read property 'addListener' of undefined

[Enter steps to reproduce below:]

  1. typing in current document or saving and I get this error.

Atom Version: 1.0.19
System: Mac OS X 10.10.5
Thrown From: wakatime package, v4.1.0

Stack Trace

Uncaught TypeError: Cannot read property 'addListener' of undefined

At /Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:809

TypeError: Cannot read property 'addListener' of undefined
  at Object.exports.execFile (child_process.js:245:15)
  at Object.module.(anonymous function) [as execFile] (ATOM_SHELL_ASAR.js:163:20)
  at /Users/chino/.atom/packages/wakatime/lib/wakatime.coffee:292:17
  at pythonLocation (/Users/chino/.atom/packages/wakatime/lib/wakatime.coffee:116:5)
  at sendHeartbeat (/Users/chino/.atom/packages/wakatime/lib/wakatime.coffee:280:5)
  at /Users/chino/.atom/packages/wakatime/lib/wakatime.coffee:93:11
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1037:20)
  at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:1004:19)
  at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:584:26)
  at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:547:18)
  at Pane.module.exports.Pane.saveItems (/Applications/Atom.app/Contents/Resources/app.asar/src/pane.js:585:14)
  at PaneContainer.module.exports.PaneContainer.saveAll (/Applications/Atom.app/Contents/Resources/app.asar/src/pane-container.js:217:14)
  at Workspace.module.exports.Workspace.saveAll (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace.js:601:33)
  at atom-workspace.atom.commands.add.window:save-all (/Applications/Atom.app/Contents/Resources/app.asar/src/workspace-element.js:275:30)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:245:29)
  at /Applications/Atom.app/Contents/Resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:524:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:347:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app.asar/src/window-event-handler.js:184:20)

Commands

     -1:31.4.0 fuzzy-finder:toggle-file-finder (atom-text-editor.editor.is-focused)
     -1:29.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
  2x -1:28.6.0 core:move-down (atom-text-editor.editor.is-focused)
     -1:28.1.0 core:move-up (atom-text-editor.editor.is-focused)
  7x -1:27.9.0 core:move-down (atom-text-editor.editor.is-focused)
     -1:26.8.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
     -1:26 core:select-up (atom-text-editor.editor.is-focused)
     -1:25.6.0 core:backspace (atom-text-editor.editor.is-focused)
  3x -1:25.4.0 window:save-all (atom-text-editor.editor.is-focused)
     -1:12.4.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -1:12.2.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
     -1:12.1.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -1:11.9.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
     -1:11.8.0 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
     -1:11.6.0 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
  5x -1:10.7.0 window:save-all (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "audioBeep": false,
    "themes": [
      "atom-light-ui",
      "one-light-syntax"
    ]
  },
  "wakatime": {
    "apikey": "b60c18db-a462-4c0f-a16e-f0a55bf76d19"
  }
}

Installed Packages

# User
docblockr, v0.7.3
language-swift, v0.4.0
pretty-json, v0.4.1
react, v0.12.9
react-snippets, v0.2.0
tidy-tabs, v0.2.0
wakatime, v4.1.0

# Dev
No dev packages

'Retry' object has no attribute 'raise_on_status'

After update to version 6.0.5 I got such error:

.atom/packages/wakatime/lib/wakatime-master/wakatime/packages/requests/packages/urllib3/util/retry.py\", line 147,
in new raise_on_status=self.raise_on_status,
AttributeError: 'Retry' object has no attribute 'raise_on_status'

console output

I don't know the best practice for logging, but in the console I see the following output, when I start the editor:

WakaTime v5.0.0 loaded.
Current wakatime-cli version is 4.1.8
Checking for updates to wakatime-cli...
wakatime-cli is up to date.

Maybe using a message panel for the output and a debug setting to control it would be a feasible approach.

Does it work with atom-beta?

Hello all,

I'm using Atom Beta 1.8.0~beta0-0.1.fc21 (Fedora Core 21) and installed last version of wakatime plugin, but looks like it's not working. I see how much time I'm spending at the terminal, and how much I'm using Netbeans (each with it's own plugin), but I don't see atom's time. I don't see any error in .wakatime.log or in atom's developer console, all seems to be working there.

I tried to uninstall and install again the plugin, but still not working. What can I try?

Time tracking problem

Wakatime doesn't tracking time when I work in Atom Editor.
Today I installed atom editor first time and in my dashboard on wakatime showed up atom in editors list, but doesn't tracking time.
How can we solve this problem, I don't know where is the problem, because I have already entered API key...

It seems not work in Ubuntu 14.14 64-bit

On windows is all ok, but on ubuntu seem not work.
Console.log

Current wakatime-cli version is 6.0.1
/home/ac-open/.atom/packages/wakatime/lib/wakatime.coffee:304 Checking for updates to wakatime-cli...
/home/ac-open/.atom/packages/wakatime/lib/wakatime.coffee:307 wakatime-cli is up to date

I inserted the API key.
Installed 2 days ago

Wrong time for COMMIT_EDITMSG

The package is logging way too much time in COMMIT_EDITMSG. It can be up to 15 minutes for what is essentially a very short modification (a few seconds).

Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/Applications/Atom.app/Contents/Resources/app/src/atom.js:54:11)
<unknown> (/Users/saket/.atom/packages/wakatime/lib/wakatime.coffee:34:24)

cannot configure settings

There is no 'Settings' button on the WakaTime Package
Atom version: 1.0.2
WakaTime version: 4.0.12

[Errno 2] No such file or directory

I am getting this error since yesterday in the Atom Dev Console:

/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '/Users/montogeek/.atom/packages/wakatime/lib/wakatime-master/wakatime/cli.py': [Errno 2] No such file or directory

I uninstalled it, installed it again but the error persists :(

This is the content of that folder:

montogeek ~/.atom/packages/wakatime/lib [12:44 PM]→ 😛
👉  ls
total 40
drwxr-xr-x   6 montogeek  staff   204B Apr 20 12:41 .
drwxr-xr-x  10 montogeek  staff   340B Apr 20 12:36 ..
-rw-r--r--   1 montogeek  staff   1.6K Apr 20 12:36 icon.png
-rw-r--r--   1 montogeek  staff   1.1K Apr 20 12:36 status-bar-tile-view.coffee
drwxr-xr-x  17 montogeek  staff   578B Apr 20 12:41 wakatime-master
-rw-r--r--   1 montogeek  staff    12K Apr 20 12:36 wakatime.coffee

Atom 1.7.2
OSX The Capitan upgraded from Yosemite

WakaTime Statistics inside Atom

Hi, your app is great,
would be awesome to have these statistics shown inside Atom,
without leaving it.

Keep up the good work

Uncaught Error: spawn ENOTDIR

  1. Open Atom normally by command line "atom ."
  2. When it opens occurs the error and when I try to edit the file

PS.: I believe it is related to folder permission or something, cause I opened atom as root and the error didn't occur.

Atom Version: 1.7.2
System: elementary OS
Thrown From: wakatime package, v5.0.8

Stack Trace

Uncaught Error: spawn ENOTDIR

At internal/child_process.js:298

Error: spawn ENOTDIR
    at exports._errnoException (util.js:856:11)
    at ChildProcess.spawn (internal/child_process.js:298:11)
    at exports.spawn (child_process.js:374:9)
    at exports.execFile (child_process.js:163:15)
    at module.(anonymous function) (ATOM_SHELL_ASAR.js:185:20)
    at pythonLocation (/home/rafaellott/.atom/packages/wakatime/lib/wakatime.coffee:182:5)
    at /home/rafaellott/.atom/packages/wakatime/lib/wakatime.coffee:188:9
    at exithandler (child_process.js:232:5)
    at ChildProcess.errorhandler (child_process.js:244:5)
    at emitOne (events.js:77:13)
    at ChildProcess.emit (events.js:169:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
    at onErrorNT (internal/child_process.js:344:16)
    at doNTCallback2 (node.js:465:9)
    at process._tickCallback (node.js:379:17)

Commands

     -6:11.4.0 window:toggle-dev-tools (atom-pane.pane.active)
     -0:37.2.0 fuzzy-finder:toggle-file-finder (atom-pane.pane.active)
     -0:36.3.0 core:paste (atom-text-editor.editor.mini.is-focused)
     -0:35.6.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:21.5.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:21.4.0 core:save (atom-text-editor.editor.is-focused)
  3x -0:16.5.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:15.7.0 core:save (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "disabledPackages": [
      "autocomplete-html-entities"
    ],
    "projectHome": "/data/www/"
  },
  "wakatime": {
    "apikey": "xxxxxxxxxxxxx"
  }
}

Installed Packages

# User
autoclose-html, v0.23.0
autocomplete-python, v1.7.2
editorconfig, v1.4.0
highlight-selected, v0.11.2
linter, v1.11.4
linter-pep8, v1.2.1
minimap, v4.23.1
minimap-bookmarks, v0.3.0
minimap-cursorline, v0.1.0
minimap-git-diff, v4.3.0
minimap-highlight-selected, v4.4.0
minimap-linter, v1.1.1
minimap-pigments, v0.2.0
python-indent, v0.4.3
python-tools, v0.6.7
svn, v0.0.9
tabs-to-spaces, v1.0.2
wakatime, v5.0.8

# Dev
No dev packages

Setting for showing status bar for wakatime

Hello, after the last update (5.0.3 -> 5.0.4) I noticed a bulky status bar icon in the bottom of my editor. I thought "no big deal, I'll just disable it." But I did not find any setting for it so... can I haz setting?

The option could also just be to hide the label "Wakatime active", i.e. showing just the icon.

screenshot from 2016-02-24 09 31 33

Doesn't seem to work

I've followed all installation steps, did some code for an hour, but still no data in my dashboard. Also I can't see .waka* files being created in my home directory.

wakatime API code for Atom text editor

hey everyone,

I got my API code but I'm not sure I put correct place!
Do we have to put in:
Atom config
packets
wakatime
lib
wakatime.coffe

....
"
StatusBarTileView = require './status-bar-tile-view'

module.exports =
config:
apikey:
title: '3b9de0d0-27a8-4190-9e82-7cf9146b3a7e'
description: 'Your secret key from https://wakatime.com/settings.'
type: 'string'
default: ''
order: 1
ignore:

....

is it true??
if yes why still not working?
Thank you for any response.
happy coding..

Wakatime stopped recording

No idea what happened but I see ~/.wakatime.log has a lot of warnings about

"WARNING", "message": "/home/lordnynex/.atom/packages/wakatime/lib/wakatime-master/wakatime/packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.\n InsecurePlatformWarning\n"

Which shouldn't be fatal.

But the last line in the log says
{"now": "2015/10/05 10:14:59 +0000", "version": "4.1.7", "plugin": "atom-wakatime/4.1.0", "time": 1444065299.251507, "level": "ERROR", "message": "Exception:"}

Which is 7 days old. Nothing since. Is there anything I can do to jump start this thing again? I'm a paying member.

Cannot find module 'extend' (Failed to load the wakatime package)

Occurred after launching a new atom window from the command line after updating to latest wakatime (didn't restart atom, if it matters).

Atom Version: 1.0.11
System: Mac OS X 10.10.5
Thrown From: wakatime package, v4.0.17

Stack Trace

Failed to load the wakatime package

At Cannot find module 'extend'

Error: Cannot find module 'extend'
    at Module._resolveFilename (module.js:328:15)
    at Function.Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app.asar/src/module-cache.js:383:52)
    at Function.Module._load (module.js:270:25)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at Object.<anonymous> (/Users/Gurpartap/.atom/packages/wakatime/node_modules/request/index.js:17:29)
    at Module._compile (module.js:452:26)
    at Object.defineProperty.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:169:21)
    at Module.load (module.js:347:32)
    at Function.Module._load (module.js:302:12)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at Object.<anonymous> (/Users/Gurpartap/.atom/packages/wakatime/lib/wakatime.coffee:14:11)
    at Object.<anonymous> (/Users/Gurpartap/.atom/packages/wakatime/lib/wakatime.coffee:1:1)
    at Module._compile (module.js:452:26)
    at Object.defineProperty.value [as .coffee] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:169:21)
    at Module.load (module.js:347:32)
    at Function.Module._load (module.js:302:12)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:759:34)
    at /Applications/Atom.app/Contents/Resources/app.asar/src/package.js:190:28
    at Package.module.exports.Package.measure (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:167:15)
    at Package.module.exports.Package.load (/Applications/Atom.app/Contents/Resources/app.asar/src/package.js:181:12)
    at PackageManager.module.exports.PackageManager.loadPackage (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:405:14)
    at PackageManager.module.exports.PackageManager.loadPackages (/Applications/Atom.app/Contents/Resources/app.asar/src/package-manager.js:369:14)
    at Atom.module.exports.Atom.startEditorWindow (/Applications/Atom.app/Contents/Resources/app.asar/src/atom.js:667:21)
    at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-bootstrap.js:12:8)
    at Object.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/window-bootstrap.js:23:4)
    at Module._compile (module.js:452:26)
    at Object.defineProperty.value [as .js] (/Applications/Atom.app/Contents/Resources/app.asar/src/compile-cache.js:169:21)
    at Module.load (module.js:347:32)
    at Function.Module._load (module.js:302:12)
    at Module.require (module.js:357:17)
    at require (module.js:376:17)
    at setupWindow (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:82:25)
    at window.onload (file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.js:35:9)

Commands

Config

{
  "core": {
    "themes": [
      "one-light-ui",
      "sepia-syntax"
    ]
  },
  "wakatime": {
    "ignore": [
      "^/var/",
      "^/tmp/",
      "^/private/",
      "COMMIT_EDITMSG$",
      "PULLREQ_EDITMSG$",
      "MERGE_MSG$"
    ],
    "apikey": "---"
  }
}

Installed Packages

# User
autocomplete-clang, v0.8.7
build, v0.46.0
clang-format, v1.16.0
formatter-clang-format, v0.1.1
go-plus, v3.5.1
highlight-selected, v0.10.1
language-swift, v0.4.0
linter, v1.5.1
linter-clang, v3.2.1
pretty-json, v0.4.1
project-manager, v2.5.1
sepia-syntax, v1.0.5
terminal-panel, v1.14.1
wakatime, v4.0.17

# Dev
No dev packages

Error SSL

{"now": "2015/06/12 12:36:08 +0000", "version": "4.0.14", "plugin": "atom-wakatime/4.0.9", "time": 1434123368.425476, "level": "WARNING", "message": "/home/rafael/.atom/packages/wakatime/lib/wakatime-master/wakatime/packages/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.\n InsecurePlatformWarning\n"}

Delay after saving

The wakatime plugin is causing large delays after saving. This causes issues with my LESS compiler, which is suppose to run after saving but takes 10-20 seconds to run when wakatime is enabled.

Uncaught Invalid filename

[Enter steps to reproduce below:]

  1. Install wakatime
  2. restart atom

Atom Version: 0.200.0
System: Mac OS X 10.10.4
Thrown From: wakatime package, v4.0.9

Stack Trace

Uncaught Invalid filename

At /Users/ishaq/.atom/packages/wakatime/node_modules/adm-zip/adm-zip.js:19

undefined

Commands

Config

{
  "core": {
    "themes": [
      "seti-ui",
      "solarized-dark-syntax"
    ],
    "disabledPackages": [
      "language-swift",
      "django-templates",
      "django-templates",
      "linter-python-pep8",
      "language-django",
      "atom-python-debugger",
      "timekeeper"
    ]
  },
  "wakatime": {
    "apikey": "",
    "ignore": [
      "^/var/",
      "^/tmp/",
      "^/private/",
      "COMMIT_EDITMSG$",
      "PULLREQ_EDITMSG$",
      "MERGE_MSG$"
    ]
  }
}

Installed Packages

# User
atom-django, v0.2.1
language-restructuredtext, v0.6.0
seti-ui, v0.7.1
wakatime, v4.0.9
wordcount, v2.2.2

# Dev
No dev packages

Uncaught Invalid LOC header (bad signature)

[Enter steps to reproduce below:]

  1. Try to close a empty Atom window.

Atom Version: 1.0.0
System: Mac OS X 10.10.4
Thrown From: wakatime package, v4.0.11

Stack Trace

Uncaught Invalid LOC header (bad signature)

At /Users/montogeek/.atom/packages/wakatime/node_modules/adm-zip/headers/entryHeader.js:113

undefined

Commands

  2x -0:03.6.0 core:close (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "themes": [
      "one-dark-ui",
      "one-dark-syntax"
    ],
    "disabledPackages": [
      "language-javascript-jsx",
      "docblockr",
      "tabs-to-spaces"
    ]
  },
  "wakatime": {
    "ignore": [
      "^/var/",
      "^/tmp/",
      "^/private/",
      "COMMIT_EDITMSG$",
      "PULLREQ_EDITMSG$",
      "MERGE_MSG$"
    ],
    "apikey": "6effd67b-lold-4909-828b-e322d6dd487c"
  }
}

Installed Packages

# User
atom-ternjs, v0.6.7
emmet, v2.3.12
linter, v1.1.0
linter-eslint, v1.0.13
pigments, v0.8.2
terminal-status, v1.6.8
wakatime, v4.0.11

# Dev
No dev packages

Atom.Object.defineProperty.get is deprecated.

atom.workspaceView is no longer available.
In most cases you will not need the view. See the Workspace docs for
alternatives: https://atom.io/docs/api/latest/Workspace.
If you do need the view, please use atom.views.getView(atom.workspace),
which returns an HTMLElement.

Atom.Object.defineProperty.get (/usr/local/share/atom/resources/app/src/atom.js:55:11)
<unknown> (/home/mouton/.atom/packages/wakatime/lib/wakatime.coffee:46:28)

Incomplete installation on Atom 1.0

Hi!

After install the package via Atom, I get this message in the console:
screen shot 2015-06-25 at 22 08 12
screen shot 2015-06-25 at 22 08 06

Looks like Atom didn't unzip the file or this new version of Atom needs something else to do it.

Throw Uncaught TypeError when edit a ".phtml" file

When edit a ".phtml" file, it throw an Uncaught TypeError exception.
Detail:
Uncaught TypeError: Cannot read property 'className' of undefined on line 401 at "node_modules/highlight.js/lib/highlight.js" file

Steep startup time

For my system this adds 70-180 ms (2nd slowest in list). I think you might be able to improve this. Although, I took a peek at the code, wasn't able to spot the bottleneck. Wasn't sure if you're aware, cmd-shift-p -> 'timecop' to view loadtimes (built in).

Update screenshot

The screenshot is old and it would be better to have a updated one.

I took one and will be making the PR to insert it, the link will come from this issue but feel free to host it if necessary.

wakatimeprint

`Error: Command failed` on edit.

My dashboard isn't receiving updates under 3.0.1. I'm seeing this error pop up in the chromium logs:

Error: Command failed: python [...]/wakatime/lib/wakatime-master/wakatime-cli.py --file [...]/test.py --plugin atom-wakatime/3.0.1 usage: wakatime-cli.py [-h] --file file [--time time] [--write] [--plugin PLUGIN] [--project PROJECT_NAME] [--key KEY] [--disableoffline] [--hidefilenames] [--ignore IGNORE] [--logfile LOGFILE] [--config CONFIG] [--verbose] [--version] wakatime-cli.py: error: Missing api key

Following my nose, I found a good workaround, though! If you create a ~/.wakatime.cfg file with the following contents:

[settings]
api_key = <your_api_key_here!>

Everything works great!! 👍

But it looks like the atom config value for the API key isn't getting used.

Atom locks up when editing .info file

It appears that the highlight.js integration is to blame. The problem lies with the highlight.highlightAuto method. It appears to just lock up the thread when it's given source that it can't determine what language it is.

I have a .info file that completely locks up Atom. However, after commenting out the highlightAuto() call, nothing locks up.

high cpu usage

I get high cpu usage frequently and my macbook gets insanely hot. So I had to uninstall it for the time being.
-@joliveros

Need to find the cause of high CPU usage and find how to reproduce it. Anyone else experiencing high cpu usage please feel free to comment.

Uncaught Invalid or unsupported zip format. No END header found

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 1.0.11
System: Unknown Windows Version
Thrown From: wakatime package, v4.0.16

Stack Trace

Uncaught Invalid or unsupported zip format. No END header found

At C:\Users\Administrator\.atom\packages\wakatime\node_modules\adm-zip\zipFile.js:66

undefined

Commands

  3x -2:21.4.0 core:copy (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "autoHideMenuBar": true
  },
  "wakatime": {
    "ignore": [
      "^/var/",
      "^/tmp/",
      "^/private/",
      "COMMIT_EDITMSG$",
      "PULLREQ_EDITMSG$",
      "MERGE_MSG$"
    ],
    "apikey": "946276e3-bc14-486e-9eb4-f98e1d150544"
  }
}

Installed Packages

# User
autocomplete-php, v0.3.7
color-picker, v2.0.11
docblockr, v0.7.3
emmet, v2.3.12
laravel, v0.7.0
minimap, v4.13.3
wakatime, v4.0.16

# Dev
No dev packages

Uncaught TypeError: Cannot read property 'length' of undefined

[Enter steps to reproduce below:]

  1. ...
  2. ...

Atom Version: 0.196.0
System: Mac OS X 10.10.3
Thrown From: wakatime package, v4.0.7

Stack Trace

Uncaught TypeError: Cannot read property 'length' of undefined

At ~/.atom/packages/wakatime/lib/wakatime.coffee:219

TypeError: Cannot read property 'length' of undefined
  at fileIsIgnored (~/.atom/packages/wakatime/lib/wakatime.coffee:219:5)
  at ~/.atom/packages/wakatime/lib/wakatime.coffee:197:68
  at pythonLocation (~/.atom/packages/wakatime/lib/wakatime.coffee:64:9)
  at sendHeartbeat (~/.atom/packages/wakatime/lib/wakatime.coffee:195:13)
  at ~/.atom/packages/wakatime/lib/wakatime.coffee:55:21
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/event-kit/lib/emitter.js:82:11)
  at TextBuffer.module.exports.TextBuffer.applyPatch (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:550:20)
  at BufferPatch.module.exports.BufferPatch.applyTo (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/buffer-patch.js:57:21)
  at Transaction.module.exports.Transaction.applyTo (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/transaction.js:70:15)
  at History.module.exports.History.abortTransaction (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/history.js:169:24)
  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/history.js:126:16)
  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app.asar/node_modules/text-buffer/lib/text-buffer.js:647:27)
  at TextEditor.module.exports.TextEditor.transact (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor.js:1157:26)
  at TextEditorComponent.module.exports.TextEditorComponent.onTextInput (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-component.js:440:35)
  at HTMLDivElement.<anonymous> (/Applications/Atom.app/Contents/Resources/app.asar/src/text-editor-component.js:3:61)

Commands

     -2:19.3.0 application:open (atom-text-editor.editor)
     -1:12.6.0 find-and-replace:show (atom-text-editor.editor.is-focused)
 13x -1:11.3.0 core:confirm (atom-text-editor.editor.mini)
     -0:31.5.0 core:close (atom-text-editor.editor.is-focused)
     -0:26.6.0 find-and-replace:show (atom-text-editor.editor.is-focused)
  9x -0:25.8.0 core:confirm (atom-text-editor.editor.mini)
     -0:02.1.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -0:02.1.0 core:cancel (atom-text-editor.editor.is-focused)

Config

{
  "core": {
    "audioBeep": false,
    "disabledPackages": [
      "wrap-guide",
      "welcome",
      "language-sql-mysql"
    ],
    "themes": [
      "one-light-ui",
      "one-light-syntax"
    ]
  },
  "wakatime": {
    "apikey": "35a2b644-1166-4749-a41a-4ab86f4b06ca"
  }
}

Installed Packages

# User
minimap, v4.8.0
wakatime, v4.0.7

# Dev
No dev packages

Code activity still stopped

OS: ubunut 14.04 LTS
Wakatime still doesn't work on my pc, I think there is a huge problem.
~/.wakatime.log is empty also. Today I checked the wakatime website and there was no tracked time in my profile, so I lost whole day codign activity 😠

Phyton installation/uninstallation

IMO it's not very nice that you install Phyton on Windows 7 without asking the user.
At the installation a Windows Installer window is shown (without prior saying this to the user) and installs Phyton (it even asks the user for permission with UAC). At least a kind of 'This package requires Phyton. It will be installed now. [OK] [Cancel]' would be nice.

Secondly when trying to uninstall the package it seems there is another python error
wkatime_uninstallation

And there is no way to uninstall this package without uninstalling Phyton. (for working around this error)

Atom 1.0.7

Errors since upgrading Atom to 1.7.4

I've started seeing this error today - looks like the heartbeats aren't sending from Atom anymore.

Tried restarting Atom to no avail.

Cheers.

Error: Command failed: pythonw /Users/skeet/.atom/packages/wakatime/lib/wakatime-master/wakatime/cli.py 
--file /Users/skeet/Documents/projects/rank/public/scripts/components/app.tag 
--key <MY-API-KEY> 
--plugin atom-wakatime/5.0.8 
--lineno 19
pythonw: can't open file '/Users/skeet/.atom/packages/wakatime/lib/wakatime-master/wakatime/cli.py': [Errno 2] No such file or directory

Custom project name

Is it possible to add a custom project name instead of using the folder name? For example I have a wordpress site where it's just the wp-content folder that is open in the editor which kinda makes it useless to track. There are times where I have also renamed a folder after some time, and it would be nice to keep tracking it on the same time.

Error when using atom-term2

Happened when closing a tab created by atom-term2, though I wasn't able to reproduce the error a second time. Hope this helps – thanks!

screenshot_2015-01-06_10 17 01 pm

TypeError: undefined is not a function
  at /Users/hughsk/.atom/packages/wakatime/lib/wakatime.coffee:36:31
  at TextBuffer.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:118:15)
  at TextBuffer.module.exports.TextBuffer.applyPatch (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:591:12)
  at BufferPatch.module.exports.BufferPatch.applyTo (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/buffer-patch.js:74:21)
  at Transaction.module.exports.Transaction.applyTo (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/transaction.js:60:29)
  at History.module.exports.History.abortTransaction (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:162:24)
  at History.module.exports.History.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/history.js:119:16)
  at TextBuffer.module.exports.TextBuffer.transact (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:683:27)
  at TextBuffer.module.exports.TextBuffer.setTextViaDiff (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:452:19)
  at TextBuffer.module.exports.TextBuffer.reload (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:979:12)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:1100:26
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/event-kit/lib/emitter.js:35:25)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:337:38
  at _fulfilled (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:787:54)
  at self.promiseDispatch.done (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:816:30)
  at Promise.promise.promiseDispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:749:13)
  at /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:557:44
  at flush (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:108:17)
  at process._tickCallback (node.js:378:11)

Uncaught Error: spawn EACCES

  1. Launch Atom

Atom Version: 1.7.3
System: Linux Mint
Thrown From: wakatime package, v5.0.8

Stack Trace

Uncaught Error: spawn EACCES

At internal/child_process.js:298

Error: spawn EACCES
    at exports._errnoException (util.js:856:11)
    at ChildProcess.spawn (internal/child_process.js:298:11)
    at exports.spawn (child_process.js:374:9)
    at exports.execFile (child_process.js:163:15)
    at module.(anonymous function) (ATOM_SHELL_ASAR.js:185:20)
    at module.(anonymous function) (ATOM_SHELL_ASAR.js:185:20)
    at pythonLocation (/home/eugene/.atom/packages/wakatime/lib/wakatime.coffee:182:5)
    at /home/eugene/.atom/packages/wakatime/lib/wakatime.coffee:188:9
    at exithandler (child_process.js:232:5)
    at ChildProcess.errorhandler (child_process.js:244:5)
    at emitOne (events.js:77:13)
    at ChildProcess.emit (events.js:169:7)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
    at onErrorNT (internal/child_process.js:344:16)
    at doNTCallback2 (node.js:465:9)
    at process._tickDomainCallback (node.js:420:17)

Commands

Config

{
  "core": {
    "audioBeep": false,
    "autoHideMenuBar": true,
    "disabledPackages": [
      "wrap-guide",
      "npm-docs",
      "node-resolver"
    ],
    "packagesWithKeymapsDisabled": [
      "tool-bar-almighty",
      "tool-bar"
    ],
    "projectHome": "/home/eugene/Projects",
    "themes": [
      "seti-ui",
      "grandson-of-obsidian"
    ]
  },
  "wakatime": {
    "apikey": "2e29638f-ffb2-4f12-b728-4aab075f63a0"
  }
}

Installed Packages

# User
autoclose-html, v0.23.0
emmet, v2.4.3
git-log, v0.4.1
grandson-of-obsidian, v0.1.0
highlight-selected, v0.11.2
js-refactor, v0.6.0
language-groovy, v0.6.0
linter, v1.11.4
linter-eslint, v7.2.2
merge-conflicts, v1.4.2
minimap, v4.23.5
minimap-find-and-replace, v4.5.1
minimap-git-diff, v4.3.1
minimap-highlight-selected, v4.4.0
minimap-linter, v1.1.1
minimap-pigments, v0.2.1
minimap-selection, v4.4.0
multi-wrap-guide, v0.23.5
node-debugger, v1.5.1
pigments, v0.26.2
pretty-json, v1.0.3
project-manager, v2.9.7
refactor, v0.6.0
rest-client, v1.1.0
seti-ui, v1.1.2
terminal-plus, v0.14.5
tool-bar, v0.4.0
tool-bar-almighty, v0.6.1
tree-view-git-status, v0.2.3
wakatime, v5.0.8

# Dev
No dev packages

Project name

The plugin don't have recognized the project name on Atom.
The spent time was registered on a Unknown Project.

Unable to install package behind proxy

On Windows 8.0 box, Atom 1.0.

Installing “[email protected]” failed.Hide output…

gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | win32 | ia32
gyp http GET https://atom.io/download/atom-shell/v0.22.0/node-v0.22.0.tar.gz
gyp WARN install got an error, rolling back install
gyp
Compiler tools not found
Packages that depend on modules that contain C/C++ code will fail to install.
Read here for instructions on installing Python and Visual Studio.
Run apm install --check after installing to test compiling a native module.

Python and compiler installed.
Python works correctly from the command prompt (path is ok).
io.js 2.3.1 is installed and works correctly from command prompt (path is ok).

Yesterday I installed the plugin on Windows 7 sp 1 64 bit with the same configuration and the installation was ok.

Any hint?

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.