Skip to content

Commit 6eb42e7

Browse files
committed
Fix crash when working with projects without CompileSteps
Reported by sooriya @ thuvasooriya
1 parent a954c0b commit 6eb42e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/DocumentStore.zig

+1
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ pub const Handle = struct {
663663
root_id_msg: {
664664
const config = build_file.tryLockConfig() orelse break :root_id_msg;
665665
defer build_file.unlockConfig();
666+
if (config.roots.len == 0) return;
666667

667668
const message = std.fmt.allocPrint(
668669
ds.allocator,

0 commit comments

Comments
 (0)