My English is not good, in order to prevent the content of the machine translation is not accurate, I use the BlockQuoto to retain the simplified Chinese original, do not understand the place please translate according to the original, if you still do not understand please reply to my content
我的英文不好,为了防止机器翻译的内容不准确,我使用BlockQuoto保留了简体中文的原文,有不理解的地方请您根据原文自行翻译一下,如果还是不懂请回复我的内容
I fixed the space where I had the problem. I don’t know if it is effective for you. First of all, it is clear that exporting JSON content and re-importing other spaces can fix this problem. However, there will be problems such as the relationship being locked, so I recommend you to use the following method to restore the original space.
我对我出现问题的空间进行了修复,这不知道对你是否有效,首先可以明确的一点是导出JSON内容再重新导入其他空间是可以修复这个问题的。但是会出现关系被锁定之类的问题,所以我推荐你使用以下方法在原空间上恢复。
- First export a full space content in Protufo format as a backup
首先导出一份Protufo格式的全部空间内容作为备份
- First, use the JSON format to export all the contents of the space and extract the zip file.
首先使用JSON格式导出空间全部内容,并解压zip文件
- Find the uniform characteristics of all problem objects
找到所有问题对象的统一特征
Use the editor (VSCode or other) to globally search for the ‘sourceFilePath’ text and find the unified ID you imported, for example, mine is the file path.Finaunce1\\pages\\\
使用编辑器(VSCode或者其他)全局搜索sourceFilePath
文本,找到你导入的统一标识,例如我的是文件路径Finaunce1\\pages\\\
- **Retrieve the file names of all problematic files, and the file name is also the ID of the problematic object **
检索出所有有问题的文件的文件名称,文件的名称也是问题对象的ID
Using the advanced search tool of the Everything software, search for all text contents containing unified identification under the decompression folder, and wait for the search to be completed, select all files, copy all file paths and paste them into the editor, and remove the previous path and the back’. pb.json’, so you can get all the object ids with problems.
使用Everything软件的高级搜索工具,搜索解压文件夹下,所有包含统一标识的文本内容,并等待搜索完成后,全选文件,复制全部文件路径粘贴到编辑器中,将前面的路径以及后面的.pb.json
去掉,这样你就得出了所有存在问题的对象id。
- **Create some objects to prepare for the next deletion **
创建一些对象,为下一步删除做准备
Open the problematic space, create a collection, and create a new object. In the collection of creation, copy the object repeatedly until the number is more than 30 (remember not to rename each copied object, keep its name consistent, preferably unique in the entire space).
打开有问题的空间,创建一个collection,并新建一个对象,在创建的collection中,反复复制这个对象直到数量差不多有30多个(记得不要重新命名每个复制的对象,让他的名字保持一致,最好是在整个空间中唯一的)。
- Move the object you just created to Bin
将刚刚创建的对象Move to Bin
Batch select all objects in the collection and move to bin. Then we go to Bin and select these new objects (if Bin is also contaminated by the wrong object, he will not load the content back, at this time we can find out the newly deleted content by searching the object name in the upper right corner)
将collection中的所有对象批量选择,并move to bin。然后我们转到Bin中,选择这些新建的对象(如果Bin也被错误的对象污染了,他就不回加载出内容,这时候我们可以通过右上角搜索对象名字找出刚刚删除的内容)
- After replacing content through developer tools, ** don’t click delete first! **.
通过开发者工具替换内容后,先别点击删除!。
Select the content you just deleted in All
在全部选择刚刚删除的内容
Let’s go to developer tools. Click the Sources tab above. Find the following location’/anytype/src/ts/lib/api/command.ts’ in turn, search’ ObjectListDelete’, click the line below, and type Debug (a blue arrow will appear after clicking)
我们进入到开发者工具。点击上方Sources选项卡。依次找到如下位置/anytype/src/ts/lib/api/command.ts
,搜索ObjectListDelete
,点击下面的一行,打个Debug(点击后会出现蓝色箭头)
Then we click the delete button
然后我们点击删除按钮
At this time, we will enter Debug. We mainly find the ids on the right and expand it.
这时候会进入Debug,我们主要找到右侧的ids这个内容,展开它。
The content is the ID of the object we just selected. We double-click the content in each id and replace them with the problematic id sorted out in step 4 (remember to manually add’ "'before and after the replaced id)
其中内容是刚刚我们选中的对象的ID,我们双击每一个id中的内容,并将他们替换为我们第4步整理的存在问题的id(记得在替换的id前后手动添加”
)

When all the contents in the ids list have been replaced (if there is still content, we can repeat step 7), we click any arrow icon in the picture.
当ids列表中的内容都被替换完成以后(如果还有内容我们重复第7步骤就可以了),我们点击图片中的任意一个箭头图标
OK, we deleted some wrong objects. At this time, you will find that the contents just selected in the page have not been deleted. We can reuse them until we finish deleting the wrong objects.
好的,我们删除了一些错误的对象,这时候你会发现刚刚在页面中选中的内容并没有被删除,我们可以重复利用他们,直到完成我们的错误的对象的删除工作。
- Verify that the affected Type is back to normal, Cheers!
验证受影响的Type是否恢复正常,Cheers!