spacetime dev - Improve error when module directory does not exist#4467
Merged
clockwork-labs-bot merged 3 commits intomasterfrom Feb 26, 2026
Merged
spacetime dev - Improve error when module directory does not exist#4467clockwork-labs-bot merged 3 commits intomasterfrom
spacetime dev - Improve error when module directory does not exist#4467clockwork-labs-bot merged 3 commits intomasterfrom
Conversation
When spacetime dev (or publish) can't find the module directory, the error was: Could not detect the language of the module. Are you in a SpacetimeDB project directory? Now shows the actual path that's missing: Module directory does not exist: '<path>'. Check your --module-path flag or the module-path setting in spacetime.json.
bfops
previously approved these changes
Feb 26, 2026
Collaborator
bfops
left a comment
There was a problem hiding this comment.
Works for me:
➜ spacetime dev --server local zeke-test
✓ Using configuration from /home/work/zeke-test/./spacetime.json, /home/work/zeke-test/./spacetime.local.json
Starting development mode...
Database: zeke-test
Watching for changes in: /home/work/zeke-test/././spacetimedb-missing
Client command: cargo run
Press Ctrl+C to stop
Building...
Error: Failed to build project
Caused by:
Module directory does not exist: '/home/work/zeke-test/././spacetimedb-missing'. Check your --module-path flag or the module-path setting in spacetime.json.
spacetime dev - Improve error when module directory does not exist
dismissing my review because I'm waiting for another approval and I don't want the bot merging this prematurely
jdetter
approved these changes
Feb 26, 2026
Collaborator
jdetter
left a comment
There was a problem hiding this comment.
Tested, working:
boppy@geralt:~/clockwork/tmp/my-spacetime-app$ spacetime publish --module-path ./dir
Using configuration from /home/boppy/clockwork/tmp/my-spacetime-app/spacetime.json
Using configuration from /home/boppy/clockwork/tmp/my-spacetime-app/spacetime.local.json
Publishing module dir to database 'my-spacetime-app-ebp67'
Error: Project path does not exist: dir
boppy@geralt:~/clockwork/tmp/my-spacetime-app$ spacetime dev
✓ Using configuration from /home/boppy/clockwork/tmp/my-spacetime-app/./spacetime.json, /home/boppy/clockwork/tmp/my-spacetime-app/./spacetime.local.json
Starting development mode...
Database: my-spacetime-app-ebp67
Watching for changes in: /home/boppy/clockwork/tmp/my-spacetime-app/././spacetimedb2
Client command: pnpm run dev
Press Ctrl+C to stop
Building...
Error: Failed to build project
Caused by:
Module directory does not exist: '/home/boppy/clockwork/tmp/my-spacetime-app/././spacetimedb2'. Check your --module-path flag or the module-path setting in spacetime.json.
cloutiertyler
approved these changes
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When
spacetime dev(orpublish) cannot find the module directory, the error was:This is confusing because the real problem is the directory does not exist, not that the language cannot be detected.
Now shows:
Related to #4443.