You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix: YAML parse errors silently discard pnpm workspace and produce missing-catalog warnings #342
A leading tab on a comment in pnpm-workspace.yaml causes the workspace file to be silently discarded, even though the catalog definition is still present.
This reproduction creates a temporary directory and writes an actual tab before the comment:
Comment indentation should not produce a misleading missing-catalog warning. If the YAML parser rejects the file, Syncpack should report the parsing error with the filename and exit unsuccessfully, instead of proceeding as though the workspace file were absent.
Actual behavior
With the tab-indented comment:
The workspace YAML is not loaded, so its catalog definitions and workspace package patterns are unavailable.
The webpack consumer is reported as DependsOnMissingCatalogDefinition, although catalogs.tooling.webpack is defined in the file.
No YAML parsing error is reported, and lint exits with status 0.
Replacing the tab with four spaces loads the workspace and resolves the catalog successfully.
@JamieMason I opened #343. I think errors from from_workspace should propagate and stop execution, so Syncpack reports the parsing error instead of continuing without the workspace configuration.
Activity
JamieMason commentedon Oct 2, 2026
Thanks a lot for the detail @gigitux, I will take a look.
gigitux commentedon Oct 2, 2026
@JamieMason I wonder if the issue is inside the parser logic and not related to the syncpack codebase.
EDIT: It looks like that it's related to synpack codebase. I can take a look in the next days.
gigitux commentedon Oct 3, 2026
@JamieMason I opened #343. I think errors from
from_workspaceshould propagate and stop execution, so Syncpack reports the parsing error instead of continuing without the workspace configuration.