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

Visual Studio considering python 3.10 as 0.0 and giving warning of support being dropped for 0.0 when it shouldn't (2022 preview) #6795

Closed
vsfeedback opened this issue Nov 18, 2021 · 21 comments · Fixed by #6891
Assignees
Labels
fixed in next version A fix has been implemented an will appear in an upcoming version P1

Comments

@vsfeedback
Copy link

vsfeedback commented Nov 18, 2021

This issue has been moved from a ticket on Developer Community.


[severity:It bothers me. A fix would be nice]
! [image.png] (https://aka.ms/dc/image?name=B0a0125ba564a4f419e9faa345546259d637720302395575702_20211109-102039-image.png&tid=0a0125ba564a4f419e9faa345546259d637720302395575702)

There is not much to explain, the above is probably enough to explain the issue.


Original Comments

Feedback Bot on 11/8/2021, 11:04 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

(no solutions)

@AdamYoblick
Copy link
Member

We need to investigate if 3.10 is broken in debugging. 3.10 is not officially supported by PTVS at this time. We should add 3.10 to our CTI test matrix.

@AdamYoblick AdamYoblick added the needs investigation Could be an issue - needs investigation label Nov 18, 2021
@AdamYoblick AdamYoblick added the P1 label Dec 8, 2021
@pauljurczak
Copy link

3.10 is not officially supported by PTVS at this time.

PTVS page (https://docs.microsoft.com/en-us/visualstudio/python/overview-of-python-tools-for-visual-studio) gives completely different impression:

ptvs

@Artfunkel
Copy link

Artfunkel commented Feb 6, 2022

This bug prevents PTVS from recognising embedded Python 3.10 interpreters (e.g. within Blender 3.1). You can't debug Python code in these processes at all, even if you manually select it as the code type.

Please fix this soon!

@AdamYoblick
Copy link
Member

Will do, this is my next bug to fix :)

@taystarlingtech
Copy link

How do we fix this in the meantime?

@AdamYoblick
Copy link
Member

There is no fix in the meantime. Supporting a new version of python is not trivial, as our classes that wrap python c structs need to be updated to match.

In any case, this has been fixed and will be in the next preview version of VS.

@torzechowski1
Copy link

Maybe we need to get support for Python 0.0 the anarchy version of Python.

@oiChef
Copy link

oiChef commented Apr 11, 2022

MS should have released VS2022 with 3.9 not 3.10
This is still a problem in April.

@AdamYoblick
Copy link
Member

@oiChef I'm not sure what you mean. VS2022 DID release with 3.9 support, and WITHOUT support for 3.10. That's precisely what this bug is reporting, and that's what was fixed.

@oiChef
Copy link

oiChef commented Apr 13, 2022

Odd. I just 2 days ago installed 2022 on a system, it was preconfigured with 3.10.
I manually installed 3.9.
Do you need more details about exactly what I installed? I pulled it right from MS. I see today there was an update a day after (12th). I downloaded on the 11th.
vs22

@AdamYoblick
Copy link
Member

AdamYoblick commented Apr 13, 2022

I'm not sure what you mean when you say "preconfigured with 3.10". There is no version of Visual Studio that has Python 3.10 bundled in it.

When you select "Python development" from the Visual Studio installer, you can optionally choose to install the Python interpreter, which we bundle into VS as a convenience (bundle being a very loose term here, we grab binaries from python.org shortcuts, nothing is really bundled). The checkout is unchecked by default, because we would rather you install it from python.org. See below:

image

You'll know if Visual Studio installed your version of python, because it will be under a shared VS directory, not in the normal python.org install location. It sounds like maybe your machine had python 3.10 installed on it before the VS install?

@oiChef
Copy link

oiChef commented Apr 13, 2022

You are correct. The system has an earlier installation of 3.10 in WindowsApps folder.
I did choose Python Development workload from the VS installer.
I later installed the 3.9 as I had missed the installation details selection. 3.9 is in the Shared folder.
Sorry for the goose chase. First time trying python in VS. Upgraded from VS2015.
Thank you for clearing this up.

@baylf2000
Copy link

@AdamYoblick

@oiChef I'm not sure what you mean. VS2022 DID release with 3.9 support, and WITHOUT support for 3.10. That's precisely what this bug is reporting, and that's what was fixed.

Has it been fixed? I have the very latest version of VS2022 and I get the same error I have always had when trying to use Python 3.10

image

@torzechowski1
Copy link

@AdamYoblick

@oiChef I'm not sure what you mean. VS2022 DID release with 3.9 support, and WITHOUT support for 3.10. That's precisely what this bug is reporting, and that's what was fixed.

Has it been fixed? I have the very latest version of VS2022 and I get the same error I have always had when trying to use Python 3.10

image

I am writing code using 3.10. to me this is just an annoying message. We can write code all day long.

@baylf2000
Copy link

@torzechowski1

I am writing code using 3.10. to me this is just an annoying message. We can write code all day long.

Perhaps you should read the issues above. It certainly has multiple impacts on people, despite your own personal indifference.

@oiChef
Copy link

oiChef commented Apr 14, 2022

@torzechowski1

I am writing code using 3.10. to me this is just an annoying message. We can write code all day long.

Perhaps you should read the issues above. It certainly has multiple impacts on people, despite your own personal indifference.

I retracted mine. Newbie of python inside recent-VS.

@AdamYoblick AdamYoblick added fixed in next version A fix has been implemented an will appear in an upcoming version and removed needs investigation Could be an issue - needs investigation labels Apr 14, 2022
@AdamYoblick
Copy link
Member

@baylf2000 Yes, the issue has been fixed in an internal preview version, but that fix might not have made it out to the public yet.

@MichelBeaudet
Copy link

Hi,
Very annoying. Where can we get the fix ?

@AdamYoblick
Copy link
Member

@MichelBeaudet You should be able to download the latest preview version of VS2022 and it will contain the fix. Alternatively, you can wait for 17.2 GA (on 5/10) and that will also contain the fix.

@MichelBeaudet
Copy link

@MichelBeaudet You should be able to download the latest preview version of VS2022 and it will contain the fix. Alternatively, you can wait for 17.2 GA (on 5/10) and that will also contain the fix.

Hi,
Thanks for the answer.

I already have VS2022 version 17.1.5 and still have the error! So I understand that there's another version between 17.1.5 and 17.2.

@HolidayTheBoi
Copy link

HolidayTheBoi commented Apr 23, 2022

Hi,
Thanks for the answer.
I already have VS2022 version 17.1.5 and still have the error! So I understand that there's another version between 17.1.5 and 17.2.

Just enable preview updates in the installer

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

Successfully merging a pull request may close this issue.

10 participants