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

Formatted raw strings no longer work in 2021.5.0 #1241

Closed
nathanrpage97 opened this issue May 6, 2021 · 4 comments
Closed

Formatted raw strings no longer work in 2021.5.0 #1241

nathanrpage97 opened this issue May 6, 2021 · 4 comments
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version

Comments

@nathanrpage97
Copy link

Environment data

  • Language Server version: XXX
  • OS and version: XXX

Expected behaviour

formatted raw strings were previously supported, but are now broken.

Actual behaviour

XXX

Code Snippet / Additional information

data = "test"
x = fr"{data}\s" # breaks in 2021.5.0 (says data is unused, and improperly renders)
@github-actions github-actions bot added the triage label May 6, 2021
@jakebailey
Copy link
Member

This is the same as microsoft/pyright#1830 and will be fixed in the next release.

@jakebailey jakebailey added the fixed in next version (main) A fix has been implemented and will appear in an upcoming version label May 6, 2021
@github-actions github-actions bot removed the triage label May 6, 2021
@nathanrpage97
Copy link
Author

Thanks!

@jakebailey
Copy link
Member

Leaving open until we release the fix (shortly).

@jakebailey jakebailey reopened this May 6, 2021
@jakebailey
Copy link
Member

This issue has been fixed in version 2021.5.1, which we've just released. You can find the changelog here: https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#202151-6-may-2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed in next version (main) A fix has been implemented and will appear in an upcoming version
Projects
None yet
Development

No branches or pull requests

2 participants