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

Update VS Code to 1.61.2 #2005

Merged
merged 1 commit into from
Nov 12, 2021
Merged

Conversation

Rheeseyb
Copy link
Contributor

We had to revert the update to 1.62.0 (#1995) because there were issues building it on macos and during the deploy. This PR instead updates us to the previous version, 1.61.2, as that doesn't include the dependency on @parcel/watcher, which was causing the issue.

The issue itself is that unfortunately nix has fallen behind on macos support, relying on a now very outdated SDK (10.12). There is a team working on this, but that appears to be underfunded, and also appears to be resorting in some cases to reverse engineering binaries: NixOS/nixpkgs#101229 (comment)

There is a discourse thread for tracking this here: https://discourse.nixos.org/t/nix-macos-monthly/12330/11, but note this pretty key update from October:

Somewhere around macOS 10.13 Apple has stopped releasing all the headers that are necessary to build it. XPC no longer seems avoidable as a dependency, CoreFoundation seems incomplete (we rely on Darling for the missing bits now), there’s some packages hosted on opensource.apple.com 4 but not listed in the macOS releases, like neon and OpenBSM. I don’t see an alternative to getting the XPC headers from the SDK and likewise for some other missing headers. There’s several projects online where missing headers are worked around by stubbing, like OSXPrivateSDK 5 and GoVPN 6, but it doesn’t seem like a good way to deal with the issue. Fabricating a constant can lead to unexpected behavior. That’s why I intend to use binaries from the SDK whenever dependencies aren’t available. This will be a step back with regards to building from source unfortunately.

With that in mind, it looks like we indeed need to consider using Docker to provide the base layer.

@relativeci
Copy link

relativeci bot commented Nov 11, 2021

Job #398: Bundle Size — 42.81MB (~-0.01%).

56dd741 vs 57ffdcc83116a21e7b1728916d1f52e78a90d8d8

Changed metrics (1/8)
Metric Current Baseline
Initial JS 27.72MB(~+0.01%) 27.72MB
Changed assets by type (1/7)
            Current     Baseline
JS 42.79MB (~-0.01%) 42.8MB

View Job #398 report on app.relative-ci.com

@github-actions
Copy link
Contributor

Link to test editor
This PR:
Scroll Canvas: 72.9ms (58.8-158.7ms) | Resize: 127.2ms (27.6-266.1ms) | Selection: 378.9ms (323.9-813.4ms) | Calc Pi: 41ms (39-62ms) | Empty Dispatch: 71.3ms (55-214.6ms) | (Chart)
Compare with last deployed Master:
Scroll Canvas: 163.3ms (77.3-330.5ms) | Resize: 134.8ms (25.5-267.4ms) | Selection: 376.6ms (320.1-1032.7ms) | Calc Pi: 41ms (39-53ms) | Empty Dispatch: 66.7ms (50-794.4ms) | (Chart)

@Rheeseyb Rheeseyb merged commit 3644f02 into fix/pnpm-yarn-latest-nodejs Nov 12, 2021
@Rheeseyb Rheeseyb deleted the chore/vscode-1.61 branch November 12, 2021 10:32
Rheeseyb added a commit that referenced this pull request Nov 12, 2021
…61.2

* fix(shell.nix) Use nodejs 16 versions of yarn and pnpm

* chore(shell.nix) remove test script

* fix(shell.nix) Use yarn.js for the yarn executable

* chore(shell.nix, release.nix) Update to a more recent nixpkgs

* fix(server) Updated the server cabal.project.freeze

* chore(vscode) Update VS Code to 1.61.2 (#2005)

* Revert "chore(vscode-build) Update vscode build to 1.62.0 (#1995)" (#1998)

This reverts commit 464e44a.

* fix(editor) Maintain selection while editing arbitrary elements. (#1996)

- Fixes #1986.
- Remove the check for `event.kind` in `initMessaging` so that backspaces
  definitely get included.
- Add a catch inside `cursorPositionChanged` as a safety measure against
  failures in there.
- Added `walkElementsWithin` to handle `ElementsWithin` for an arbitrary
  block similarly to `walkElementChildren`.
- Factored out `compareAndWalkElements` from `walkElementChildren` so that
  it could be used in `walkElementsWithin`, adding an additional clause for
  `JSXArbitraryBlock` instances.
- Removed `getHighlightBoundsForUids` as it's unused.
- Removed `removeNonExistingViewReferencesFromState` and `elementPathStillExists`
  as they are unused.

* oops I forgot to commit these!

* chore(vscode) Re-created the v1.61.2 patch after a botched merge with master

* fix(vscode.patch) Again, recreated the patch after another botched merge

* fix(shell.nix) Revert an accidental rename of the extension

Co-authored-by: Sean Parsons <[email protected]>
Co-authored-by: Balazs Bajorics <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants