-
Notifications
You must be signed in to change notification settings - Fork 165
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
Use WAKATIME_HOME env #96
Conversation
@@ -47,6 +47,13 @@ public static boolean isPythonInstalled() { | |||
|
|||
public static String getResourcesLocation() { | |||
if (Dependencies.resourcesLocation == null) { | |||
if (System.getenv("WAKATIME_HOME")) { | |||
File appDataFolder = new File(System.getenv("WAKATIME_HOME")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to define appDataFolder
here, it's only used to find the window's data folder when WAKATIME_HOME
isn't defined.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed it in a separate commit, and will release a new version soon after testing (probably within a few days). Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, that was quick! Thanks again for the awesome project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alanhamlett thoughts on a new version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already been merged.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, right! Just released a new version 9.0.2 with your change.
fyi, haven't been able to get this to work running 9.03 - it creates the folder and prompts me for an API key. As usual, it can be tricky to get environment variables into GUI programs but usually my startup.plist file handles it. Also, I tried opening it up with IntelliJ IDEA 2017.3.5 (Ultimate Edition) I'm not so experienced with building Java projects, but at some point perhaps I'll circle back around to build it and see what's happening.
|
resolutionSeems like I got this working - there were two debuggingHey @alanhamlett - would like to debug this, but I'm not a good enough Java/Intellij developer to figure out how to automatically load the plugin? I left some comments at https://gitter.im/IntelliJ-Plugin-Developers/Lobby?at=5ac1126a7c3a01610d98b010 I get the impression from http://www.jetbrains.org/intellij/sdk/docs/basics/plugin_structure/plugin_content.html that I need to bundle this all into a jar file for it to be automatically loaded? Also tried moving the
but I can't seem to set it to the bundled version for some reason (the macOS |
For any MacOS users that are having issues getting IntelliJ to use
|
Hey, following up on https://github.com/wakatime/wakatime/issues/73#issuecomment-312964355 - seems that the jetbrains plugin is creating
.wakatime/wakatime-master/
and ignoring WAKATIME_HOMEThis is just a start, haven't tested it - not much of a Java person - probably still need to add code to read... I may get around to it eventually, or you can take it from here