Opening file from project explorer opening previous file contents on double-click

Issue #2032 resolved
Jason Skowronek created an issue

I’m not sure if this is specific to your plug-in or a bigger issue with IJ.

IntelliJ IDEA 2021.3.1 (Ultimate Edition)Build #IU-213.6461.79, built on December 28, 2021Licensed to MeYou have a perpetual fallback license for this version.Subscription is active until June 19, 2023.Runtime version: 11.0.13+7-b1751.21 amd64VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.Windows 10 10.0GC: G1 Young Generation, G1 Old GenerationMemory: 4096MCores: 8Registry:ide.windowSystem.autoShowProcessPopup=truedocumentation.show.toolbar=truesearch.everywhere.settings=trueide.balloon.shadow.size=0

Non-Bundled Plugins:ua.in.dej.myEmmet (1.2.5)org.nik.presentation-assistant (1.0.9)net.sjrx.intellij.plugins.systemdunitfiles (0.3.4)net.seesharpsoft.intellij.plugins.csv (2.18.2)net.antelle.intellij-xcode-dark-theme (1.2.4)name.kropp.intellij.makefile (213.5744.224)monokai-pro (1.6)dev.patrickpichler.darculaPitchBlackTheme (1.0.0)com.vermouthx.xcode-theme (1.4.1)com.vermouthx.idea (1.12.4)com.vecheslav.darculaDarkerTheme (1.2.0)com.samdark.intellij-visual-studio-code-dark-plus (2.5)com.markskelton.one-dark-theme (5.4.2)com.jetbrains.plugins.ini4idea (213.5744.190)com.jetbrains.plugins.asp (213.5744.122)com.jetbrains.edu (2021.12-2021.3-439)com.jetbrains.darkPurpleTheme (1.2)com.intellij.plugins.visualstudiokeymap (213.5744.3)com.intellij.lang.liquid (213.5744.224)com.intellij.ideolog (203.0.27.0)org.jetbrains.plugins.ruby (213.6461.79)org.jetbrains.kotlin (213-1.6.10-release-923-IJ5744.223)com.wix.scss.lint (2.1.1)com.intellij.apacheConfig (213.5744.190)com.hiberbee.intellij.hiberbee-theme (2021.9.23.2312)com.github.mturlo.intellij.theme.spacegray (1.4.2)com.github.leomillon.uuidgenerator (4.5.1)com.fernandojimenez.mattecarbon.theme (3.0.0)com.alayouni.ansiHighlight (1.2.4)com.intellij.plugin.adernov.powershell (2.0.9)com.intellij.selenium (213.6461.6)String Manipulation (8.24.203.5981.3)Native Neighbourhood (1.3.0)mobi.hsz.idea.gitignore (4.3.0)Dummy Text Generator (1.2.0)CMD Support (1.0.5)MavenRunHelper (4.20.213.3714.1)com.intellij.plugins.html.instantEditing (213.5744.122)com.jetbrains.plugins.jade (213.5744.223)com.jetbrains.php (213.6461.83)org.jetbrains.plugins.phpstorm-remote-interpreter (213.5744.125)com.jetbrains.twig (213.5744.224)de.espend.idea.php.toolbox (6.0.0)de.espend.idea.php.annotation (8.0.0)fr.adrienbrault.idea.symfony2plugin (0.23.213)com.jetbrains.php.framework (213.6461.19)com.jetbrains.php.blade (213.6461.21)de.espend.idea.laravel (0.15.4)com.github.masahirosuzuka.PhoneGapIntelliJPlugin (213.5744.190)com.dmarcotte.handlebars (213.5744.190)Pythonid (213.6461.79)ru.adelf.idea.dotenv (2021.3.0.213)com.illuminatedcloud2.intellij (2.2.0.1)aws.toolkit (1.37-213)

Kotlin: 213-1.6.10-release-923-IJ5744.223

When I double-click/open any file, after having already DC’d another file, the previous file source opens in the window?!

If I do a “preview”, single-click, or right-click another file, the preview page correctly loads the file contents and the file contents load on double-click from then on.

When I double-click before having previewed the file, the code from the previously opened page loads into the editor.

This appears to only happen under the IC modules, not under any other module type.

I’m not entirely sure how to troubleshoot this as it’s not throwing exceptions or anything, it’s just causing havoc.

I can shoot you over a video of what’s going on if that helps.

Comments (4)

  1. Scott Wells repo owner

    Hi. I've not heard about such a behavior, nor was I able to reproduce it just now. I opened the Project view and double-clicked about 10-15 different files, all of which opened properly into their respective editors. It looks like you have a large number of third-party plugins installed, so if you don't mind, let's start by making sure it's not an interaction issue with another plugin. Please disable all third-party plugins except for IC2, restart the IDE, and see if the same behavior is still present. If so, I'll likely request additional diagnostic info.

  2. Jason Skowronek reporter

    On a hunch, I reset/toggled the “Enable Preview Tab” feature, curious if disabling it exhibits same behavior when disabled (which it doesn’t).

    In doing so and then re-enabling it, the behavior no longer persists. It’s been happening for a while, so I’m not entirely sure what was ‘stuck’.

    If it returns I’ll open a clean env. and see if I can reproduce w/ just IC alone.

    Thanks for quick reply.

  3. Scott Wells repo owner

    Gotcha. Resolving for now, but if you do see it happen again and can reproduce it with only IC2 enabled, feel free to reopen and we'll get new diagnostics.

  4. Log in to comment