Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileTree: List of valid files in error message is always empty #1185

Open
mootari opened this issue Mar 11, 2025 · 0 comments
Open

FileTree: List of valid files in error message is always empty #1185

mootari opened this issue Mar 11, 2025 · 0 comments

Comments

@mootari
Copy link

mootari commented Mar 11, 2025

In https://svelte.dev/tutorial/svelte/universal-reactivity, when you add or rename a file with a name other than shared.svelte.js the following error message is displayed:

Image

The missing file list in the message is sourced from workspace.exercise.editing_constraints which are commonly empty (only one tutorial defines them in its frontmatter).

The constraint is instead enforced via the file list in the solution store:

add: async (name, type) => {
const expected = $solution[name];

I suspect the right approach here might be to list only those entries that are present in solution but missing in workspace.files (and vice versa for rename and remove), to prevent the list from getting excessively long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant