简体   繁体   中英

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?

I managed to open the project following the instructions of Open your project from disk section of the DataSpell site.

For avoiding further trouble, I opened the project in a new window. After the configuration in step 2 Reopen projects on startup --> Ask , Dataspell will ask how to open the project.

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM