Azn9 / JetBrains-Discord-Integration

Discord rich presence integration for all JetBrains IDEs
Apache License 2.0
142 stars 10 forks source link

Exception when browsing files #74

Closed thegatesdev closed 8 months ago

thegatesdev commented 8 months ago

Hello there!

When clicking on a file in my IntelliJ IDEA file browser, the plugin produces this exception:

java.lang.UnsupportedOperationException: The BROWSE action is not supported on the current platform!
    at java.desktop/java.awt.Desktop.checkActionSupport(Desktop.java:381)
    at java.desktop/java.awt.Desktop.browse(Desktop.java:531)
    at dev.azn9.plugins.discord.settings.options.types.TemplateOption.textFieldInfoExtension$lambda-0(TemplateOption.kt:45)

I'm running an Arch Linux system with IntelliJ installed from the official pacman repository.

Below is the full stacktrace: intellij-err.txt

I must add that the plugin correctly works when not having any files open, the integration shows in Discord with the project name and time elapsed.

thegatesdev commented 8 months ago

It seems it is working now without changing anything, and it is detecting the files correctly without exceptions. This is probably only an issue when first installing the plugin.

Azn9 commented 8 months ago

Thanks for the report! Even if this only happens the first time it is annoying. I'll take a look at it in the next few days.