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
assertsource_file.endswith(_get_files.c_family_source_extensions), f"Source file candidate, {source_file}, seems to be wrong.\nSelected from {compile_action.arguments}.\nPlease file an issue with this information!"
594
616
595
617
# Warn gently about missing files
596
-
ifnotos.path.isfile(source_file):
597
-
ifnot_get_files.has_logged_missing_file_error: # Just log once; subsequent messages wouldn't add anything.
598
-
_get_files.has_logged_missing_file_error=True
599
-
log_warning(f""">>> A source file you compile doesn't (yet) exist: {source_file}
600
-
It's probably a generated file, and you haven't yet run a build to generate it.
601
-
That's OK; your code doesn't even have to compile for this tool to work.
602
-
If you can, though, you might want to run a build of your code.
603
-
That way everything is generated, browsable and indexed for autocomplete.
604
-
However, if you have *already* built your code, and generated the missing file...
605
-
Please make sure you're supplying this tool with the same flags you use to build.
606
-
You can either use a refresh_compile_commands rule or the special -- syntax. Please see the README.
607
-
[Supplying flags normally won't work. That just causes this tool to be built with those flags.]
608
-
Continuing gracefully...""")
618
+
if_warn_if_file_doesnt_exist(source_file):
609
619
return {source_file}, set()
610
620
611
621
# Note: We need to apply commands to headers and sources.
0 commit comments