question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

playwright does not support FreeBSD as a platform.

See original GitHub issue

OS/Web Information

  • Web Browser: Firefox 95.0
  • Local OS: FreeBSD 13.0
  • Remote OS: macOS 12.0.1
  • Remote Architecture: amd64
  • code-server --version: N/A

Steps to Reproduce

  1. cd code-server
  2. Fix argon2 dependency to 0.28.2 to build.

  3. yarn global add $PWD

Expected

It should build.

Actual

— stderr —

error /usr/home/khng/.config/yarn/global/node_modules/code-server/test/node_modules/playwright: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /usr/home/khng/.config/yarn/global/node_modules/code-server/test/node_modules/playwright
Output:
/usr/home/khng/.config/yarn/global/node_modules/code-server/test/node_modules/playwright/lib/utils/registry.js:233
            throw new Error('Unsupported platform: ' + process.platform);

Logs

Screenshot

Notes

This issue can be reproduced in VS Code: Yes/No

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
khng300commented, Dec 11, 2021

My guess for that problem was that node-argon2 was only trying to enforce C++17 on Linux only. Here is the fix for this part: ranisalt/node-argon2#332

Oh wow! You submitted a patch upstream - that is awesome! 🙌 I hope that resolves it.

That is only one of the problem, another one is actually mentioned above. I do want to know if it is safe to skip the test/ module as a temporary workarond.

EDIT: I noticed that yarn/npm --production should do the job

1reaction
khng300commented, Dec 10, 2021

I am doing so to run the current snapshot from the main branch

In this case, it sounds similar to contributing. Assuming you followed the docs, let’s see if we can figure out what’s wrong.

so the first thing to attempt was to try 0.28.2 of node-argon2 which reverted the broken commit.

Ah, I see. Is this bug Linux specific? I’m surprised @code-asher isn’t running into this as he is on Linux.

Hmm…I really regret adding node-argon2. It’s causing a lot of trouble. We are looking into replacing it potentially here.

My guess for that problem was that node-argon2 was only trying to enforce C++17 on Linux only. Here is the fix for this part: https://github.com/ranisalt/node-argon2/pull/332

Read more comments on GitHub >

github_iconTop Results From Across the Web

Playwright vs DOH comparison of testing frameworks - Knapsack Pro
What are the differences between Playwright and DOH? Alternatives for testing frameworks in JavaScript.
Read more >
PhantomJS vs Playwright | What are the differences?
Node library; Headless supported; Enables cross-browser web automation. PhantomJS and Playwright are both open source tools. PhantomJS with 27.4K GitHub stars ...
Read more >
Chapter 23. Virtualization | FreeBSD Documentation Portal
Virtualization software allows multiple operating systems to run simultaneously on the same computer.
Read more >
What DigitalOcean Learned When Adding FreeBSD Support
“It was the second-highest user-voiced request,” says Neal Shrader, Senior Software Engineer at DigitalOcean, discussing their move to ...
Read more >
Use findChromiumChannel in Playwright Internal With Examples ...
Run Playwright Internal automation tests on LambdaTest cloud grid ... 'linux' || process.platform === 'freebsd') cacheDirectory = process.env.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found