Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wakatime plugin of webstorm doesn't work well #158

Open
Clloz opened this issue Jan 17, 2021 · 2 comments
Open

wakatime plugin of webstorm doesn't work well #158

Clloz opened this issue Jan 17, 2021 · 2 comments
Assignees

Comments

@Clloz
Copy link

Clloz commented Jan 17, 2021

I use wakatime in may editor or terminal, such as vscode ,zsh. Now I change my daily editor to webstorm, I install wakatime plugin and set my Api Keys, but the plugin doesn't work well.

When I code in vscode or use zsh, the dashboard will show the coding activity data right away, but when I code in webstorm, the data doesn't show in dashboard. It will be two days or three days, the dashborad will update my webstorm coding activity.

java.lang.IllegalStateException: Cannot find any window
	at com.intellij.ui.messages.JBMacMessages.getForemostWindow(JBMacMessages.java:150)
	at com.intellij.ui.messages.JBMacMessages.showErrorDialog(JBMacMessages.java:174)
	at com.intellij.openapi.ui.Messages.showWarningDialog(Messages.java:778)
	at com.wakatime.intellij.plugin.WakaTime.checkDebug(WakaTime.java:161)
	at com.wakatime.intellij.plugin.WakaTime.initComponent(WakaTime.java:84)
	at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:44)
	at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
	at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
	at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60)
	at com.intellij.serviceContainer.ComponentManagerImpl.createComponents(ComponentManagerImpl.kt:304)
	at com.intellij.openapi.application.impl.ApplicationImpl.lambda$loadComponents$5(ApplicationImpl.java:347)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:658)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:610)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:65)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
	at com.intellij.openapi.application.impl.ApplicationImpl.loadComponents(ApplicationImpl.java:347)
	at com.intellij.idea.ApplicationLoader$startApp$6$loadComponentInEdtFuture$1.run(ApplicationLoader.kt:200)
	at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:216)
	at com.intellij.openapi.application.TransactionGuardImpl.access$200(TransactionGuardImpl.java:24)
	at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:199)
	at com.intellij.openapi.applic

This is the webstorm Error log, my webstorm version is 2020.3.1

@alanhamlett
Copy link
Member

alanhamlett commented Jan 21, 2021

That error traceback is unrelated to not tracking.

Screen Shot 2021-01-21 at 8 16 37 AM

When your IDE is starting up, WakaTime tries to display that alert. If the IDE's UI isn't ready yet, then that error occurs.

@Clloz
Copy link
Author

Clloz commented Feb 26, 2021

{
"now": "2021/02/26 09:18:43 +0800",
"version": "13.0.7",
"plugin": "WebStorm/2020.3.2 WebStorm-wakatime/11.0.1",
"time": 1614302301.649,
"level": "WARNING",
"message": "{'UnicodeDecodeError': "'ascii' codec can't decode byte 0xe2 in position 8: ordinal not in range(128)", 'traceback': 'Traceback (most recent call last):\n File "wakatime/api.py", line 98, in send_heartbeats\n File "requests/sessions.py", line 578, in post\n File "requests/sessions.py", line 516, in request\n File "requests/sessions.py", line 446, in prepare_request\n File "requests/utils.py", line 204, in get_netrc_auth\n File "netrc.py", line 30, in init\n File "netrc.py", line 39, in _parse\n File "shlex.py", line 109, in get_token\n File "shlex.py", line 140, in read_token\n File "/Users/travis/.pyenv/versions/3.8.1/lib/python3.8/encodings/ascii.py", line 26, in decode\nUnicodeDecodeError: \'ascii\' codec can\'t decode byte 0xe2 in position 8: ordinal not in range(128)\n'}"
}

.wakatime.log warning log, wakatime won't refresh the message of webstorm coding activity。only when I use other IDEs, like emacs or zsh, the message of webstorm will be refresh,and I can see the message in web dashboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants