Repro:
- Open in vscode and compile (probably some display/diagnostic requests are automatically sent), observe that only the first compilation shows missing field error (expected), the following compilations succeed and result in runtime null access.
class Foo {
}
class Main {
static function main() {
Foo.bar();
}
}
Bisect point to 0700869 from #12809 from #12797
Remove && Common.is_compilation com fix it, but I'm not sure if it's the good fix
|
let handle_display_after_typing com tctx display_file_dot_path = |
|
if com.display.dms_kind = DMNone && com.part_scope.has_error && Common.is_compilation com then |
|
true |
|
else begin |
Repro:
Bisect point to 0700869 from #12809 from #12797
Remove
&& Common.is_compilation comfix it, but I'm not sure if it's the good fixhaxe/src/compiler/displayProcessing.ml
Lines 192 to 195 in 5f83789