codebling / CommunityCase

**THIS PLUGIN IS NO LONGER MAINTAINED.** But if you wish to use it, I can help you update it to work with the latest version of IntelliJ. See https://github.com/codebling/CommunityCase/issues/26 . This plugin adds support for ClearCase version control system in IntelliJ IDEA Community Edition (and Ultimate Edition - it's faster than the built-in plugin!).
Other
7 stars 4 forks source link

Can't retrieve current file's change info #7

Closed codebling closed 10 years ago

codebling commented 11 years ago

14:52:31.785: "C:\Program Files\Rational\ClearCase\bin\cleartool.exe" get -to \"C:\DOCUME~1\user\LOCALS~1\Temp\tandoori-iml-main-12444966767104861902tmp\" \"tandoori.iml@@\main\1\" cleartool: Error: ""tandoori.iml@@\main\1"" does not exist, or is not a ClearCase version, or is a checked out version which was removed.

codebling commented 11 years ago

The \" are just escaped quotation marks. Works from a command window, can't figure out why it's not working in the IDE

codebling commented 11 years ago

Ah looks like it may be the cd before that command, whose path has spaces but isn't escaped.

codebling commented 11 years ago

That seems to fix it

codebling commented 11 years ago

oops, nope. IntelliJ forcibly double escapes things in Windows for no reason...

platform/util/src/com/intellij/execution/CommandLineUtil.java:50 if (SystemInfo.isWindows) { if (parameter.contains("\"")) { parameter = StringUtil.replace(parameter, "\"", "\"");

codebling commented 11 years ago

This is an IntelliJ issue, introduced in IntelliJ 12.1.2. I've raised the problem on IntelliJ's YouTrack under the issue for which this code was introduced as a fix. http://youtrack.jetbrains.com/issue/IDEA-105472#tab=Comments

codebling commented 10 years ago

fixed