diff --git a/aider/website/assets/audio/tree-sitter-language-pack/01-45.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/01-45.mp3 index 0e13f2a13..12171999d 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/01-45.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/01-45.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/02-05.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/02-05.mp3 index e6334d1d2..073e5253a 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/02-05.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/02-05.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/04-19.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/04-19.mp3 index 72d46d5f5..225844442 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/04-19.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/04-19.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/05-02.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/05-02.mp3 index b34ba4bdb..674b9f1d2 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/05-02.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/05-02.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/05-55.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/05-55.mp3 index b555305a9..d304a6aba 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/05-55.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/05-55.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/06-12.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/06-12.mp3 index eb513f923..977347c9b 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/06-12.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/06-12.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/09-02.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/09-02.mp3 index cad9f0fd3..882ad92ed 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/09-02.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/09-02.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/09-45.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/09-45.mp3 index 5ab4f3d1e..a932d475f 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/09-45.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/09-45.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/10-15.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/10-15.mp3 index c1063cd69..1b09a4c65 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/10-15.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/10-15.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/11-15.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/11-15.mp3 index 2258bc317..70a82b8f2 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/11-15.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/11-15.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/13-00.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/13-00.mp3 index 37810017e..10ab3895d 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/13-00.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/13-00.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/16-07.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/16-07.mp3 index 318e6676c..e66fcffcf 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/16-07.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/16-07.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/16-16.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/16-16.mp3 index 46c523cf9..430adead8 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/16-16.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/16-16.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/16-33.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/16-33.mp3 index 577e594d2..0a3abb2aa 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/16-33.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/16-33.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/17-01.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/17-01.mp3 index c481db59e..88aec8d6b 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/17-01.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/17-01.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/17-12.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/17-12.mp3 index cef57990d..a45e86f93 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/17-12.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/17-12.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/19-28.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/19-28.mp3 index cdc250d3d..ac4368128 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/19-28.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/19-28.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/20-20.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/20-20.mp3 new file mode 100644 index 000000000..9fcdfbf76 Binary files /dev/null and b/aider/website/assets/audio/tree-sitter-language-pack/20-20.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/20-50.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/20-50.mp3 new file mode 100644 index 000000000..e8442e10a Binary files /dev/null and b/aider/website/assets/audio/tree-sitter-language-pack/20-50.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/26-55.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/26-55.mp3 new file mode 100644 index 000000000..004daa8eb Binary files /dev/null and b/aider/website/assets/audio/tree-sitter-language-pack/26-55.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/27-00.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/27-00.mp3 deleted file mode 100644 index 739df6469..000000000 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/27-00.mp3 and /dev/null differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/27-19.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/27-19.mp3 index 6295746c7..1d0acac46 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/27-19.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/27-19.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/27-50.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/27-50.mp3 index 51b0755dc..a4e353f22 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/27-50.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/27-50.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/28-12.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/28-12.mp3 index 42a6bd016..ef3fa8435 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/28-12.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/28-12.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/28-52.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/28-52.mp3 index 5a2389c9e..d5c3749e7 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/28-52.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/28-52.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/29-27.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/29-27.mp3 index 6c358cab3..f19f776a9 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/29-27.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/29-27.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/30-25.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/30-25.mp3 index efb97f7ed..63805e87d 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/30-25.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/30-25.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/30-37.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/30-37.mp3 index 40229cbea..67ca0999a 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/30-37.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/30-37.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/32-27.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/32-27.mp3 new file mode 100644 index 000000000..593369440 Binary files /dev/null and b/aider/website/assets/audio/tree-sitter-language-pack/32-27.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/32-36.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/32-36.mp3 new file mode 100644 index 000000000..2311eae15 Binary files /dev/null and b/aider/website/assets/audio/tree-sitter-language-pack/32-36.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/32-42.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/32-42.mp3 index f8818448e..74b78ca83 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/32-42.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/32-42.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/32-54.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/32-54.mp3 index bbeb11f4e..2e364c58e 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/32-54.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/32-54.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/33-05.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/33-05.mp3 index bef5bf7d1..87ef361e3 100644 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/33-05.mp3 and b/aider/website/assets/audio/tree-sitter-language-pack/33-05.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/35-00.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/35-00.mp3 new file mode 100644 index 000000000..aba4436e6 Binary files /dev/null and b/aider/website/assets/audio/tree-sitter-language-pack/35-00.mp3 differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/35-10.mp3 b/aider/website/assets/audio/tree-sitter-language-pack/35-10.mp3 deleted file mode 100644 index 83f0c59e9..000000000 Binary files a/aider/website/assets/audio/tree-sitter-language-pack/35-10.mp3 and /dev/null differ diff --git a/aider/website/assets/audio/tree-sitter-language-pack/metadata.json b/aider/website/assets/audio/tree-sitter-language-pack/metadata.json index 88b465647..87eb83df8 100644 --- a/aider/website/assets/audio/tree-sitter-language-pack/metadata.json +++ b/aider/website/assets/audio/tree-sitter-language-pack/metadata.json @@ -4,44 +4,48 @@ "01-00": "Ok, there's a language definitions json file", "01-10": "Does it have the github repos for each language?", "01-29": "Ok, this is what we need.", - "01-45": "We need all the tags files from each language's repository. Let's have aider write a script to fetch them all.", - "02-05": "Let aider read the language definitions json file.", + "01-45": "We need to get all the tags files from each repository for aider's repo-map. Let's have aider write a script to fetch them all.", + "02-05": "We'll show aider the language definitions json file.", "03-37": "Looks like it can't find most of the tags.scm files.", - "04-19": "Have it try other branches besides master.", - "05-02": "Ok, it's downloading them now.", - "05-55": "Let's make it so we can re-run and avoid re-downloading.", - "06-12": "I see lots of tags files.", + "04-19": "Maybe we should have it try other branches besides master?", + "05-02": "Ok, it seems to be downloading them now.", + "05-55": "Let's make it so we can re-run the script and only download files we haven't fetched yet.", + "06-12": "I see lots of tags files, so it's working.", "06-30": "Ok, restart to run with latest code. This will take awhile to fetch them all.", - "09-02": "The grep-ast module needs to know about all the new languages.", - "09-45": "Let's have aider add them all, including their file extensions.", - "10-15": "Some of the languages need to be recognized by their base name, not extension.", - "11-15": "Let's sanity check if grep-ast can handle PowerShell now.", + "09-02": "The Grep-AST module needs to know about all the new languages.", + "09-45": "Let's have aider add them all, and register each using their commonly used file extensions.", + "10-15": "Some of the languages need to be recognized by their base name, not by their extension.", + "11-15": "Let's sanity check if Grep-AST can handle PowerShell, one of the new languages.", "12-00": "Looks like it's parsing PowerShell fine.", - "13-00": "Ok, let's download the tags into the right spot in the aider repo.", + "13-00": "Ok, let's download all the tags files into the right spot in the aider repo.", "14-00": "This will take a minute...", - "16-07": "Delete some bad or empty tags files.", - "16-16": "Add the tags to the repo.", - "16-33": "The tags files need to be modified to work with the repo-map.", - "17-01": "Let's use bash to script aider to modify each tags file.", - "17-12": "I'm giving aider a read-only example of working tags file, as an example to follow.", + "16-07": "Delete some no-op or empty tags files.", + "16-16": "Let's commit all the unmodified tags files.", + "16-33": "We need to update each tag file, so that aider can identify names of functions, classes, etc in all these languages.", + "17-01": "Let's use a bash loop to script aider to modify each tags file.", + "17-12": "I'm giving aider a read-only example of an already modified tags file, as an example to follow.", "19-04": "Looks like it correctly updated the first couple of tags files.", - "19-28": "Let's grep to watch how many name tags are left to be updated.", + "19-28": "Let's grep to watch aider's progress working through the list of files.", "21-30": "This is going to take a little while...", "24-39": "Let's add a README file with attribution for these tags files.", - "27-00": "Ok, all the tags files are updated.", "27-10": "Let's add test coverage to be sure these languages work with the repo-map.", - "27-19": "Dump the fixtures directory structure to a file, to give aider so it knows the layout.", - "27-50": "Use a bash script to ask aider to add test coverage for each tags file.", - "28-12": "Let aider read the fixtures directory listing.", - "28-52": "Just fixing the bash to correctly iterate through the list of tags files.", - "29-27": "Improve the prompt to make sure aider creates a fixture for each language.", - "30-25": "Lets run the repo-map tests to see if the new test works.", - "30-37": "Arduino failed, with an empty repo-map?", + "27-19": "Each language needs a \"fixture\" with some sample code to parse during the test. Let's show aider the layout of the fixtures directory.", + "27-50": "We can use a bash loop to ask aider to add test coverage for each new tags file.", + "28-12": "We'll pass the fixtures directory listing to aider.", + "28-52": "Just need to fix the bash to correctly iterate through the list of tags files.", + "29-27": "I forgot to ask aider to actually generate a sample code fixture for each language.", + "30-25": "Lets run the repo-map tests to see if the first new test works.", + "30-37": "Tests for the Arduino language failed, with an empty repo-map? That's not good.", "31-52": "Can aider figure out what's wrong?", - "32-42": "Oh! I'm not using the updated grep-ast yet.", - "32-54": "Ok, now we're parsing Arduino code properly. Undo that bogus test fix.", - "33-05": "A regression with tsx?", + "32-42": "Oh! I'm not using the updated Grep-AST that knows about all the new languages.", + "32-54": "Ok, now we're parsing Arduino code properly. Undo aider's bogus test fix.", + "33-05": "Ok, arduino passes now but there seems to be a regression with tsx?", "33-20": "Can aider figure out why?", "34-10": "Let's check the parsers map.", - "35-10": "Well, that's all for this recording." + "35-00": "Well, that's all for this recording. The tsx problem was due to a bad mapping from \".tsx\" to \"typescript\" in the map that aider generated earlier.", + "20-20": "It's working on the Dart language now...", + "20-50": "E-lisp is up next...", + "26-55": "Ok, all the files are updated with tags for definitions and references to named code objects.", + "32-36": "Let me see if I can use Grep-AST on the new Arduino fixture code.", + "32-27": "Well, aider made the test pass by basically skipping Arduino." } \ No newline at end of file diff --git a/aider/website/docs/recordings/tree-sitter-language-pack.md b/aider/website/docs/recordings/tree-sitter-language-pack.md index ca71c8688..2b9cfcfde 100644 --- a/aider/website/docs/recordings/tree-sitter-language-pack.md +++ b/aider/website/docs/recordings/tree-sitter-language-pack.md @@ -21,46 +21,50 @@ const recording_url = "https://gist.githubusercontent.com/paul-gauthier/a9903334 - 1:00 Ok, there's a language definitions json file - 1:10 Does it have the github repos for each language? - 1:29 Ok, this is what we need. -- 1:45 We need all the tags files from each language's repository. Let's have aider write a script to fetch them all. -- 2:05 Let aider read the language definitions json file. +- 1:45 We need to get all the tags files from each repository for aider's repo-map. Let's have aider write a script to fetch them all. +- 2:05 We'll show aider the language definitions json file. - 3:37 Looks like it can't find most of the tags.scm files. -- 4:19 Have it try other branches besides master. -- 5:02 Ok, it's downloading them now. -- 5:55 Let's make it so we can re-run and avoid re-downloading. -- 6:12 I see lots of tags files. +- 4:19 Maybe we should have it try other branches besides master? +- 5:02 Ok, it seems to be downloading them now. +- 5:55 Let's make it so we can re-run the script and only download files we haven't fetched yet. +- 6:12 I see lots of tags files, so it's working. - 6:30 Ok, restart to run with latest code. This will take awhile to fetch them all. -- 9:02 The grep-ast module needs to know about all the new languages. -- 9:45 Let's have aider add them all, including their file extensions. -- 10:15 Some of the languages need to be recognized by their base name, not extension. -- 11:15 Let's sanity check if grep-ast can handle PowerShell now. +- 9:02 The Grep-AST module needs to know about all the new languages. +- 9:45 Let's have aider add them all, and register each using their commonly used file extensions. +- 10:15 Some of the languages need to be recognized by their base name, not by their extension. +- 11:15 Let's sanity check if Grep-AST can handle PowerShell, one of the new languages. - 12:00 Looks like it's parsing PowerShell fine. -- 13:00 Ok, let's download the tags into the right spot in the aider repo. +- 13:00 Ok, let's download all the tags files into the right spot in the aider repo. - 14:00 This will take a minute... -- 16:07 Delete some bad or empty tags files. -- 16:16 Add the tags to the repo. -- 16:33 The tags files need to be modified to work with the repo-map. -- 17:01 Let's use bash to script aider to modify each tags file. -- 17:12 I'm giving aider a read-only example of working tags file, as an example to follow. +- 16:07 Delete some no-op or empty tags files. +- 16:16 Let's commit all the unmodified tags files. +- 16:33 We need to update each tag file, so that aider can identify names of functions, classes, etc in all these languages. +- 17:01 Let's use a bash loop to script aider to modify each tags file. +- 17:12 I'm giving aider a read-only example of an already modified tags file, as an example to follow. - 19:04 Looks like it correctly updated the first couple of tags files. -- 19:28 Let's grep to watch how many name tags are left to be updated. +- 19:28 Let's grep to watch aider's progress working through the list of files. +- 20:20 It's working on the Dart language now... +- 20:50 E-lisp is up next... - 21:30 This is going to take a little while... - 24:39 Let's add a README file with attribution for these tags files. -- 27:00 Ok, all the tags files are updated. +- 26:55 Ok, all the files are updated with tags for definitions and references to named code objects. - 27:10 Let's add test coverage to be sure these languages work with the repo-map. -- 27:19 Dump the fixtures directory structure to a file, to give aider so it knows the layout. -- 27:50 Use a bash script to ask aider to add test coverage for each tags file. -- 28:12 Let aider read the fixtures directory listing. -- 28:52 Just fixing the bash to correctly iterate through the list of tags files. -- 29:27 Improve the prompt to make sure aider creates a fixture for each language. -- 30:25 Lets run the repo-map tests to see if the new test works. -- 30:37 Arduino failed, with an empty repo-map? +- 27:19 Each language needs a "fixture" with some sample code to parse during the test. Let's show aider the layout of the fixtures directory. +- 27:50 We can use a bash loop to ask aider to add test coverage for each new tags file. +- 28:12 We'll pass the fixtures directory listing to aider. +- 28:52 Just need to fix the bash to correctly iterate through the list of tags files. +- 29:27 I forgot to ask aider to actually generate a sample code fixture for each language. +- 30:25 Lets run the repo-map tests to see if the first new test works. +- 30:37 Tests for the Arduino language failed, with an empty repo-map? That's not good. - 31:52 Can aider figure out what's wrong? -- 32:42 Oh! I'm not using the updated grep-ast yet. -- 32:54 Ok, now we're parsing Arduino code properly. Undo that bogus test fix. -- 33:05 A regression with tsx? +- 32:27 Well, aider made the test pass by basically skipping Arduino. +- 32:36 Let me see if I can use Grep-AST on the new Arduino fixture code. +- 32:42 Oh! I'm not using the updated Grep-AST that knows about all the new languages. +- 32:54 Ok, now we're parsing Arduino code properly. Undo aider's bogus test fix. +- 33:05 Ok, arduino passes now but there seems to be a regression with tsx? - 33:20 Can aider figure out why? - 34:10 Let's check the parsers map. -- 35:10 Well, that's all for this recording. +- 35:00 Well, that's all for this recording. The tsx problem was due to a bad mapping from ".tsx" to "typescript" in the map that aider generated earlier.