Closed OAGr closed 1 year ago
I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.
[X] Modify packages/components/src/components/SquiggleEditor.tsx
✓ https://github.com/quantified-uncertainty/squiggle/commit/4b74c7cd735a7073ade592fc15df432a16b906d7
Modify packages/components/src/components/SquiggleEditor.tsx with contents:
• Import the `useClipboard` hook from `react-use` at the top of the file. This hook provides an easy way to interact with the Clipboard API.
• Inside the `SquiggleEditor` component, call the `useClipboard` hook with the content of the "Unsaved Draft" as the argument. This will return a `copyToClipboard` function.
• Add a button next to the "Unsaved Draft" label. This button should have an `onClick` handler that calls the `copyToClipboard` function.
• The button should be disabled if the "Unsaved Draft" is empty. You can use the `disabled` attribute of the button element for this.
• Optionally, you can show a tooltip or a toast notification when the content is successfully copied to the clipboard. This can be done by checking the state returned by the `useClipboard` hook.
[X] Check packages/components/src/components/SquiggleEditor.tsx
✗
Sandbox logs for
pnpm i
1/2 ✓Scope: all 12 workspace projects ╭──────────────────────────────────────────────────────────────────╮ │ │ │ Update available! 8.9.2 → 8.10.0. │ │ Changelog: https://github.com/pnpm/pnpm/releases/tag/v8.10.0 │ │ Run "pnpm add -g pnpm" to update. │ │ │ │ Follow @pnpmjs for updates: https://twitter.com/pnpmjs │ │ │ ╰──────────────────────────────────────────────────────────────────╯ Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +2161 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 2161, reused 0, downloaded 79, added 77 Progress: resolved 2161, reused 0, downloaded 327, added 321 Progress: resolved 2161, reused 0, downloaded 621, added 620 Progress: resolved 2161, reused 0, downloaded 891, added 878 Progress: resolved 2161, reused 0, downloaded 1249, added 1248 Progress: resolved 2161, reused 0, downloaded 1482, added 1473 Progress: resolved 2161, reused 0, downloaded 1484, added 1479 Progress: resolved 2161, reused 0, downloaded 1566, added 1561 Progress: resolved 2161, reused 0, downloaded 1711, added 1704 Progress: resolved 2161, reused 0, downloaded 1879, added 1876 Progress: resolved 2161, reused 0, downloaded 1937, added 1926 Progress: resolved 2161, reused 0, downloaded 1964, added 1953 Progress: resolved 2161, reused 0, downloaded 2082, added 2078 Progress: resolved 2161, reused 0, downloaded 2158, added 2160 Progress: resolved 2161, reused 0, downloaded 2159, added 2161, done .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js .../node_modules/@prisma/engines postinstall: Done .../esbuild@0.18.20/node_modules/esbuild postinstall$ node install.js .../prisma@5.3.1/node_modules/prisma preinstall$ node scripts/preinstall-entry.js .../esbuild@0.18.20/node_modules/esbuild postinstall: Done .../prisma@5.3.1/node_modules/prisma preinstall: Done .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js .../node_modules/@prisma/client postinstall: prisma:warn We could not find your Prisma schema at `prisma/schema.prisma`. .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client. .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message. .../node_modules/@prisma/client postinstall: Done .../canvas@2.11.2/node_modules/canvas install$ node-pre-gyp install --fallback-to-build --update-binary .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info it worked if it ends with ok .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node-pre-gyp@1.0.10 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node@18.17.0 | linux | x64 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-glibc-x64.tar.gz .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libcairo.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libjpeg.so.62 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libxml2.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgmodule-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpcre.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpixman-1.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/canvas.node .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgdk_pixbuf-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpango-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libstdc++.so.6 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfontconfig.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/canvas.node.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas.node.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/init.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/ImageData.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/register_font.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Backends.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasRenderingContext2d.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Image.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/PdfBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/Backend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/ImageBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/SvgBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasPattern.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/bmp/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/bmp/BMPParser.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/closure.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasGradient.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Canvas.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/color.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpangoft2-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgio-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas.node .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasPattern.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/register_font.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/closure.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/ImageData.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasGradient.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Backends.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/SvgBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/PdfBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/Backend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/ImageBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasRenderingContext2d.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/init.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/bmp/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/bmp/BMPParser.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/color.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Image.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Canvas.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgif.so.7 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libglib-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/librsvg-2.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfribidi.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpng16.so.16 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libz.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpangocairo-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libffi.so.7 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libcairo-gobject.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgobject-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libexpat.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfreetype.so.6 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libharfbuzz.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info extracted file count: 74 .../canvas@2.11.2/node_modules/canvas install: [canvas] Success: "/repo/node_modules/.pnpm/canvas@2.11.2/node_modules/canvas/build/Release/canvas.node" is installed via remote .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info ok .../canvas@2.11.2/node_modules/canvas install: Done .../keytar@7.9.0/node_modules/keytar install$ prebuild-install || npm run build .../keytar@7.9.0/node_modules/keytar install: Done WARN Failed to create bin at /repo/packages/components/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/prettier-plugin/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/hub/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/vscode-ext/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' devDependencies: + @changesets/cli 2.26.2 + prettier 3.0.3 + turbo 1.10.14 + turbo-ignore 1.10.14 WARN Failed to create bin at /repo/packages/prettier-plugin/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/prettier-plugin/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/components/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/components/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/vscode-ext/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/vscode-ext/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/hub/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/hub/node_modules/@quri/squiggle-lang/dist/cli/index.js' Done in 26.2s
trunk init
2/2 ✓⡿ Downloading Trunk 1.17.1... ⡿ Downloading Trunk 1.17.1... ⢿ Downloading Trunk 1.17.1... ⣻ Downloading Trunk 1.17.1... ⣽ Downloading Trunk 1.17.1... ⣾ Downloading Trunk 1.17.1... ⣷ Downloading Trunk 1.17.1... ✔ Downloading Trunk 1.17.1... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 13 linters were enabled (.trunk/trunk.yaml) actionlint 1.6.26 (7 github-workflow files) checkov 3.0.12 (54 json, 16 yaml files) git-diff-check (934 files) markdownlint 0.37.0 (77 markdown files) (created .markdownlint.yaml) osv-scanner 1.4.2 (1 lockfile file) oxipng 9.0.0 (7 png files) prettier 3.0.3 (5 css, 1 graphql, 23 javascript, 54 json, 77 markdown, 679 typescript, 15 yaml files) shellcheck 0.9.0 (4 shell files) (created .shellcheckrc) shfmt 3.6.0 (4 shell files) taplo 0.8.1 (1 toml file) trivy 0.46.0 (16 yaml files) trufflehog 3.60.4 (935 files) yamllint 1.32.0 (15 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
[X] Modify packages/components/src/components/SquiggleEditor.tsx
✓ https://github.com/quantified-uncertainty/squiggle/commit/31cdd7d393606258f9aa1538b9060b815bcc843b
Modify packages/components/src/components/SquiggleEditor.tsx with contents: Remove the duplicate calls to `useUncontrolledCode` hook. There should only be one call to this hook in the `SquiggleEditor` component. Also, ensure that the `useClipboard` hook is properly imported from 'react-use' and used correctly to copy the code to the clipboard when the "Copy to Clipboard" button is clicked.
[X] Check packages/components/src/components/SquiggleEditor.tsx
✗
Sandbox logs for
pnpm i
1/2 ✓Scope: all 12 workspace projects ╭──────────────────────────────────────────────────────────────────╮ │ │ │ Update available! 8.9.2 → 8.10.0. │ │ Changelog: https://github.com/pnpm/pnpm/releases/tag/v8.10.0 │ │ Run "pnpm add -g pnpm" to update. │ │ │ │ Follow @pnpmjs for updates: https://twitter.com/pnpmjs │ │ │ ╰──────────────────────────────────────────────────────────────────╯ Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +2161 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 2161, reused 0, downloaded 0, added 0 Progress: resolved 2161, reused 0, downloaded 1, added 0 Progress: resolved 2161, reused 0, downloaded 53, added 41 Progress: resolved 2161, reused 0, downloaded 95, added 83 Progress: resolved 2161, reused 0, downloaded 141, added 126 Progress: resolved 2161, reused 0, downloaded 206, added 192 Progress: resolved 2161, reused 0, downloaded 280, added 267 Progress: resolved 2161, reused 0, downloaded 320, added 306 Progress: resolved 2161, reused 0, downloaded 384, added 376 Progress: resolved 2161, reused 0, downloaded 460, added 446 Progress: resolved 2161, reused 0, downloaded 541, added 531 Progress: resolved 2161, reused 0, downloaded 623, added 618 Progress: resolved 2161, reused 0, downloaded 690, added 680 Progress: resolved 2161, reused 0, downloaded 753, added 743 Progress: resolved 2161, reused 0, downloaded 862, added 855 Progress: resolved 2161, reused 0, downloaded 937, added 925 Progress: resolved 2161, reused 0, downloaded 1003, added 995 Progress: resolved 2161, reused 0, downloaded 1124, added 1112 Progress: resolved 2161, reused 0, downloaded 1207, added 1198 Progress: resolved 2161, reused 0, downloaded 1337, added 1334 Progress: resolved 2161, reused 0, downloaded 1452, added 1443 Progress: resolved 2161, reused 0, downloaded 1468, added 1457 Progress: resolved 2161, reused 0, downloaded 1477, added 1468 Progress: resolved 2161, reused 0, downloaded 1486, added 1477 Progress: resolved 2161, reused 0, downloaded 1493, added 1483 Progress: resolved 2161, reused 0, downloaded 1504, added 1492 Progress: resolved 2161, reused 0, downloaded 1526, added 1512 Progress: resolved 2161, reused 0, downloaded 1551, added 1537 Progress: resolved 2161, reused 0, downloaded 1653, added 1649 Progress: resolved 2161, reused 0, downloaded 1718, added 1706 Progress: resolved 2161, reused 0, downloaded 1757, added 1744 Progress: resolved 2161, reused 0, downloaded 1801, added 1789 Progress: resolved 2161, reused 0, downloaded 1849, added 1841 Progress: resolved 2161, reused 0, downloaded 1898, added 1890 Progress: resolved 2161, reused 0, downloaded 1916, added 1906 Progress: resolved 2161, reused 0, downloaded 1917, added 1906 Progress: resolved 2161, reused 0, downloaded 1938, added 1925 Progress: resolved 2161, reused 0, downloaded 1981, added 1975 Progress: resolved 2161, reused 0, downloaded 2132, added 2123 Progress: resolved 2161, reused 0, downloaded 2158, added 2160 Progress: resolved 2161, reused 0, downloaded 2159, added 2161, done .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js .../node_modules/@prisma/engines postinstall: Done .../esbuild@0.18.20/node_modules/esbuild postinstall$ node install.js .../prisma@5.3.1/node_modules/prisma preinstall$ node scripts/preinstall-entry.js .../prisma@5.3.1/node_modules/prisma preinstall: Done .../esbuild@0.18.20/node_modules/esbuild postinstall: Done .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js .../node_modules/@prisma/client postinstall: prisma:warn We could not find your Prisma schema at `prisma/schema.prisma`. .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client. .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message. .../node_modules/@prisma/client postinstall: Done .../canvas@2.11.2/node_modules/canvas install$ node-pre-gyp install --fallback-to-build --update-binary .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info it worked if it ends with ok .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node-pre-gyp@1.0.10 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node@18.17.0 | linux | x64 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-glibc-x64.tar.gz .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libcairo.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libjpeg.so.62 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libxml2.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgmodule-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpcre.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpixman-1.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/canvas.node .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgdk_pixbuf-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpango-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libstdc++.so.6 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfontconfig.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/canvas.node.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas.node.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/init.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/ImageData.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/register_font.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Backends.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasRenderingContext2d.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Image.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/PdfBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/Backend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/ImageBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/SvgBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasPattern.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/bmp/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/bmp/BMPParser.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/closure.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasGradient.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Canvas.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/color.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpangoft2-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgio-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas.node .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasPattern.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/register_font.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/closure.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/ImageData.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasGradient.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Backends.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/SvgBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/PdfBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/Backend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/ImageBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasRenderingContext2d.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/init.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/bmp/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/bmp/BMPParser.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/color.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Image.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Canvas.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgif.so.7 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libglib-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/librsvg-2.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfribidi.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpng16.so.16 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libz.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpangocairo-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libffi.so.7 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libcairo-gobject.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgobject-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libexpat.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfreetype.so.6 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libharfbuzz.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info extracted file count: 74 .../canvas@2.11.2/node_modules/canvas install: [canvas] Success: "/repo/node_modules/.pnpm/canvas@2.11.2/node_modules/canvas/build/Release/canvas.node" is installed via remote .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info ok .../canvas@2.11.2/node_modules/canvas install: Done .../keytar@7.9.0/node_modules/keytar install$ prebuild-install || npm run build .../keytar@7.9.0/node_modules/keytar install: Done WARN Failed to create bin at /repo/packages/components/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/prettier-plugin/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/hub/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/vscode-ext/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' devDependencies: + @changesets/cli 2.26.2 + prettier 3.0.3 + turbo 1.10.14 + turbo-ignore 1.10.14 WARN Failed to create bin at /repo/packages/prettier-plugin/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/prettier-plugin/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/components/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/components/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/vscode-ext/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/vscode-ext/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/hub/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/hub/node_modules/@quri/squiggle-lang/dist/cli/index.js' Done in 55.9s
trunk init
2/2 ✓⡿ Downloading Trunk 1.17.1... ⡿ Downloading Trunk 1.17.1... ⢿ Downloading Trunk 1.17.1... ⣻ Downloading Trunk 1.17.1... ⣽ Downloading Trunk 1.17.1... ⣾ Downloading Trunk 1.17.1... ⣷ Downloading Trunk 1.17.1... ✔ Downloading Trunk 1.17.1... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 13 linters were enabled (.trunk/trunk.yaml) actionlint 1.6.26 (7 github-workflow files) checkov 3.0.12 (54 json, 16 yaml files) git-diff-check (934 files) markdownlint 0.37.0 (77 markdown files) (created .markdownlint.yaml) osv-scanner 1.4.2 (1 lockfile file) oxipng 9.0.0 (7 png files) prettier 3.0.3 (5 css, 1 graphql, 23 javascript, 54 json, 77 markdown, 679 typescript, 15 yaml files) shellcheck 0.9.0 (4 shell files) (created .shellcheckrc) shfmt 3.6.0 (4 shell files) taplo 0.8.1 (1 toml file) trivy 0.46.0 (16 yaml files) trufflehog 3.60.4 (935 files) yamllint 1.32.0 (15 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
packages/components/src/components/SquiggleEditor.tsx
✓ https://github.com/quantified-uncertainty/squiggle/commit/ef2ad6decf435c75297c34c1318aff33ca46b140
Modify packages/components/src/components/SquiggleEditor.tsx with contents: Remove the first return statement in the `SquiggleEditor` component. This return statement is a duplicate and is not valid in JavaScript. The component should only have one return statement that returns the JSX to be rendered.
Also, remove the isCopied
variable which is returned from the useClipboard
hook. This variable is not used anywhere in the component. If the copy status is not required to be displayed or used in any other way, there is no need to store it in a variable.
packages/components/src/components/SquiggleEditor.tsx
✗
Sandbox logs for
pnpm i
1/2 ✓Scope: all 12 workspace projects ╭──────────────────────────────────────────────────────────────────╮ │ │ │ Update available! 8.9.2 → 8.10.0. │ │ Changelog: https://github.com/pnpm/pnpm/releases/tag/v8.10.0 │ │ Run "pnpm add -g pnpm" to update. │ │ │ │ Follow @pnpmjs for updates: https://twitter.com/pnpmjs │ │ │ ╰──────────────────────────────────────────────────────────────────╯ Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +2161 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 2161, reused 0, downloaded 0, added 0 Progress: resolved 2161, reused 0, downloaded 16, added 0 Progress: resolved 2161, reused 0, downloaded 92, added 81 Progress: resolved 2161, reused 0, downloaded 254, added 243 Progress: resolved 2161, reused 0, downloaded 320, added 306 Progress: resolved 2161, reused 0, downloaded 443, added 432 Progress: resolved 2161, reused 0, downloaded 562, added 548 Progress: resolved 2161, reused 0, downloaded 682, added 676 Progress: resolved 2161, reused 0, downloaded 773, added 763 Progress: resolved 2161, reused 0, downloaded 877, added 870 Progress: resolved 2161, reused 0, downloaded 978, added 967 Progress: resolved 2161, reused 0, downloaded 1070, added 1060 Progress: resolved 2161, reused 0, downloaded 1187, added 1176 Progress: resolved 2161, reused 0, downloaded 1345, added 1341 Progress: resolved 2161, reused 0, downloaded 1453, added 1447 Progress: resolved 2161, reused 0, downloaded 1468, added 1455 Progress: resolved 2161, reused 0, downloaded 1477, added 1468 Progress: resolved 2161, reused 0, downloaded 1489, added 1477 Progress: resolved 2161, reused 0, downloaded 1490, added 1477 Progress: resolved 2161, reused 0, downloaded 1505, added 1490 Progress: resolved 2161, reused 0, downloaded 1531, added 1518 Progress: resolved 2161, reused 0, downloaded 1612, added 1603 Progress: resolved 2161, reused 0, downloaded 1716, added 1706 Progress: resolved 2161, reused 0, downloaded 1781, added 1768 Progress: resolved 2161, reused 0, downloaded 1847, added 1837 Progress: resolved 2161, reused 0, downloaded 1893, added 1884 Progress: resolved 2161, reused 0, downloaded 1903, added 1892 Progress: resolved 2161, reused 0, downloaded 1917, added 1905 Progress: resolved 2161, reused 0, downloaded 1937, added 1927 Progress: resolved 2161, reused 0, downloaded 2026, added 2014 Progress: resolved 2161, reused 0, downloaded 2157, added 2158 Progress: resolved 2161, reused 0, downloaded 2159, added 2161, done .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js .../node_modules/@prisma/engines postinstall: Done .../esbuild@0.18.20/node_modules/esbuild postinstall$ node install.js .../prisma@5.3.1/node_modules/prisma preinstall$ node scripts/preinstall-entry.js .../prisma@5.3.1/node_modules/prisma preinstall: Done .../esbuild@0.18.20/node_modules/esbuild postinstall: Done .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js .../node_modules/@prisma/client postinstall: prisma:warn We could not find your Prisma schema at `prisma/schema.prisma`. .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client. .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message. .../node_modules/@prisma/client postinstall: Done .../canvas@2.11.2/node_modules/canvas install$ node-pre-gyp install --fallback-to-build --update-binary .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info it worked if it ends with ok .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node-pre-gyp@1.0.10 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node@18.17.0 | linux | x64 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-glibc-x64.tar.gz .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libcairo.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libjpeg.so.62 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libxml2.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgmodule-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpcre.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpixman-1.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/canvas.node .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgdk_pixbuf-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpango-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libstdc++.so.6 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfontconfig.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/canvas.node.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas.node.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/init.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/ImageData.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/register_font.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Backends.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasRenderingContext2d.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Image.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/PdfBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/Backend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/ImageBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/SvgBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasPattern.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/bmp/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/bmp/BMPParser.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/closure.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasGradient.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Canvas.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/color.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpangoft2-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgio-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas.node .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasPattern.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/register_font.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/closure.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/ImageData.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasGradient.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Backends.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/SvgBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/PdfBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/Backend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/ImageBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasRenderingContext2d.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/init.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/bmp/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/bmp/BMPParser.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/color.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Image.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Canvas.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgif.so.7 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libglib-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/librsvg-2.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfribidi.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpng16.so.16 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libz.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpangocairo-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libffi.so.7 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libcairo-gobject.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgobject-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libexpat.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfreetype.so.6 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libharfbuzz.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info extracted file count: 74 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info ok .../canvas@2.11.2/node_modules/canvas install: [canvas] Success: "/repo/node_modules/.pnpm/canvas@2.11.2/node_modules/canvas/build/Release/canvas.node" is installed via remote .../canvas@2.11.2/node_modules/canvas install: Done .../keytar@7.9.0/node_modules/keytar install$ prebuild-install || npm run build .../keytar@7.9.0/node_modules/keytar install: Done WARN Failed to create bin at /repo/packages/components/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/prettier-plugin/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/hub/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/vscode-ext/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' devDependencies: + @changesets/cli 2.26.2 + prettier 3.0.3 + turbo 1.10.14 + turbo-ignore 1.10.14 WARN Failed to create bin at /repo/packages/prettier-plugin/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/prettier-plugin/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/components/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/components/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/vscode-ext/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/vscode-ext/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/hub/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/hub/node_modules/@quri/squiggle-lang/dist/cli/index.js' Done in 48.3s
trunk init
2/2 ✓⡿ Downloading Trunk 1.17.1... ⡿ Downloading Trunk 1.17.1... ⢿ Downloading Trunk 1.17.1... ⣻ Downloading Trunk 1.17.1... ⣽ Downloading Trunk 1.17.1... ⣾ Downloading Trunk 1.17.1... ⣷ Downloading Trunk 1.17.1... ✔ Downloading Trunk 1.17.1... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 13 linters were enabled (.trunk/trunk.yaml) actionlint 1.6.26 (7 github-workflow files) checkov 3.0.12 (54 json, 16 yaml files) git-diff-check (934 files) markdownlint 0.37.0 (77 markdown files) (created .markdownlint.yaml) osv-scanner 1.4.2 (1 lockfile file) oxipng 9.0.0 (7 png files) prettier 3.0.3 (5 css, 1 graphql, 23 javascript, 54 json, 77 markdown, 679 typescript, 15 yaml files) shellcheck 0.9.0 (4 shell files) (created .shellcheckrc) shfmt 3.6.0 (4 shell files) taplo 0.8.1 (1 toml file) trivy 0.46.0 (16 yaml files) trufflehog 3.60.4 (935 files) yamllint 1.32.0 (15 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
packages/components/src/components/SquiggleEditor.tsx
✗
Sandbox logs for
pnpm i
1/2 ✓Scope: all 12 workspace projects ╭──────────────────────────────────────────────────────────────────╮ │ │ │ Update available! 8.9.2 → 8.10.0. │ │ Changelog: https://github.com/pnpm/pnpm/releases/tag/v8.10.0 │ │ Run "pnpm add -g pnpm" to update. │ │ │ │ Follow @pnpmjs for updates: https://twitter.com/pnpmjs │ │ │ ╰──────────────────────────────────────────────────────────────────╯ Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +2161 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 2161, reused 0, downloaded 0, added 0 Progress: resolved 2161, reused 0, downloaded 1, added 0 Progress: resolved 2161, reused 0, downloaded 53, added 41 Progress: resolved 2161, reused 0, downloaded 95, added 83 Progress: resolved 2161, reused 0, downloaded 141, added 126 Progress: resolved 2161, reused 0, downloaded 206, added 192 Progress: resolved 2161, reused 0, downloaded 280, added 267 Progress: resolved 2161, reused 0, downloaded 320, added 306 Progress: resolved 2161, reused 0, downloaded 384, added 376 Progress: resolved 2161, reused 0, downloaded 460, added 446 Progress: resolved 2161, reused 0, downloaded 541, added 531 Progress: resolved 2161, reused 0, downloaded 623, added 618 Progress: resolved 2161, reused 0, downloaded 690, added 680 Progress: resolved 2161, reused 0, downloaded 753, added 743 Progress: resolved 2161, reused 0, downloaded 862, added 855 Progress: resolved 2161, reused 0, downloaded 937, added 925 Progress: resolved 2161, reused 0, downloaded 1003, added 995 Progress: resolved 2161, reused 0, downloaded 1124, added 1112 Progress: resolved 2161, reused 0, downloaded 1207, added 1198 Progress: resolved 2161, reused 0, downloaded 1337, added 1334 Progress: resolved 2161, reused 0, downloaded 1452, added 1443 Progress: resolved 2161, reused 0, downloaded 1468, added 1457 Progress: resolved 2161, reused 0, downloaded 1477, added 1468 Progress: resolved 2161, reused 0, downloaded 1486, added 1477 Progress: resolved 2161, reused 0, downloaded 1493, added 1483 Progress: resolved 2161, reused 0, downloaded 1504, added 1492 Progress: resolved 2161, reused 0, downloaded 1526, added 1512 Progress: resolved 2161, reused 0, downloaded 1551, added 1537 Progress: resolved 2161, reused 0, downloaded 1653, added 1649 Progress: resolved 2161, reused 0, downloaded 1718, added 1706 Progress: resolved 2161, reused 0, downloaded 1757, added 1744 Progress: resolved 2161, reused 0, downloaded 1801, added 1789 Progress: resolved 2161, reused 0, downloaded 1849, added 1841 Progress: resolved 2161, reused 0, downloaded 1898, added 1890 Progress: resolved 2161, reused 0, downloaded 1916, added 1906 Progress: resolved 2161, reused 0, downloaded 1917, added 1906 Progress: resolved 2161, reused 0, downloaded 1938, added 1925 Progress: resolved 2161, reused 0, downloaded 1981, added 1975 Progress: resolved 2161, reused 0, downloaded 2132, added 2123 Progress: resolved 2161, reused 0, downloaded 2158, added 2160 Progress: resolved 2161, reused 0, downloaded 2159, added 2161, done .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js .../node_modules/@prisma/engines postinstall: Done .../esbuild@0.18.20/node_modules/esbuild postinstall$ node install.js .../prisma@5.3.1/node_modules/prisma preinstall$ node scripts/preinstall-entry.js .../prisma@5.3.1/node_modules/prisma preinstall: Done .../esbuild@0.18.20/node_modules/esbuild postinstall: Done .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js .../node_modules/@prisma/client postinstall: prisma:warn We could not find your Prisma schema at `prisma/schema.prisma`. .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client. .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message. .../node_modules/@prisma/client postinstall: Done .../canvas@2.11.2/node_modules/canvas install$ node-pre-gyp install --fallback-to-build --update-binary .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info it worked if it ends with ok .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node-pre-gyp@1.0.10 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node@18.17.0 | linux | x64 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-glibc-x64.tar.gz .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libcairo.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libjpeg.so.62 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libxml2.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgmodule-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpcre.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpixman-1.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/canvas.node .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgdk_pixbuf-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpango-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libstdc++.so.6 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfontconfig.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/canvas.node.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas.node.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/init.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/ImageData.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/register_font.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Backends.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasRenderingContext2d.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Image.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/PdfBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/Backend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/ImageBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/SvgBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasPattern.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/bmp/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/bmp/BMPParser.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/closure.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasGradient.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Canvas.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/color.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpangoft2-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgio-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas.node .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasPattern.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/register_font.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/closure.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/ImageData.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasGradient.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Backends.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/SvgBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/PdfBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/Backend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/ImageBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasRenderingContext2d.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/init.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/bmp/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/bmp/BMPParser.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/color.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Image.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Canvas.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgif.so.7 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libglib-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/librsvg-2.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfribidi.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpng16.so.16 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libz.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpangocairo-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libffi.so.7 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libcairo-gobject.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgobject-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libexpat.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfreetype.so.6 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libharfbuzz.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info extracted file count: 74 .../canvas@2.11.2/node_modules/canvas install: [canvas] Success: "/repo/node_modules/.pnpm/canvas@2.11.2/node_modules/canvas/build/Release/canvas.node" is installed via remote .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info ok .../canvas@2.11.2/node_modules/canvas install: Done .../keytar@7.9.0/node_modules/keytar install$ prebuild-install || npm run build .../keytar@7.9.0/node_modules/keytar install: Done WARN Failed to create bin at /repo/packages/components/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/prettier-plugin/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/hub/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/vscode-ext/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' devDependencies: + @changesets/cli 2.26.2 + prettier 3.0.3 + turbo 1.10.14 + turbo-ignore 1.10.14 WARN Failed to create bin at /repo/packages/prettier-plugin/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/prettier-plugin/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/components/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/components/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/vscode-ext/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/vscode-ext/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/hub/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/hub/node_modules/@quri/squiggle-lang/dist/cli/index.js' Done in 55.9s
trunk init
2/2 ✓⡿ Downloading Trunk 1.17.1... ⡿ Downloading Trunk 1.17.1... ⢿ Downloading Trunk 1.17.1... ⣻ Downloading Trunk 1.17.1... ⣽ Downloading Trunk 1.17.1... ⣾ Downloading Trunk 1.17.1... ⣷ Downloading Trunk 1.17.1... ✔ Downloading Trunk 1.17.1... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 13 linters were enabled (.trunk/trunk.yaml) actionlint 1.6.26 (7 github-workflow files) checkov 3.0.12 (54 json, 16 yaml files) git-diff-check (934 files) markdownlint 0.37.0 (77 markdown files) (created .markdownlint.yaml) osv-scanner 1.4.2 (1 lockfile file) oxipng 9.0.0 (7 png files) prettier 3.0.3 (5 css, 1 graphql, 23 javascript, 54 json, 77 markdown, 679 typescript, 15 yaml files) shellcheck 0.9.0 (4 shell files) (created .shellcheckrc) shfmt 3.6.0 (4 shell files) taplo 0.8.1 (1 toml file) trivy 0.46.0 (16 yaml files) trufflehog 3.60.4 (935 files) yamllint 1.32.0 (15 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
packages/components/src/components/SquiggleEditor.tsx
✗
Sandbox logs for
pnpm i
1/2 ✓Scope: all 12 workspace projects ╭──────────────────────────────────────────────────────────────────╮ │ │ │ Update available! 8.9.2 → 8.10.0. │ │ Changelog: https://github.com/pnpm/pnpm/releases/tag/v8.10.0 │ │ Run "pnpm add -g pnpm" to update. │ │ │ │ Follow @pnpmjs for updates: https://twitter.com/pnpmjs │ │ │ ╰──────────────────────────────────────────────────────────────────╯ Lockfile is up to date, resolution step is skipped Progress: resolved 1, reused 0, downloaded 0, added 0 Packages: +2161 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Progress: resolved 2161, reused 0, downloaded 79, added 77 Progress: resolved 2161, reused 0, downloaded 327, added 321 Progress: resolved 2161, reused 0, downloaded 621, added 620 Progress: resolved 2161, reused 0, downloaded 891, added 878 Progress: resolved 2161, reused 0, downloaded 1249, added 1248 Progress: resolved 2161, reused 0, downloaded 1482, added 1473 Progress: resolved 2161, reused 0, downloaded 1484, added 1479 Progress: resolved 2161, reused 0, downloaded 1566, added 1561 Progress: resolved 2161, reused 0, downloaded 1711, added 1704 Progress: resolved 2161, reused 0, downloaded 1879, added 1876 Progress: resolved 2161, reused 0, downloaded 1937, added 1926 Progress: resolved 2161, reused 0, downloaded 1964, added 1953 Progress: resolved 2161, reused 0, downloaded 2082, added 2078 Progress: resolved 2161, reused 0, downloaded 2158, added 2160 Progress: resolved 2161, reused 0, downloaded 2159, added 2161, done .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js .../node_modules/@prisma/engines postinstall: Done .../esbuild@0.18.20/node_modules/esbuild postinstall$ node install.js .../prisma@5.3.1/node_modules/prisma preinstall$ node scripts/preinstall-entry.js .../esbuild@0.18.20/node_modules/esbuild postinstall: Done .../prisma@5.3.1/node_modules/prisma preinstall: Done .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js .../node_modules/@prisma/client postinstall: prisma:warn We could not find your Prisma schema at `prisma/schema.prisma`. .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client. .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message. .../node_modules/@prisma/client postinstall: Done .../canvas@2.11.2/node_modules/canvas install$ node-pre-gyp install --fallback-to-build --update-binary .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info it worked if it ends with ok .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node-pre-gyp@1.0.10 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info using node@18.17.0 | linux | x64 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp http GET https://github.com/Automattic/node-canvas/releases/download/v2.11.2/canvas-v2.11.2-node-v108-linux-glibc-x64.tar.gz .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libcairo.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libjpeg.so.62 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libxml2.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgmodule-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpcre.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpixman-1.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/canvas.node .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgdk_pixbuf-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpango-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libstdc++.so.6 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfontconfig.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/canvas.node.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas.node.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/init.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/ImageData.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/register_font.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Backends.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasRenderingContext2d.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Image.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/PdfBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/Backend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/ImageBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/backend/SvgBackend.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasPattern.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/bmp/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/bmp/BMPParser.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/closure.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/CanvasGradient.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/Canvas.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/.deps/Release/obj.target/canvas/src/color.o.d .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpangoft2-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgio-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas.node .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasPattern.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/register_font.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/closure.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/ImageData.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasGradient.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Backends.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/SvgBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/PdfBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/Backend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/backend/ImageBackend.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/CanvasRenderingContext2d.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/init.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/bmp/ .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/bmp/BMPParser.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/color.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Image.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/obj.target/canvas/src/Canvas.o .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgif.so.7 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libglib-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/librsvg-2.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfribidi.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpng16.so.16 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libz.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libpangocairo-1.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libffi.so.7 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libcairo-gobject.so.2 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libgobject-2.0.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libexpat.so.1 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libfreetype.so.6 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info install unpacking Release/libharfbuzz.so.0 .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info extracted file count: 74 .../canvas@2.11.2/node_modules/canvas install: [canvas] Success: "/repo/node_modules/.pnpm/canvas@2.11.2/node_modules/canvas/build/Release/canvas.node" is installed via remote .../canvas@2.11.2/node_modules/canvas install: node-pre-gyp info ok .../canvas@2.11.2/node_modules/canvas install: Done .../keytar@7.9.0/node_modules/keytar install$ prebuild-install || npm run build .../keytar@7.9.0/node_modules/keytar install: Done WARN Failed to create bin at /repo/packages/components/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/prettier-plugin/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/hub/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/vscode-ext/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/squiggle-lang/dist/cli/index.js' devDependencies: + @changesets/cli 2.26.2 + prettier 3.0.3 + turbo 1.10.14 + turbo-ignore 1.10.14 WARN Failed to create bin at /repo/packages/prettier-plugin/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/prettier-plugin/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/components/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/components/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/vscode-ext/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/vscode-ext/node_modules/@quri/squiggle-lang/dist/cli/index.js' WARN Failed to create bin at /repo/packages/hub/node_modules/.bin/squiggle. ENOENT: no such file or directory, open '/repo/packages/hub/node_modules/@quri/squiggle-lang/dist/cli/index.js' Done in 26.2s
trunk init
2/2 ✓⡿ Downloading Trunk 1.17.1... ⡿ Downloading Trunk 1.17.1... ⢿ Downloading Trunk 1.17.1... ⣻ Downloading Trunk 1.17.1... ⣽ Downloading Trunk 1.17.1... ⣾ Downloading Trunk 1.17.1... ⣷ Downloading Trunk 1.17.1... ✔ Downloading Trunk 1.17.1... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 13 linters were enabled (.trunk/trunk.yaml) actionlint 1.6.26 (7 github-workflow files) checkov 3.0.12 (54 json, 16 yaml files) git-diff-check (934 files) markdownlint 0.37.0 (77 markdown files) (created .markdownlint.yaml) osv-scanner 1.4.2 (1 lockfile file) oxipng 9.0.0 (7 png files) prettier 3.0.3 (5 css, 1 graphql, 23 javascript, 54 json, 77 markdown, 679 typescript, 15 yaml files) shellcheck 0.9.0 (4 shell files) (created .shellcheckrc) shfmt 3.6.0 (4 shell files) taplo 0.8.1 (1 toml file) trivy 0.46.0 (16 yaml files) trufflehog 3.60.4 (935 files) yamllint 1.32.0 (15 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
Here are my self-reviews of my changes at sweep/copy-to-clipboard
.
Here is the 1st review
Thank you for your contribution. However, there are a few changes that need to be made before this PR is ready: - Please add the import statement for `useClipboard` from `react-use` at the top of the `SquiggleEditor.tsx` file. - Add a button next to the "Unsaved Draft" label. This button should have an `onClick` handler that calls the `copyToClipboard` function. - The button should be disabled if the "Unsaved Draft" is empty. You can use the `disabled` attribute of the button element for this. - Optionally, show a tooltip or a toast notification when the content is successfully copied to the clipboard. This can be done by checking the state returned by the `useClipboard` hook. Please make these changes and update the PR. If you need any help, feel free to ask.
I finished incorporating these changes.
💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request. Join Our Discord
Note: You'll need to edit SquiggleSnippetDraftDialog.tsx
Description of suggestion or shortcoming:
There have been instances where my code breaks the editor, but I still want to get it to edit it and similar.
Checklist
- [X] Modify `packages/components/src/components/SquiggleEditor.tsx` ✓ https://github.com/quantified-uncertainty/squiggle/commit/4b74c7cd735a7073ade592fc15df432a16b906d7 - [X] Check `packages/components/src/components/SquiggleEditor.tsx` ✗ - [X] Modify `packages/components/src/components/SquiggleEditor.tsx` ✓ https://github.com/quantified-uncertainty/squiggle/commit/31cdd7d393606258f9aa1538b9060b815bcc843b - [X] Check `packages/components/src/components/SquiggleEditor.tsx` ✗ - [X] Modify `packages/components/src/components/SquiggleEditor.tsx` ✓ https://github.com/quantified-uncertainty/squiggle/commit/ef2ad6decf435c75297c34c1318aff33ca46b140 - [X] Check `packages/components/src/components/SquiggleEditor.tsx` ✗ - [X] Check `packages/components/src/components/SquiggleEditor.tsx` ✗ - [X] Check `packages/components/src/components/SquiggleEditor.tsx` ✗ ![Flowchart](http://24.199.78.105:8082/public/daa1d70704029749a745253a9b92df43eeedbd4a3213b201d719a86c83420096_2352_flowchart.svg)