Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Node LTS dev version/update CONTRIBUTING.md #609

Closed

Conversation

rgarner
Copy link
Contributor

@rgarner rgarner commented Nov 17, 2023

Also update CONTRIBUTING.md to match.

All of the below fixed by #612, which no longer uses the deprecated sync method provided by @wdio/sync

For contribution, add versions we know to work together. @wdio/sync brings fibers, which needs compilation. That compilation fails for some combinations of Node and Python:

ValueError: invalid mode: 'rU' while trying to load binding.gyp

or

npm ERR! ../src/fibers.cc:27:65: error: no member named 'kFinalizer' in 'v8::WeakCallbackType'
npm ERR!                 handle.SetWeak(val, WeakCallbackShim<F, P>, WeakCallbackType::kFinalizer);
npm ERR!                                                             ~~~~~~~~~~~~~~~~~~^

Fixes #608.

.nvmrc Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
Also update CONTRIBUTING.md to match.

For contribution, add versions we know to work together. @wdio/sync
brings fibers, which needs compilation. That compilation fails for some
combinations of Node and Python:

```
ValueError: invalid mode: 'rU' while trying to load binding.gyp
```

or

```
npm ERR! ../src/fibers.cc:27:65: error: no member named 'kFinalizer' in 'v8::WeakCallbackType'
npm ERR!                 handle.SetWeak(val, WeakCallbackShim<F, P>, WeakCallbackType::kFinalizer);
npm ERR!                                                             ~~~~~~~~~~~~~~~~~~^
```

Fixes alphagov#608.
@rgarner rgarner force-pushed the add-dev-versions-for-python-and-node branch from dce97be to c7995df Compare November 17, 2023 14:44
@rgarner rgarner changed the title Add known compatible Python/Node dev versions Add Node LTS dev version/update CONTRIBUTING.md Nov 18, 2023
@colinrotherham
Copy link
Contributor

@rgarner Morning 👋

Do you mind giving this PR branch a try?

Turns out WebdriverIO "sync" mode is deprecated (via @wdio/sync) so has been updated

Looks like it's this that was causing the Python node-gyp + fibers build

@rgarner
Copy link
Contributor Author

rgarner commented Nov 20, 2023

@colinrotherham Great! I can yes. Should be able to get to it this afternoon?

@colinrotherham
Copy link
Contributor

@colinrotherham Great! I can yes. Should be able to get to it this afternoon?

Perfect, thank you

@colinrotherham
Copy link
Contributor

Thanks again for this PR @rgarner, I've moved your changes into 5eb8510 as part of:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

Can't set up dev environment/fibers won't compile
2 participants