Pulse Works Studio

Parse Error: Identifier "PoolStringArray" not declared in the current scope. Did you mean to use "PackedStringArray"?

Pool arrays were renamed to packed arrays. PoolStringArray is PackedStringArray.

Cause

Godot 4 replaced every Pool*Array type with a Packed*Array. The parser only reports the missing name; the hint comes from the built-in type rename table. The same change applies to PoolVector2Array, PoolIntArray, and the rest.

Fix

func tags_of(lines: PackedStringArray) -> PackedStringArray:
	var tags: PackedStringArray = []
	for line in lines:
		if line.begins_with("#"):
			tags.append(line)
	return tags

Related

Godot Dev Tools is a Pulse Works Studio project. All error explainers.