Comments (6)
NoClassDefFoundError is still occuring while saving. Stack trace below:
com/intellij/openapi/actionSystem/DataKeys
java.lang.NoClassDefFoundError: com/intellij/openapi/actionSystem/DataKeys
at com.wakatime.intellij.plugin.CustomSaveListener.beforeDocumentSaving(CustomSaveListener.java:29)
at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:114)
at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:325)
at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:312)
at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:297)
at com.intellij.util.messages.impl.MessageBusImpl.access$100(MessageBusImpl.java:42)
at com.intellij.util.messages.impl.MessageBusImpl$2.invoke(MessageBusImpl.java:187)
at com.sun.proxy.$Proxy22.beforeDocumentSaving(Unknown Source)
at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:128)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.access$000(FileDocumentManagerImpl.java:88)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl$1.invoke(FileDocumentManagerImpl.java:116)
at com.sun.proxy.$Proxy22.beforeDocumentSaving(Unknown Source)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl$5.run(FileDocumentManagerImpl.java:412)
at com.intellij.pom.core.impl.PomModelImpl.guardPsiModificationsIn(PomModelImpl.java:340)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:409)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.a(FileDocumentManagerImpl.java:383)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:304)
at com.intellij.openapi.fileEditor.impl.FileDocumentManagerImpl.saveAllDocuments(FileDocumentManagerImpl.java:283)
at com.intellij.openapi.application.impl.ApplicationImpl.saveAll(ApplicationImpl.java:1434)
at com.intellij.ide.actions.SaveAllAction.actionPerformed(SaveAllAction.java:26)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$3.performAction(IdeKeyEventDispatcher.java:564)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:611)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.d(IdeKeyEventDispatcher.java:463)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:206)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:518)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:360)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
from jetbrains-wakatime.
I wasn't able to reproduce the error in my environments, so just wrapped that whole block of code in a try/catch. Can you make sure you're plugin is version 2.0.2 and let me know if it's still throwing the exception?
If it's still causing an error I'll have to reproduce your environment locally, so what OS are you running?
Btw, thanks for the stack traces since they help a lot!
from jetbrains-wakatime.
Sure thing :) I'll check the new version tomorrow morning.
from jetbrains-wakatime.
Still waiting for v2.0.2 approval before it will update in your PhpStorm.
from jetbrains-wakatime.
I did a manual install of the plugin using this link http://plugins.jetbrains.com/plugin/download?pr=&updateId=16033 and I can confirm that it's fixed the issue and the plugin is logging time correctly on PhpStorm and WebStorm for windows and mac.
from jetbrains-wakatime.
Thanks @thotjs
Looks like the fix won't be approved until Monday so everyone will have to install from source until then.
from jetbrains-wakatime.
Related Issues (20)
- SOCKS5 proxy server error HOT 1
- Api key prompt with api_key_vault_cmd HOT 1
- Access denied when extension unzips wakatime-cli into home folder HOT 13
- Not restarting pycharm IDE HOT 1
- Track time spent debugging inside Android Studio emulator
- Wakatime 14.3.11 not work on IDEA 2023.3.6 HOT 3
- Can't cancel key input HOT 1
- Wakatime stops working if system time was changed. HOT 1
- No code tracking while "Remote development" HOT 1
- Configure `api_url` in `.wakatime.cfg` HOT 1
- Exception on 2024.2 EAP platform: call '#setLevel(LogLevel)' instead HOT 10
- failed to run command: sending heartbeat(s)
- EAP versions throws `Do not use, call '#setLevel(LogLevel)' instead` HOT 1
- java.lang.Throwable: Do not use, call '#setLevel(LogLevel)' instead HOT 2
- feat: wakatime can use in zed HOT 1
- java.lang.Throwable: Do not use, call '#setLevel(LogLevel)' instead HOT 1
- Not working on latest Android Studio HOT 1
- Crashes on IDEA Ultimate 2024.2 HOT 1
- Exception in plugin WakaTime (15.0.1) on PHPStorm 2024.2 HOT 1
- Toolbar keep stuck at 0 seconds HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jetbrains-wakatime.