Skip not found files in request_parsed_files with a warning

Instead of raising an error
This commit is contained in:
Michael Panchenko committed 2025-06-24 15:05:42 +02:00
1 parent 458f218c12
commit edc5112fea
1 file changed
+8 -2
+8 -2
View File
@@ -1172,8 +1172,14 @@ class SolidLanguageServer(ABC):
dirs[:] = [d for d in dirs if not self.is_ignored_path(os.path.join(root, d))]
for file in files:
rel_file_path = os.path.relpath(os.path.join(root, file), start=self.repository_root_path)
if not self.is_ignored_path(rel_file_path):
rel_file_paths.append(rel_file_path)
try:
if not self.is_ignored_path(rel_file_path):
rel_file_paths.append(rel_file_path)
except FileNotFoundError:
self.logger.log(
f"File {rel_file_path} not found (possibly due it being a symlink), skipping it in request_parsed_files",
logging.WARNING,
)
return rel_file_paths
def search_files_for_pattern(