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
"Reference '{}/{}' goes through use path \"{}\", which does not resolve to a file in the check set or on disk.",
6053
+
r.qualifier, r.name, path
6054
+
),
6055
+
)
6056
+
.with_code("allium.reference.unresolvedImport"),
6057
+
);
6012
6058
}elseifletSome(offered) = self
6013
6059
.imported_referenced_triggers
6014
6060
.and_then(|m| m.get(r.qualifier))
@@ -7597,6 +7643,7 @@ mod tests {
7597
7643
&AmbiguousImports::default(),
7598
7644
&ReverseContributions::default(),
7599
7645
&HashMap::new(),
7646
+
&HashSet::new(),
7600
7647
)
7601
7648
}
7602
7649
@@ -7646,6 +7693,7 @@ mod tests {
7646
7693
&ambiguous,
7647
7694
&ReverseContributions::default(),
7648
7695
&HashMap::new(),
7696
+
&HashSet::new(),
7649
7697
)
7650
7698
}
7651
7699
@@ -8228,7 +8276,7 @@ surface AccountManagement {
8228
8276
let input = format!("-- allium: 3\n{src}");
8229
8277
let result = parse(&input);
8230
8278
let resolved:HashSet<String> = ["./core.allium".to_string()].into_iter().collect();
8231
-
let ds = analyze_with_cross_module(&result.module,&input,&HashSet::new(),&resolved,&HashMap::new(),&HashMap::new(),&AmbiguousImports::default(),&ReverseContributions::default(),&HashMap::new());
8279
+
let ds = analyze_with_cross_module(&result.module,&input,&HashSet::new(),&resolved,&HashMap::new(),&HashMap::new(),&AmbiguousImports::default(),&ReverseContributions::default(),&HashMap::new(),&HashSet::new());
// Only "./other.allium" is resolved — "./missing.allium" is not.
8241
8289
let resolved:HashSet<String> = ["./other.allium".to_string()].into_iter().collect();
8242
-
let ds = analyze_with_cross_module(&result.module,&input,&HashSet::new(),&resolved,&HashMap::new(),&HashMap::new(),&AmbiguousImports::default(),&ReverseContributions::default(),&HashMap::new());
8290
+
let ds = analyze_with_cross_module(&result.module,&input,&HashSet::new(),&resolved,&HashMap::new(),&HashMap::new(),&AmbiguousImports::default(),&ReverseContributions::default(),&HashMap::new(),&HashSet::new());
let src = "use \"./missing.allium\" as missing\n\nentity Handler {\n x: String\n}\n";
8261
8309
let input = format!("-- allium: 3\n{src}");
8262
8310
let result = parse(&input);
8263
-
let ds = analyze_with_cross_module(&result.module,&input,&HashSet::new(),&HashSet::new(),&HashMap::new(),&HashMap::new(),&AmbiguousImports::default(),&ReverseContributions::default(),&HashMap::new());
8311
+
let ds = analyze_with_cross_module(&result.module,&input,&HashSet::new(),&HashSet::new(),&HashMap::new(),&HashMap::new(),&AmbiguousImports::default(),&ReverseContributions::default(),&HashMap::new(),&HashSet::new());
let resolved:HashSet<String> = ["./other.allium".to_string()].into_iter().collect();
8273
-
let ds = analyze_with_cross_module(&result.module,&input,&HashSet::new(),&resolved,&HashMap::new(),&HashMap::new(),&AmbiguousImports::default(),&ReverseContributions::default(),&HashMap::new());
8321
+
let ds = analyze_with_cross_module(&result.module,&input,&HashSet::new(),&resolved,&HashMap::new(),&HashMap::new(),&AmbiguousImports::default(),&ReverseContributions::default(),&HashMap::new(),&HashSet::new());
8274
8322
let diag = ds.iter().find(|d| d.code == Some("allium.use.unresolvedPath")).unwrap();
8275
8323
assert!(diag.message.contains("nowhere.allium"),"message should name the path: {}", diag.message);
8276
8324
}
@@ -8281,7 +8329,7 @@ surface AccountManagement {
8281
8329
let input = format!("-- allium: 3\n{src}");
8282
8330
let result = parse(&input);
8283
8331
let resolved:HashSet<String> = ["./other.allium".to_string()].into_iter().collect();
8284
-
let ds = analyze_with_cross_module(&result.module,&input,&HashSet::new(),&resolved,&HashMap::new(),&HashMap::new(),&AmbiguousImports::default(),&ReverseContributions::default(),&HashMap::new());
8332
+
let ds = analyze_with_cross_module(&result.module,&input,&HashSet::new(),&resolved,&HashMap::new(),&HashMap::new(),&AmbiguousImports::default(),&ReverseContributions::default(),&HashMap::new(),&HashSet::new());
let resolved:HashSet<String> = ["./found.allium".to_string()].into_iter().collect();
8294
-
let ds = analyze_with_cross_module(&result.module,&input,&HashSet::new(),&resolved,&HashMap::new(),&HashMap::new(),&AmbiguousImports::default(),&ReverseContributions::default(),&HashMap::new());
8342
+
let ds = analyze_with_cross_module(&result.module,&input,&HashSet::new(),&resolved,&HashMap::new(),&HashMap::new(),&AmbiguousImports::default(),&ReverseContributions::default(),&HashMap::new(),&HashSet::new());
0 commit comments