Hannah-Sten / TeXiFy-IDEA

LaTeX support for the IntelliJ platform by JetBrains.
https://hannah-sten.github.io/TeXiFy-IDEA
MIT License
891 stars 87 forks source link

java.lang.NoClassDefFoundError: org/freedesktop/dbus/errors/NoReply #1856

Closed deadly-platypus closed 3 years ago

deadly-platypus commented 3 years ago

Type of JetBrains IDE (IntelliJ, PyCharm, etc.) and version

Operating System

TeXiFy IDEA version

Description

Stacktrace

java.lang.NoClassDefFoundError: org/freedesktop/dbus/errors/NoReply
    at com.intellij.credentialStore.LinuxCredentialStoreFactory.create(NativeCredentialStoreWrapper.kt:152)
    at com.intellij.ide.passwordSafe.impl.PasswordSafeImplKt.createPersistentCredentialStore(PasswordSafeImpl.kt:244)
    at com.intellij.ide.passwordSafe.impl.PasswordSafeImplKt.computeProvider(PasswordSafeImpl.kt:221)
    at com.intellij.ide.passwordSafe.impl.PasswordSafeImplKt.access$computeProvider(PasswordSafeImpl.kt:1)
    at com.intellij.ide.passwordSafe.impl.BasePasswordSafe$_currentProvider$1.invoke(PasswordSafeImpl.kt:42)
    at com.intellij.ide.passwordSafe.impl.BasePasswordSafe$_currentProvider$1.invoke(PasswordSafeImpl.kt:32)
    at com.intellij.util.concurrency.SynchronizedClearableLazy.getValue(SynchronizedClearableLazy.kt:37)
    at com.intellij.ide.passwordSafe.impl.BasePasswordSafe.getCurrentProvider$intellij_platform_credentialStore(PasswordSafeImpl.kt:48)
    at com.intellij.ide.passwordSafe.impl.BasePasswordSafe.get(PasswordSafeImpl.kt:97)
    at org.jetbrains.plugins.github.authentication.accounts.GithubAccountManager.getTokenForAccount(GithubAccountManager.kt:59)
    at org.jetbrains.plugins.github.authentication.GithubAuthenticationManager.getTokenForAccount$intellij_vcs_github(GithubAuthenticationManager.kt:35)
    at org.jetbrains.plugins.github.api.GithubApiRequestExecutorManager.getOrTryToCreateExecutor(GithubApiRequestExecutorManager.kt:50)
    at org.jetbrains.plugins.github.api.GithubApiRequestExecutorManager.getExecutor(GithubApiRequestExecutorManager.kt:43)
    at org.jetbrains.plugins.github.extensions.GHProtectedBranchRulesLoader.loadProtectionRules(GHProtectedBranchRulesLoader.kt:63)
    at org.jetbrains.plugins.github.extensions.GHProtectedBranchRulesLoader.doAfterSuccessfulFetch(GHProtectedBranchRulesLoader.kt:30)
    at git4idea.fetch.GitFetchHandler$Companion.afterSuccessfulFetch(GitFetchHandler.kt:16)
    at git4idea.fetch.GitFetchSupportImpl$fetch$1.invoke(GitFetchSupportImpl.kt:116)
    at git4idea.fetch.GitFetchSupportImpl$fetch$1.invoke(GitFetchSupportImpl.kt:45)
    at git4idea.fetch.GitFetchSupportImpl.withIndicator(GitFetchSupportImpl.kt:211)
    at git4idea.fetch.GitFetchSupportImpl.fetch(GitFetchSupportImpl.kt:101)
    at git4idea.fetch.GitFetchSupportImpl.fetchDefaultRemote(GitFetchSupportImpl.kt:72)
    at git4idea.update.GitUpdateProcess.fetchAndNotify(GitUpdateProcess.java:339)
    at git4idea.update.GitUpdateProcess.update(GitUpdateProcess.java:138)
    at git4idea.update.GitUpdateEnvironment.performUpdate(GitUpdateEnvironment.java:97)
    at git4idea.update.GitUpdateEnvironment.updateDirectories(GitUpdateEnvironment.java:55)
    at com.intellij.openapi.vcs.update.AbstractCommonUpdateAction$Updater.performUpdate(AbstractCommonUpdateAction.java:380)
    at com.intellij.openapi.vcs.update.AbstractCommonUpdateAction$Updater.runImpl(AbstractCommonUpdateAction.java:349)
    at com.intellij.openapi.vcs.update.AbstractCommonUpdateAction$Updater.run(AbstractCommonUpdateAction.java:323)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:998)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:497)
    at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:228)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:688)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:634)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:64)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:165)
    at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:228)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
    at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.ClassNotFoundException: org.freedesktop.dbus.errors.NoReply
    at com.intellij.util.lang.PathClassLoader.findClass(PathClassLoader.java:64)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)
    at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
    ... 45 more
PHPirates commented 3 years ago

Same question as #1844 and #1850: what is your Evince version and operating system?

deadly-platypus commented 3 years ago

Evince: 40.1 OS: Manjaro kernel 5.11.10-1-MANJARO

PHPirates commented 3 years ago

Thanks, I have the same Evince version so that's not it. (I have Arch 5.11.12, so that's not very different either) Can you reproduce the error? Any idea what you could be doing that causes it? The stacktrace shows something related to git and passwords, not something related to TeXiFy.

Which IDE and which version of it are you using, and which TeXiFy version?

deadly-platypus commented 3 years ago

It happened when I tried to update a git project. It looks like for some reason, the GitHub access tokens I have generated are missing. I use CLion 2021.1, which I updated yesterday, and today is when I first tried updating a project. Taking this all together, it looks like the new CLion version is looking for GitHub access tokens in a new location, not finding them, and then throwing an exception when it can't create a new credential store (maybe due to local permissions being inadequate).

deadly-platypus commented 3 years ago

TeXiFy IDEA version: 0.7.5

deadly-platypus commented 3 years ago

I have also updated Manjaro recently as well, so that may have moved the GitHub access tokens as well. Do you know where CLion is looking for them? I can check if they exist there on my machine.

PHPirates commented 3 years ago

Thanks for the info! I can indeed reproduce the problem when creating a new github token. I'm looking into whether this is caused by TeXiFy, but at least my token worked anyway so if yours doesn't you could try generating a new one (just throw away the old one on github and it will ask for a new one)

PHPirates commented 3 years ago

I think this is fixed with CLion 2021.1.1, please reopen if you still have the problem.