Pinned editor windows unpin after "cp -R" upgrade

I've been keeping up with the EAP releases by first expanding the tarball into a local directory (say, "foo"), cd'ing into it, then doing a "cp -R * /usr/local/bin/IntelliJ-IDEA-Irida" to update my installation. Works OK except that my projects that have pinned editor windows lose all knowledge of the pins. I don't quite understand why this is happening...shouldn't stuff like this hang out in the project *.iws file (which is nowhere near the directory I'm updating).

Any hints what I'm doing wrong, and how to fix it?

Thanks!

1 comment
Comment actions Permalink

On Mon, 14 Feb 2005 23:50:45 +0300, Andy wrote:

I've been keeping up with the EAP releases by first expanding the
tarball into a local directory (say, "foo"), cd'ing into it, then doing
a "cp -R * /usr/local/bin/IntelliJ-IDEA-Irida" to update my
installation.


I don't think that's a good way to move from one build to the next since
it assumes that successive builds contain exactly the same files.

Although the case of newer builds adding files not present in earlier
builds is arguably OK, you're not covering the case where files present in
one build are removed (or renamed) in later builds.

Works OK except that my projects that have pinned editor
windows lose all knowledge of the pins. I don't quite understand why
this is happening...shouldn't stuff like this hang out in the project
*.iws file (which is nowhere near the directory I'm updating).


Maybe a bug in the new build? Maybe IDEA's loading classes from an
obsolete jar?

Any hints what I'm doing wrong, and how to fix it?


Unrelated to your pinning problem, I'd install builds into their own
directories, if only because it means you can revert more easily if a new
build causes you grief. Symlinking the JRE into place mitigates the
increased disk space required. YMMV, of course.

If you really want to update a single installation directory then I'd
suggest using something like rsync, which can guarantee you end up with
the target mirroring the source.

--
Mark Scott
mark@codebrewer.com

0

Please sign in to leave a comment.