Skip to content

Commit 22579aa

Browse files
authored
[Tree-Sitter] cannot read properties of undefined (#2194)
* refactor: drop discovered file debug log * refactor: robustify against tree-sitter-r grammar failures * refactor: further robustify tree-sitter parsing
1 parent d950b6b commit 22579aa

File tree

2 files changed

+486
-454
lines changed

2 files changed

+486
-454
lines changed

src/project/plugins/project-discovery/flowr-analyzer-project-discovery-plugin.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ class DefaultFlowrAnalyzerProjectDiscoveryPlugin extends FlowrAnalyzerProjectDis
7070
const requests: (RParseRequest | FlowrFile<string>)[] = [];
7171
/* the dummy approach of collecting all files, group R and Rmd files, and be done with it */
7272
for(const file of getAllFilesSync(args.content, /.*/, this.ignorePathsRegex)) {
73-
console.log(`Discovered file: ${file}`);
7473
const relativePath = path.relative(args.content, file);
7574
if(this.supportedExtensions.test(relativePath) && (!this.onlyTraversePaths || this.onlyTraversePaths.test(relativePath)) && !this.excludePathsRegex.test(platformDirname(relativePath))) {
7675
requests.push({ content: file, request: 'file' });

0 commit comments

Comments
 (0)