Clone: Unable to create destination directory
I try to clone the repository to the new project in the PyCharm. I already have this repo cloned in a different project, but when I try to create new project I see the read message in the event log. What might be the reason?
Clone: Unable to create destination directory
Please sign in to leave a comment.
Hi,
Does it work if you clone to the same directory from the terminal? If so, it could be a file permission issue. Could you please provide Logs from **Help | Collect Logs and Diagnostic Data** after reproducing the issue?
I'm having same problem. Mac OS X Ventura 13.4.1
I do git clone from terminal and it works.
There are many logs there, which one do you need?
Thanks for your prompt reply. I have uploaded the data.
Upload id: 2023_06_27_Cps2rGhgHVeTiWe8pX4NeV (file: pycharm-logs-20230627-16163016624587075770110170.zip)
Thanks.
Thank you,
The full text of the error is "Couldn't create destination directory<br/>Check your access rights"
Which target directory you specify? Could you please show a screenshot of the clone dialog before clicking the "Clone" button?
Sure, here it is
Surprisingly its is trying to locate C:, but I'm using OS X so there is not C: disk. Now the question is, why is it trying to locate C: if I'm on OS X?
When I try to clone from VCS just follow the steps on the windows, I do not specify Target directory, it is done by PyCharm
I could made the clone modifying manually the default path (suggested path), but why the suggested path uses C: if I'm on OS X? May be something is not properly configured?
Could you please disable all custom/downloaded plugins and check if the issue persists?
```
2023-06-27 16:16:06,487 [ 334] INFO - #c.i.i.p.PluginManager - Loaded custom plugins: GitHub Primer Dark Color Scheme (0.5), Copilot Dark Theme (1.0.2), JetClient - The Ultimate REST Client (2023.1.12-231), HTML Entity (1.2), Darcula Solid Theme (1.0.3), CodeGPT (2.0.3), TranslateMe (1.0.0.8), Night Owl Theme (1.1), GitHub 3 Color Scheme (1.2.1), GitHub Copilot (1.2.9.2684), Key Promoter X (2023.1.0), One Dark Native (1.5), Foundation Theme (1.4), ASJ Dark Color Scheme (0.22)
```
You can disable custom plugins either manually or by starting the IDE with `disableNonBundledPlugins` option from the terminal.
[How to start IDE from the terminal](https://intellij-support.jetbrains.com/hc/en-us/articles/360011901879-How-to-start-IDE-from-the-command-line)
If no plugins enabled, there is not "Get from VCS" button on initial screen. Only enable Git plugin, we get Get from VCS" button on initial screen but then "C:" appears in the past. Could you let me know which are the bundled plugins? Is there a place where I can find the list of bundled plugins?
Thanks for your help.
Git is a bundled plugin, it should not appear in the list of custom plugins. You may have some issues with plugins, so try deleting/renaming the plugins directory (this will remove all custom plugins and reset all plugin settings to default) and try again.
If the issue persists, try reinstalling PyCharm.
I found the problem. There is a file vis-inputs.xml in options directory, in my case contains:
<application>
<component name="GitRememberedInputs">
<option name="visitedUrls">
<list>
<UrlAndUserName>
<option name="url" value="https://xxxxxx.com/xxxxx" />
<option name="userName" value="" />
</UrlAndUserName>
</list>
</option>
<option name="cloneParentDir" value="C:\Users\xxxxxxx\PycharmProjects" />
</component>
</application>
I removed lines:
</option>
<option name="cloneParentDir" value="C:\Users\xxxxxxx\PycharmProjects" />
and everything start working correctly.
I do not have any Idea of what wrote that.