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

Notebook protocol go-to-definition support #408

Merged
merged 12 commits into from
Aug 22, 2023

Conversation

jasongrout
Copy link
Contributor

@jasongrout jasongrout commented Jul 28, 2023

This is a work-in-progress PR to add go to definition support on top of the notebook protocol developed in #389 by @tkrabel-db.

Likely each plugin, such as go to definition, will need to be modified to support the notebook syncing messages. We'll try to abstract out general patterns where possible, though.

@jasongrout jasongrout changed the title WIP Notebook protocol go-to-definition support Notebook protocol go-to-definition support Jul 28, 2023
@jasongrout
Copy link
Contributor Author

I think this minimally works, and the test passes now.

@jasongrout jasongrout marked this pull request as ready for review July 28, 2023 23:16
@ccordoba12
Copy link
Member

Hey @jasongrout, nice to see you here! I took a quick look at PR #389 and it looks quite good, so I'll try to merge it next week.

@jasongrout
Copy link
Contributor Author

jasongrout commented Jul 30, 2023

Hey @jasongrout, nice to see you here! I took a quick look at PR #389 and it looks quite good, so I'll try to merge it next week.

Awesome! @tkrabel-db and I are using python-lsp-server at Databricks for LSP support, and we are excited to contribute things like notebook protocol support that would be helpful for the whole community. As you saw on the other ticket, @tkrabel-db is eager to iterate on this repo to help maintain and improve the dev workflow as well.

@ccordoba12
Copy link
Member

As you saw on the other ticket, @tkrabel-db is eager to iterate on this repo to help maintain and improve the dev workflow as well.

Great! That would be really helpful because I don't have much time lately to maintain this project.

@jasongrout
Copy link
Contributor Author

I rebased this PR on top of the develop branch, now that #389 is merged.

@ccordoba12 ccordoba12 added this to the v1.8.0 milestone Aug 11, 2023
@ccordoba12 ccordoba12 added the enhancement New feature or request label Aug 11, 2023
@ccordoba12
Copy link
Member

@jasongrout, this only requires to fix the code style issues reported by our failing workflow. The rest looks good to me.

@jasongrout
Copy link
Contributor Author

I pushed some changes that address the pylint errors. The biggest change is factoring out extracting the cell data (pylint was complaining about too many local variables, as a hint that the complexity was too large).

Since the black formatting PR was merged, of course there are conflicts. My hope is that running black on this pr will be enough to resolve those, though.

@jasongrout
Copy link
Contributor Author

@ccordoba12, @tkrabel-db - I think this is ready for review again.

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jasongrout, please merge again with develop to get the changes done in PR #418 and see if your PR passes with them.

test/test_notebook_document.py Outdated Show resolved Hide resolved
@ccordoba12
Copy link
Member

@jasongrout, please run black again on test_notebook_document.py to make our style checks pass.

Then I'll merge, unless @tkrabel-db has something else to say.

@jasongrout
Copy link
Contributor Author

@jasongrout, please run black again on test_notebook_document.py to make our style checks pass.

Done!

Copy link
Member

@ccordoba12 ccordoba12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jasongrout!

@ccordoba12 ccordoba12 merged commit 3f08d8c into python-lsp:develop Aug 22, 2023
10 checks passed
@jasongrout
Copy link
Contributor Author

@ccordoba12 - we're trying to figure out a plan for deploying the changes in this PR. Do you have a rough idea of a timeline for releasing 1.8.0? If it's going to be a while, would it be possible to do a 1.8.0 prerelease? What can we do to help with the 1.8.0 release?

@ccordoba12
Copy link
Member

What can we do to help with the 1.8.0 release?

There are some minor issues that I'd like to address for 1.8.0, so if you could give me a hand with them, I'd really appreciate it. They have to do with preventing simple errors here and there.

@smacke
Copy link
Contributor

smacke commented Sep 7, 2023

There are some minor issues that I'd like to address for 1.8.0, so if you could give me a hand with them, I'd really appreciate it.

I actually didn't see this before I started going through, but I think I have PRs open now that should address all of these:

Since the first one requires a change on the json rpc side, it probably needs a version bump in the requirements there as well -- let me know if I can help with that.

@ccordoba12
Copy link
Member

Thanks a lot @smacke for your help with this! I'll review your PRs tomorrow.

Since the first one requires a change on the json rpc side, it probably needs a version bump in the requirements there as well -- let me know if I can help with that.

No worries, I'll take care of that when doing the release.

@smacke
Copy link
Contributor

smacke commented Sep 7, 2023

Thanks a lot @smacke for your help with this! I'll review your PRs tomorrow.

No problem and awesome! Thanks a bunch Carlos.

@ccordoba12
Copy link
Member

I just released 1.8.0. Thanks guys for all your help!

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

Successfully merging this pull request may close these issues.

None yet

3 participants