Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDE Error on find all action (shift shift) #444

Closed
programaths opened this issue Sep 28, 2022 · 7 comments
Closed

IDE Error on find all action (shift shift) #444

programaths opened this issue Sep 28, 2022 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@programaths
Copy link

Additional info
Double shift, then pasting a Kotlin class name and hitting enter

Version information

  • Randomness version: 2.7.5
  • IDE version: IU-222.4167.29
  • Operating system: Linux
  • Java version: 17.0.4
@FWDekker
Copy link
Owner

Hiya! Thanks for opening the issue. The issue sound similar to your previous issues (#441, #442), and I suspect it's related to some weird kind of corruption in the Randomness configuration file. Would you be able to share the file at /home/florine/.config/JetBrains/IntelliJIdea2022.2/options/randomness.xml with me so I can inspect the configuration?

@FWDekker FWDekker added the bug Something isn't working label Sep 28, 2022
@FWDekker FWDekker self-assigned this Sep 28, 2022
@programaths
Copy link
Author

Hi, here is the content of the file:

<application>
  <component name="StringSettings">
    <option name="currentScheme">
      <Scheme>
        <option name="myName" value="Default copy" />
      </Scheme>
    </option>
    <option name="currentSchemeName" value="Default copy" />
    <option name="schemes">
      <list>
        <StringScheme>
          <option name="enclosure" value="" />
          <option name="maxLength" value="64" />
          <option name="minLength" value="64" />
        </StringScheme>
        <StringScheme>
          <option name="enclosure" value="" />
          <option name="maxLength" value="70" />
          <option name="minLength" value="70" />
          <option name="myName" value="Default copy" />
        </StringScheme>
      </list>
    </option>
  </component>
</application>

Hope it helps!

@FWDekker
Copy link
Owner

I was able to reproduce the bug. After some investigation, I found that the cause is the following lines in your randomness.xml:

<option name="currentScheme">
  <Scheme>
    <option name="myName" value="Default copy" />
  </Scheme>
</option>

Removing those lines and then restarting your IDE should resolve the issue. Could you try that out and see if it resolves the issue?

I'm not entirely sure how those lines ended up in the XML, however. The field has been marked as transient, meaning it should not be saved to configuration, and has been marked as transient since schemes were first introduced in v2.4.0.

Either way, I will see if I can make loading settings more resilient in v3, so that errors in the XML are handled gracefully.

@FWDekker
Copy link
Owner

FWDekker commented Oct 4, 2022

Hi @programaths. Did either removing randomness.xml or removing the lines mentioned above resolve your issue?

@FWDekker
Copy link
Owner

Hi @programaths. It's been a while since this issue was active. Have you since then seen this exception repeated? And did removing randomness.xml or removing the lines noted in my previous comment help?

@programaths
Copy link
Author

programaths commented Dec 19, 2022 via email

@FWDekker
Copy link
Owner

Thank you for the response! Take it easy, and I hope you enjoy the holidays ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants