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
refactored pysa_server.py to stage for Pysa's Language Server specific changes #409
Conversation
It looks like the server state is modified here: pyre-check/client/commands/v2/pysa_server.py Line 380 in 3a61444
Can you add some debugging statements to see if the Also, as a workaround, can you try just publishing all errors, regardless of open and close status? |
I bypassed the |
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
3eb73b1
to
d85d819
Compare
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
6 similar comments
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
Current working outputs: Where it fails/ doesn't work as expected: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Giving a preliminary review here, pending the split into multiple diffs that we discussed yesterday
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
…tracked by the server
f05b3be
to
50617b6
Compare
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@gbleaney has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Co-authored-by: Graham Bleaney <gbleaney@gmail.com>
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@gbleaney has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@m0mosenpai has updated the pull request. You must reimport the pull request before landing. |
@gbleaney has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Expected outcome for this PR is to display and highlight errors for
.pysa
files, via the Pysa VSCode Extension.This is part of the larger issue of creating a VSCode extension for Pysa in the MLH-Fellowship program listed here and has been discussed with @gbleaney before.
Possible milestones:
pysa_server.py
andpersistent.py
get_invalid_taint_models()
inquery.py
Output so far:
Errors are being calculated but are not being published due to
server_state.opened_documents
list being empty as show in the output. The publishing diagnostics function iterates over this list and sends the errors to VSCode. It's empty right now and hence, the errors are never published. (Opening/closing documents is not being detected)