Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

fixed filepath bug #212

Merged
merged 6 commits into from
Sep 28, 2024
Merged

fixed filepath bug #212

merged 6 commits into from
Sep 28, 2024

Conversation

ShiboSoftwareDev
Copy link
Contributor

there are two new issues:

  • api\tests\routes\export_requests\list.test.ts timed out but works if you increase timeout to 10k ms
  • I can't export anything maybe I think the problem is in the file: run-entrypoint-file.ts

@seveibar
Copy link
Contributor

We can increase the timeout for the test inside the workflow (not a big deal) do you want to make that edit to see if the tests pass? I didn't understand your other issue, the diff is a bit hard to read because of a formatting issue, maybe you could run bun run format

.stderr(debug.enabled ? "inheritPiped" : "piped")
.stdout(debug.enabled ? "inheritPiped" : "piped")
} catch (e) {
console.log(e)
Copy link
Contributor

@seveibar seveibar Sep 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm we should probably revert this part because it allows continuing after errors

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*continuing after errors

Copy link
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looking good, some minor tweaks and this is ready to ship!

.stderr(debug.enabled ? "inheritPiped" : "piped")
.stdout(debug.enabled ? "inheritPiped" : "piped")
} catch (e) {
console.log(e)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*continuing after errors

.stdout(debug.enabled ? "inheritPiped" : "piped")
.stderr(debug.enabled ? "inheritPiped" : "piped")
.noThrow()
try {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this big try catch here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to remove these


writeFileSync("${tmpOutputPath}", JSON.stringify(project.getCircuitJson()))
`.trim(),
import React from "react"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's actually correct here to not have indentation, the output file is going to have a lot of indentation if we add indentation here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll reverse this change

@@ -29,6 +29,7 @@ export const exportGerbersToFile = async (
},
ctx,
)
console.log(soup, "soup")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log(soup, "soup")

@@ -91,7 +92,7 @@ export const exportGerbersToZipBuffer = async (
) => {
const tempDir = Path.join(".tscircuit", "tmp-gerber-zip")
fs.mkdirSync(tempDir, { recursive: true })

console.log("step two")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log("step two")

@@ -100,6 +101,7 @@ export const exportGerbersToZipBuffer = async (
},
ctx,
)
console.log("step last")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
console.log("step last")

cli/lib/soupify/run-entrypoint-file.ts Show resolved Hide resolved
@ShiboSoftwareDev
Copy link
Contributor Author

@seveibar I used to review my own code I don't why I stopped doing that, sorry for that

@seveibar
Copy link
Contributor

@ShiboSoftwareDev all good, we should enable a lint rule for console log lines anyway so that its not easy to leave them in- i think biome has a setting

@ShiboSoftwareDev ShiboSoftwareDev merged commit 7ad4fc5 into tscircuit:main Sep 28, 2024
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants