question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Retrieving changesets fail

See original GitHub issue

I can query and filter my gerrit instance. I see open and merged submissions.

However, I cannot retrieve changeset information. See error output below.

Version Info

Android Studio 0.8.2 gerrit-intellij-plugin 0.9.2 Gerrit 2.9

Event Log

11:25:34 PM Cannot show change: Git error occurred while getting commit. Please check if Gerrit is configured as remote for the currently used Git repository.

Version Control Console

23:25:34.257: cd /Users/brandon/work/projects/android/rw/libs/republic-core/.git
23:25:34.257: git fetch --progress origin refs/changes/95/195/2
java.lang.ArrayIndexOutOfBoundsException: 1
    at org.jetbrains.git4idea.ssh.SSHConfig.load(SSHConfig.java:124)
    at org.jetbrains.git4idea.ssh.SSHMain.<init>(SSHMain.java:121)
    at org.jetbrains.git4idea.ssh.SSHMain.parseArguments(SSHMain.java:483)
    at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:136)

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
gdubickicommented, Aug 17, 2016

Hey, this thing just happened to me too, while using plain InteliiJ IDEA, without your plugin.

I also have had a dangling Host line in my SSH config.

I’ll paste my error message for searchability of this ticket as apparently JetBrains haven’t made the error message more user-friendly in the last 2 years. 👎

My full error while trying to push to a remote repo was:

java.lang.ArrayIndexOutOfBoundsException: 1
    at org.jetbrains.git4idea.ssh.SSHConfig.load(SSHConfig.java:124)
    at org.jetbrains.git4idea.ssh.SSHMain.<init>(SSHMain.java:121)
    at org.jetbrains.git4idea.ssh.SSHMain.parseArguments(SSHMain.java:498)
    at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:136)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
1reaction
BrandonSmithcommented, Aug 8, 2014

SSH config it was. I had a dangling Host block that’s been there for who knows how long:

Host *
    Compression yes
    CompressionLevel 7
    Cipher blowfish
    ServerAliveInterval 600
    ForwardAgent yes
    ControlMaster auto
    ControlPath ~/.ssh/connections/%r_%h_%p

Host

Removing the last line fixes the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to deal with failing changesets in Oracle
The best option is to have one DDL change per changeset. That way it either succeeds or it doesn't with no half-worked state....
Read more >
Dealing with Changing Changesets | Liquibase Tips & Tricks
It's always best to roll forward, but sometimes you need to get creative. Learn tips for dealing with changing Liquibase changesets.
Read more >
Liquibase changeSet with failOnError="false" are always ...
The Problem is, that this changeSet doesn't get logged into DATABASECHANGELOG table and is therefor executed every time liquibase runs.
Read more >
Change Sets Error Message
If you get the error message clone the change set you had trouble with. Then, clone it once more and this time change...
Read more >
Unable to retrieve Changesets from TFS source control
What exactly did Review Assistant write when unable to retrieve changeset? In an ordinary TFS working scenario (create project, add it to the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found