Help: IDEA + OS X + CVS + SSH?

June 16, 2004 2:47 PM

"Error: Valid requests expected!" has become the new bane of my existence. I've been spending most of the day trying to sort it out, and it's starting to get a little frustrating.

Finally, now my Powerbook is fast enough, I can say goodbye to RedHat on the desktop, and move to OS X as my primary development platform at work. So far everything is both hunky and dory... except when I try to do anything CVS-like from IDEA. Whenever I tell IDEA to run a CVS command, it replies:

"Error: Valid requests expected!"

Here's the setup:

  • Using the command-line CVS client that comes with OS X 10.3.4 (cvs 1.10)
  • CVS_RSH=ssh
  • SSH key in my authorized_keys file on the server
  • Running ssh-agent (specifically, SSHKeychain) for passphrase-entering

Bear in mind this exact same setup worked on my Linux box, except I was using vanilla ssh-agent instead of SSHKeychain.

  • From the command-line, everything Just Works. CVS connects to the box and does its funky thang without requesting any passwords or throwing up any errors
  • In fact, if I copy the (failing) CVS command verbatim from IDEA's console and paste it into a terminal window, the shell performs that command without complaint.
  • I know that IDEA is calling ssh (and ssh making use of ssh-agent) because when I ask IDEA to connect to the CVS repository the first time, the agent asks me for my passphrase.
  • Random aside: to make environment variables in OS X available to programs you're not launching from a shell, they need to go in ~/.MacOSX/environment.plist

Anyone have any idea what the fix is here? I trawled through Google and the IDEA Wiki and the Jetbrains knowledge-base to no avail.

Update: I've now also tried with the command-line ssh-agent, and with no agent and a passphrase-less ssh key, both to no avail.

13 Comments

Have you tried using the native internal Java based SSH instead of a local tunnel at all?

A lot of people on the Groovy project use Mac OS X, IntelliJ, and CVS over SSH without problems. We all use private key authentication rather than passwords and the server is specified with :ext:. We are probably all on 10.3 though.

I'm running 10.3.4 - I have no idea how that thinko snuck in.

I'm using 10.3.4 with IDEA 4.0.3 and it's built in SSH support without any problems.

I never used IDEA, but these sounds like an encoding issue. Are your request sent as expected? (UTF vs Latin-1)

Hi Charles,

You might take a look at the newline format of the CVS administrative files (**/CVS/*) IDEA creates. I had this problem using cygwin where cvs expected \n-terminated lines, but IDEA's CVS client had created the files with \r\n (DOS mode) as the line terminator.

On your Mac IDEA might be creating files ending in \r. The workaround in Windows (unfortunately) seems to be only to perform CVS operations (including cvs add) using one of the clients, i.e. stick to either one or the other.

This was my problem in Windows, but yours smells similar. Let me know how it goes.

James

One thing I've found with IntelliJ's internal CVS is if you're going to use it, you have to go whole hog. That is, don't check out with a command line CVS and then commit from the internal client or vice versa. Its much smarter to just use the File -> Checkout From CVS... and keep all your CVS operations inside IntelliJ. It forces you into a crash course on the IntelliJ CVS client, but other than that, it works great and avoids a lot of issues with mixed line ending stuff and other nasty things that tend to bite you.

It is true for me that I always used the IntelliJ client for all operations, including the initial checkout.

I had what seems like the same problem. I fixed it with the instructions here:

http://www.intellij.org/twiki/bin/view/Main/CVSWithSSH

Scroll down to "CVS via SSH on Mac OS X", then start with "It does not appear to be just an environment variable issue".

If you tried that, and it didn't work, mail me and I'll see what's up with my setup.

Eclipse doesn't work with the cvs which comes with 10.3.4 -- I needed to upgrade to the latest stable CVS.

I have no idea if IDEA has the same issue...

I have seen a similar problem here:

Mac OS X cvs is out of date
http://www.sauria.com/blog/computers/operating_systems/macosx/958

Upgrading to the latest CVS from sources resolved the problem.

I need to upgrade my CVS in my powerbook to be able to use JBuilder. I got the CVS source for cvs-1.11.17 I compile it and installed it under /usr/local/cvs and when I do a cvs --version, It still picks up version 1.10. Can someone who has done this process, post some steps to make it point to the new version.

cam college nude web milf pic asian sex webcam nude webcam cam free host site web mature women and naked picture free live webcam to view milf sample video free mature pussy movie free mature moms picture mature sex links mature pussy movie free xxx webcam real amateur mature free webcam chat mature hairy pussy pic mature latina pussy hairy mature slut free mature naked women free webcam web site mature porn video webcam video nude indian mature pussy xxx milf free webcam chatting mature asian pussy mature mom mature nude mature lady mature vs young sex mature women sex free webcam porn anal porn mature mature women tgp

Comments are no longer being accepted for this blog entry. If you really want to make your voice heard, you can always email me.

Previously: Today's Horoscope

Next: They're Made out of Meat