weisJ / auto-dark-mode

IDEA plugin to automatically apply system theme settings on macOS and Windows.
https://plugins.jetbrains.com/plugin/14076-auto-dark-mode
MIT License
52 stars 13 forks source link

error: package com.github.weisj.darklaf.platform does not exist #41

Closed gualse closed 2 years ago

gualse commented 2 years ago

I just cloned repo, set up githubAccessToken and I have this compilation error now.

weisJ commented 2 years ago

Could you please provide the full error message.

gualse commented 2 years ago
➜  auto-dark-mode git:(master) ✗ ./gradlew build   
Starting a Gradle Daemon (subsequent builds will be faster)
Type-safe dependency accessors is an incubating feature.
Type-safe project accessors is an incubating feature.
auto-dark-mode-macos: Using pre-build library from github for targetMachine macos-arm64.
auto-dark-mode-macos: Using pre-build library from github for targetMachine macos-x86-64.
auto-dark-mode-windows: Using pre-build library from github for targetMachine windows-x86-64.
auto-dark-mode-windows: Using pre-build library from github for targetMachine windows-x86.
auto-dark-mode-macos: Reusing previously downloaded binary /home/gualse/src/auto-dark-mode/macos/build/libs/prebuild/macos-arm64/libauto-dark-mode-macos.dylib
auto-dark-mode-macos: Reusing previously downloaded binary /home/gualse/src/auto-dark-mode/macos/build/libs/prebuild/macos-x86-64/libauto-dark-mode-macos.dylib
auto-dark-mode-windows: Reusing previously downloaded binary /home/gualse/src/auto-dark-mode/windows/build/libs/prebuild/windows-x86/auto-dark-mode-windows.dll
auto-dark-mode-windows: Reusing previously downloaded binary /home/gualse/src/auto-dark-mode/windows/build/libs/prebuild/windows-x86-64/auto-dark-mode-windows.dll

> Task :auto-dark-mode-base:compileJava FAILED
/home/gualse/src/auto-dark-mode/base/src/main/java/com/github/weisj/darkmode/platform/AbstractPluginLibrary.java:27: error: package com.github.weisj.darklaf.platform does not exist
import com.github.weisj.darklaf.platform.AbstractLibrary;
                                        ^
/home/gualse/src/auto-dark-mode/base/src/main/java/com/github/weisj/darkmode/platform/AbstractPluginLibrary.java:29: error: cannot find symbol
public abstract class AbstractPluginLibrary extends AbstractLibrary {
                                                    ^
  symbol: class AbstractLibrary
/home/gualse/src/auto-dark-mode/base/src/main/java/com/github/weisj/darkmode/platform/AbstractPluginLibrary.java:38: error: method does not override or implement a method from a supertype
    @Override
    ^
/home/gualse/src/auto-dark-mode/base/src/main/java/com/github/weisj/darkmode/platform/AbstractPluginLibrary.java:43: error: method does not override or implement a method from a supertype
    @Override
    ^
/home/gualse/src/auto-dark-mode/base/src/main/java/com/github/weisj/darkmode/platform/AbstractPluginLibrary.java:48: error: method does not override or implement a method from a supertype
    @Override
    ^
5 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':auto-dark-mode-base:compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 17s
31 actionable tasks: 1 executed, 30 up-to-date
➜  auto-dark-mode git:(master) ✗ 
weisJ commented 2 years ago

Sorry there were some commits which I hadn't yet pushed to the repo. If you pull the latest changes everything should compile just fine :)

gualse commented 2 years ago

Now it works, thank you