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

zeromq hack #189

Closed
wants to merge 2 commits into from
Closed

zeromq hack #189

wants to merge 2 commits into from

Conversation

softwarenerd
Copy link
Contributor

@softwarenerd softwarenerd commented Feb 18, 2023

I've found a potential, temporary path forward with the zeromq 6.0.0-beta.6 vs 6.0.0-beta.16 problem.

Basically, this PR does three things:

  1. It switches jupyter-adapter back to zeromq 6.0.0-beta.6. This is the only release of zeromq that builds out of the box on macOS. (There is a big issue related to this here which they will have to fix at some point, and we should chime in there about the issues we're seeing.)
  2. It alters the jupyter-adapter/scripts/postinstall.ts file to only do things on macOS.
  3. On non-macOS platforms, it temporarily changes the version of zeromq from 6.0.0-beta.6 to 6.0.0-beta.16 during yarn install. When yarn install is complete, it undoes this change.

There is output during yarn install on Windows and Linux that indicates what is happening. During preinstall, you will see:

---------------> SLAMMING extensions/jupyter-adapter/package.json zeromq version to beta.16

And during postinstall you will see:

---------------> SLAMMING extensions/jupyter-adapter/package.json zeromq version back to beta.6

The Positron: Build macOS Release action is happy with this PR:

image

@softwarenerd softwarenerd changed the title Sn zeromq hack zeromq hack Feb 18, 2023
@softwarenerd softwarenerd deleted the sn-zeromq-hack branch February 21, 2023 21:24
wesm pushed a commit that referenced this pull request Mar 28, 2024
Merge pull request #189 from posit-dev/feature/wait-lsp

 Sync LSP with positron-r
--------------------
Commit message for posit-dev/positron-python@bdb0b65:

Sync LSP with positron-r

This makes the necessary changes to the Python LSP to keep it in sync
with the following PRs for positron-r:

- posit-dev/ark#71
- #934
- #1144

It improves the interaction between Positron and the LSP. Instead of
Positron repeatedly trying to reconnect to the LSP server until it's
ready, now Positron waits for the server to notify it with a
`server_started` message over the LSP comm.

I also made minor changes to `lsp.py` to add more logging and
mark methods/attributes as private.

I tested repeatedly restarting with `Cmd+Shift+0` ~20 times on Python
3.8 and 3.12 as well as refreshing with `Cmd+R` and all worked well.


Authored-by: Wasim Lorgat <[email protected]>
Signed-off-by: Wasim Lorgat <[email protected]>
wesm pushed a commit that referenced this pull request Mar 28, 2024
Merge pull request #189 from posit-dev/feature/wait-lsp

 Sync LSP with positron-r
--------------------
Commit message for posit-dev/positron-python@bdb0b65:

Sync LSP with positron-r

This makes the necessary changes to the Python LSP to keep it in sync
with the following PRs for positron-r:

- posit-dev/ark#71
- #934
- #1144

It improves the interaction between Positron and the LSP. Instead of
Positron repeatedly trying to reconnect to the LSP server until it's
ready, now Positron waits for the server to notify it with a
`server_started` message over the LSP comm.

I also made minor changes to `lsp.py` to add more logging and
mark methods/attributes as private.

I tested repeatedly restarting with `Cmd+Shift+0` ~20 times on Python
3.8 and 3.12 as well as refreshing with `Cmd+R` and all worked well.


Authored-by: Wasim Lorgat <[email protected]>
Signed-off-by: Wasim Lorgat <[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.

1 participant