Skip to content

Commit

Permalink
Fix bug with startup scripts not loading at the correct time
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkaney committed May 19, 2024
1 parent 4eb4b94 commit 184a518
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/languages/tidal/ghci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,20 +133,15 @@ export class GHCI extends Engine<GHCIEvents> {
// );
const integrationCode = generateIntegrationCode(await this.getVersion());
await this.send(integrationCode);

// Disable reloading of Sound.Tidal.Context since it's already loaded
this.wrapper.addInputFilter(
/^[ \t]*import[ \t]+Sound\.Tidal\.Context.*$/m
);
}

if (useDefaultBootfile) {
this.sendFile(await this.defaultBootfile());
await this.sendFile(await this.defaultBootfile());
}

for (let path of bootFiles ?? []) {
try {
this.sendFile(path);
await this.sendFile(path);
} catch (err) {
if ((err as NodeJS.ErrnoException).code !== "ENOENT") {
throw err;
Expand Down

0 comments on commit 184a518

Please sign in to comment.