Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot attach project in DataSpell

On the welcome screen of DataSpell I chose to open a project with Get from Version Control to get a project from GitHub, although in the left pane I didn't choose GitHub, so it created an empty .git repository.

After that, I git cloned elsewhere the git repository or tried to clone it correctly from GitHub but in every occasion I get

Error
Cannot attach project Module name 'project name' already exists. 
Trying to load module: /path/to/project name.iml

Where does DataSpell save the imported projects, to detach the empty project that I imported initially?

like image 868
exch_cmmnt_memb Avatar asked Oct 16 '25 21:10

exch_cmmnt_memb


2 Answers

This has been happening to me more frequently in DataSpell 2022.3 on my M1 Apple machines. To solve the issue, I did the following:

  • Settings > Project: [Project Name] > Project Structure.

  • Click + Add Content Root and select the root folder of your project.

  • Press Apply or OK

You should now see your project folder in the Files section of the Workspace.

like image 54
oil_lamp Avatar answered Oct 19 '25 10:10

oil_lamp


File --> Invalidate caches... --> INVALIDATE AND RESTART worked for me (with no options selected for the final step).

like image 30
Attila the Fun Avatar answered Oct 19 '25 10:10

Attila the Fun



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!