DataSpell is stuck when I open a project that has workspace.xml created by PyCharm
I open a project created with PyCharm Professional using DataSpell.
First, the project can be opened in non-fullscreen. Then, expand the window to full-screen. Exit DataSpell and restart it. Just after I opened the project from the rescent project list, DataSpell is stuck as follows:
By removing `.idea/workspace.xml`, I can open the project in full-screen. Therefore, a workspace.xml created by PyCharm Professional sometimes breaks DataSpell.
I attach the workspace.xml
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="SELECTIVE" />
</component>
<component name="ChangeListManager">
<list default="true" id="15830715-d9ba-43d2-a1f5-0c7139fb3e5b" name="変更" comment="Remove deterministic option" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES">
<list>
<option value="Python Script" />
</list>
</option>
</component>
<component name="FormatOnSaveOptions">
<option name="myRunOnSave" value="true" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="OptimizeOnSaveOptions">
<option name="myRunOnSave" value="true" />
</component>
<component name="ProjectId" id="2OdQDlWYZRnyzdZ79sJSpJsypqk" />
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">{
"keyToString": {
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"SHARE_PROJECT_CONFIGURATION_FILES": "true",
"WebServerToolWindowFactoryState": "false",
"git-widget-placeholder": "main",
"last_opened_file_path": "/Users/ishotihadus/Documents/実装/xxx",
"node.js.detected.package.eslint": "true",
"node.js.detected.package.tslint": "true",
"node.js.selected.package.eslint": "(autodetect)",
"node.js.selected.package.tslint": "(autodetect)",
"settings.editor.selected.configurable": "settings.sync",
"vue.rearranger.settings.migration": "true"
}
}</component>
<component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS">
<recent name="$PROJECT_DIR$" />
</key>
</component>
<component name="RunManager">
<configuration default="true" type="PythonConfigurationType" factoryName="Python">
<module name="xxx" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="SCRIPT_NAME" value="" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="true" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
<configuration name="xxx" type="PythonConfigurationType" factoryName="Python">
<module name="xxx" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="PARENT_ENVS" value="true" />
<envs>
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/main.py" />
<option name="PARAMETERS" value="" />
<option name="SHOW_COMMAND_LINE" value="true" />
<option name="EMULATE_TERMINAL" value="false" />
<option name="MODULE_MODE" value="false" />
<option name="REDIRECT_INPUT" value="false" />
<option name="INPUT_FILE" value="" />
<method v="2" />
</configuration>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="アプリケーションレベル" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="デフォルトタスク">
<changelist id="15830715-d9ba-43d2-a1f5-0c7139fb3e5b" name="変更" comment="" />
<created>1681887861124</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1681887861124</updated>
<workItem from="1681887866138" duration="9333000" />
<workItem from="1682474793944" duration="563000" />
<workItem from="1682475367822" duration="282000" />
<workItem from="1682475667040" duration="3000" />
<workItem from="1682475682375" duration="28810000" />
<workItem from="1682587136476" duration="26818000" />
<workItem from="1683622249121" duration="3045000" />
<workItem from="1683626937396" duration="128000" />
</task>
<task id="LOCAL-00001" summary="Initialize">
<created>1681894486660</created>
<option name="number" value="00001" />
<option name="presentableId" value="LOCAL-00001" />
<option name="project" value="LOCAL" />
<updated>1681894486660</updated>
</task>
<task id="LOCAL-00002" summary="Add .gitignore">
<created>1681894512901</created>
<option name="number" value="00002" />
<option name="presentableId" value="LOCAL-00002" />
<option name="project" value="LOCAL" />
<updated>1681894512901</updated>
</task>
<task id="LOCAL-00003" summary="Add model">
<created>1681894519457</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1681894519457</updated>
</task>
<task id="LOCAL-00004" summary="Update README">
<created>1681894643625</created>
<option name="number" value="00004" />
<option name="presentableId" value="LOCAL-00004" />
<option name="project" value="LOCAL" />
<updated>1681894643625</updated>
</task>
<task id="LOCAL-00005" summary="Fix compatibility to original implementation">
<created>1681897695685</created>
<option name="number" value="00005" />
<option name="presentableId" value="LOCAL-00005" />
<option name="project" value="LOCAL" />
<updated>1681897695685</updated>
</task>
<task id="LOCAL-00006" summary="Implement inference">
<created>1681897705551</created>
<option name="number" value="00006" />
<option name="presentableId" value="LOCAL-00006" />
<option name="project" value="LOCAL" />
<updated>1681897705551</updated>
</task>
<task id="LOCAL-00007" summary="Implement inference">
<created>1682493363491</created>
<option name="number" value="00007" />
<option name="presentableId" value="LOCAL-00007" />
<option name="project" value="LOCAL" />
<updated>1682493363491</updated>
</task>
<task id="LOCAL-00008" summary="Introduce pytorch_lightning">
<created>1682575001279</created>
<option name="number" value="00008" />
<option name="presentableId" value="LOCAL-00008" />
<option name="project" value="LOCAL" />
<updated>1682575001279</updated>
</task>
<task id="LOCAL-00009" summary="Refactor">
<created>1682581728649</created>
<option name="number" value="00009" />
<option name="presentableId" value="LOCAL-00009" />
<option name="project" value="LOCAL" />
<updated>1682581728649</updated>
</task>
<task id="LOCAL-00010" summary="Refactor data handling">
<created>1682587488037</created>
<option name="number" value="00010" />
<option name="presentableId" value="LOCAL-00010" />
<option name="project" value="LOCAL" />
<updated>1682587488037</updated>
</task>
<task id="LOCAL-00011" summary="Implement training">
<created>1682669251862</created>
<option name="number" value="00011" />
<option name="presentableId" value="LOCAL-00011" />
<option name="project" value="LOCAL" />
<updated>1682669251862</updated>
</task>
<task id="LOCAL-00012" summary="Remove git LFS">
<created>1682669283787</created>
<option name="number" value="00012" />
<option name="presentableId" value="LOCAL-00012" />
<option name="project" value="LOCAL" />
<updated>1682669283787</updated>
</task>
<task id="LOCAL-00013" summary="Refactor config">
<created>1682669364172</created>
<option name="number" value="00013" />
<option name="presentableId" value="LOCAL-00013" />
<option name="project" value="LOCAL" />
<updated>1682669364172</updated>
</task>
<task id="LOCAL-00014" summary="Update">
<created>1683625723933</created>
<option name="number" value="00014" />
<option name="presentableId" value="LOCAL-00014" />
<option name="project" value="LOCAL" />
<updated>1683625723933</updated>
</task>
<task id="LOCAL-00015" summary="Remove all device configs">
<created>1683626437424</created>
<option name="number" value="00015" />
<option name="presentableId" value="LOCAL-00015" />
<option name="project" value="LOCAL" />
<updated>1683626437424</updated>
</task>
<task id="LOCAL-00016" summary="Add venv to .gitignore">
<created>1683626575286</created>
<option name="number" value="00016" />
<option name="presentableId" value="LOCAL-00016" />
<option name="project" value="LOCAL" />
<updated>1683626575286</updated>
</task>
<task id="LOCAL-00017" summary="Fix .idea">
<created>1683626976221</created>
<option name="number" value="00017" />
<option name="presentableId" value="LOCAL-00017" />
<option name="project" value="LOCAL" />
<updated>1683626976221</updated>
</task>
<task id="LOCAL-00018" summary="Remove deterministic option">
<created>1683626982247</created>
<option name="number" value="00018" />
<option name="presentableId" value="LOCAL-00018" />
<option name="project" value="LOCAL" />
<updated>1683626982247</updated>
</task>
<option name="localTasksCounter" value="19" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
<component name="Vcs.Log.Tabs.Properties">
<option name="TAB_STATES">
<map>
<entry key="MAIN">
<value>
<State />
</value>
</entry>
</map>
</option>
</component>
<component name="VcsManagerConfiguration">
<MESSAGE value="Initialize" />
<MESSAGE value="Add .gitignore" />
<MESSAGE value="Add model" />
<MESSAGE value="Update README" />
<MESSAGE value="Fix compatibility to original implementation" />
<MESSAGE value="Implement inference" />
<MESSAGE value="Introduce pytorch_lightning" />
<MESSAGE value="Refactor" />
<MESSAGE value="Refactor data handling" />
<MESSAGE value="Implement training" />
<MESSAGE value="Remove git LFS" />
<MESSAGE value="Refactor config" />
<MESSAGE value="Update" />
<MESSAGE value="Remove all device configs" />
<MESSAGE value="Add venv to .gitignore" />
<MESSAGE value="Fix .idea" />
<MESSAGE value="Remove deterministic option" />
<option name="LAST_COMMIT_MESSAGE" value="Remove deterministic option" />
</component>
<component name="XDebuggerManager">
<breakpoint-manager>
<default-breakpoints>
<breakpoint type="python-exception">
<properties notifyOnTerminate="true" exception="BaseException">
<option name="notifyOnTerminate" value="true" />
</properties>
</breakpoint>
</default-breakpoints>
</breakpoint-manager>
</component>
</project>
Additionary, I found that the project is created with PyCharm Professional that has New UI, but DataSpell is set as Default UI. If I switch DataSpell's UI to New UI, I can open the project.
Please sign in to leave a comment.
To resolve your issue, you can try the following steps:
1- Close DataSpell if it's currently running.
2- Locate the project directory and navigate to the .idea folder within the project.
3- Delete the workspace.xml file.
4- Open DataSpell and try opening the project again.
By removing the workspace.xml file, DataSpell will generate a new one when you open the project. This should hopefully resolve the issue you're facing.