Repository: godot
Issue: ClassDB errors and extreme editor lag.
Labels: bug,topic:gdscript,topic:editor

**Godot version:**
3.2 RC1

**OS/device including version:**
Win10 64-bit

**Issue description:**

Was editing a script in Sublime, and returned to the Godot script editor.  It had some syntax errors, but the console also put out a lot of errors about ClassDB and became incredibly laggy to use.  Had to restart the editor as it didn't resolve.

```
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Another resource is loaded from path 'res://monsters/monster_animation.gd' (possible cyclic resource inclusion).
   At: core\resource.cpp:81:Resource::set_path() - Condition ' exists ' is true.
**SCRIPT ERROR**: Parse Error: Indented block expected.
   At: res://monsters/monster_animation.gd:10:GDScript::reload() - Parse Error: Indented block expected.
**ERROR**: Method/Function Failed, returning: ERR_PARSE_ERROR
   At: modules\gdscript\gdscript.cpp:576:GDScript::reload() - Method/Function Failed, returning: ERR_PARSE_ERROR
**SCRIPT ERROR**: Parse Error: Indented block expected.
   At: res://monsters/monster_animation.gd:10:GDScript::reload() - Parse Error: Indented block expected.
**ERROR**: Method/Function Failed, returning: ERR_PARSE_ERROR
   At: modules\gdscript\gdscript.cpp:576:GDScript::reload() - Method/Function Failed, returning: ERR_PARSE_ERROR
**ERROR**: Another resource is loaded from path 'res://monsters/monster_animation.gd' (possible cyclic resource inclusion).
   At: core\resource.cpp:81:Resource::set_path() - Condition ' exists ' is true.
**SCRIPT ERROR**: Parse Error: Indented block expected.
   At: res://monsters/monster_animation.gd:10:GDScript::reload() - Parse Error: Indented block expected.
**ERROR**: Method/Function Failed, returning: ERR_PARSE_ERROR
   At: modules\gdscript\gdscript.cpp:576:GDScript::reload() - Method/Function Failed, returning: ERR_PARSE_ERROR
**SCRIPT ERROR**: Parse Error: Indented block expected.
   At: res://monsters/monster_animation.gd:10:GDScript::reload() - Parse Error: Indented block expected.
**ERROR**: Method/Function Failed, returning: ERR_PARSE_ERROR
   At: modules\gdscript\gdscript.cpp:576:GDScript::reload() - Method/Function Failed, returning: ERR_PARSE_ERROR
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**ERROR**: Cannot get class '_'.
   At: core\class_db.cpp:343:ClassDB::get_parent_class() - Condition ' !ti ' is true. returned: StringName()
**SCRIPT ERROR**: Parse Error: Script isn't fully loaded (cyclic preload?): res://monsters/monster_animation.gd
```




**Steps to reproduce:**

This is my first hours working with RC1, so it is unclear yet how to reproduce.  I have a conditional break point set, hopefully it can catch it if it happens again.

**Minimal reproduction project:**
N/A as of yet.