tabnine-intellij icon indicating copy to clipboard operation
tabnine-intellij copied to clipboard

Exception in Jetbrains 2023.2 EAP IDEs

Open yohannlog opened this issue 1 year ago • 9 comments

Hi!

I've got an exception when using tabnine in EAP version (When autocompleting with tab key). This causes an exception causing the inability to copy paste and this causes several bugs on undo action.

This is the error: java.lang.Throwable: Assertion failed: Undoable actions allowed inside commands only (see com.intellij.openapi.command.CommandProcessor.executeCommand())

I had opened a bug report on Jetbrains youtrack but after investigation, it seems that the problem came from here. Here is the link: https://youtrack.jetbrains.com/issue/IDEA-323867/Undo-problem-Undoable-actions-allowed-inside-commands-only

Thanks !

gz#24636

(related to Zendesk ticket #24636)

yohannlog avatar Jun 30 '23 20:06 yohannlog

Hi @yohannlog Try using Tabnine on a non-EAP version.

TzufTabnine avatar Jul 02 '23 05:07 TzufTabnine

Hi @yohannlog Try using Tabnine on a non-EAP version.

Hi @TzufTabnine I am also an IntelliJ IDEA plugin developer and I have encountered a similar issue as yours. The problem seems to be triggered by the auto-import command after accepting the completion suggestions. When the user attempts to undo the action using ctrl+z, this exception is thrown. Additionally, it appears that this issue only occurs in the 2023.2 EAP of the IDEA. Could you please kindly share how you managed to resolve this issue? Thanks

jingxinli33 avatar Jul 11 '23 03:07 jingxinli33

Hi @jingxinli33 Thanks for reporting the EAP issue, we will add this to our backlog and prioritize.

Could you please kindly share how you managed to resolve this issue?

Are you asking how did we manage to resolve the issue on the stable versions, or the EAP version?

yonip23 avatar Jul 11 '23 07:07 yonip23

@TzufTabnine this issue still occurs on Build #WS-232.8660.143, built on July 21, 2023 NON-EAP build of Webstorm, as a workaround i've temporary disabled the plugin. As it influences my workflow too much by disabling the undo /copy-paste within webstorm IDE.

Please consider re-opening this ticket.

Metachemix1 avatar Jul 25 '23 10:07 Metachemix1

Yesterday I upgraded to the latest WebStorm version WS-232.8660.143, built on July 21, 2023 and I'm having the same issue. After disabling the plugin, I have no more issues with copy-paste functionality. This is not resolved and the ticket should be re-opened.

gvko avatar Jul 26 '23 11:07 gvko

We have identified an issue with the auto-import module in our plugin, which appears to conflict with the latest version of Jetbrains. We're working diligently to address this. In the meantime, we recommend a temporary workaround: disabling the auto-import functionality. You can do this through the TabNine settings panel in your IDE. We'll keep you updated as we work towards a resolution.

yairco1990 avatar Jul 26 '23 18:07 yairco1990

We have identified an issue with the auto-import module in our plugin, which appears to conflict with the latest version of Jetbrains. We're working diligently to address this. In the meantime, we recommend a temporary workaround: disabling the auto-import functionality. You can do this through the TabNine settings panel in your IDE. We'll keep you updated as we work towards a resolution.

This did not solve the error for me (Ubuntu 22.04, Jetbrain IDEs installed via Toolbox). Affects all IDEs!

mkalus avatar Jul 31 '23 07:07 mkalus

Make sure you have the latest version of Tabnine (1.0.37). It should solve the issue.

TzufTabnine avatar Jul 31 '23 12:07 TzufTabnine

Nope, it did not - I did test with the latest issue and it still throws the same error.

mkalus avatar Jul 31 '23 12:07 mkalus