-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Consider not logging warnings when not applicable (for pixi envs) #23901
Comments
Similar issue microsoft/vscode#223515 |
Like most other users in the issue threads, I also don't know what The warning message doesn't help because it doesn't give any info on what In my case, IntelliSense suggestions stop working midway through my session(I reload the window and it's back to normal, before entering the same loop) and I see this warning followed by an |
I started having issue with running pytest with conda environment recently (last 2 weeks), and I see a similar message, and not sure if it is related.
Please note the 2 python paths attempted above:
It seems that python extension is switching to using the base python module (instead of conda testtest env that was attempted first), just after the pixi error. I also tried to install pixi and ran pixi --version, but pixi didn't have that command. I am not even sure if that's the pixi (pypi pixi) it's looking for. I know I can install pytest in the base python env to fix this error, but then there are other dependencies that are missing as well, and defeats the purpose of using a conda environment with vscode. Currently, can't run unit tests, and I can't find any help about this online. Thanks UPDATE: It turned out related to experiment pythonTestAdapter, which is broken with conda, as it tries to look for bin/python/bin/python instead of bin/python location. |
@sfc-gh-melnacouzi I am facing the exact same problem. Miniconda + python 3.11.9 on macos. "python.experiments.optOutFrom": ["pythonTestAdapter"] |
This worked for me. |
Didn't change a thing for me, oddly enough. This is really irritating. |
Hi @Nekkowe! Are you able to try on the most recent release and make sure your VS Code is also up to date? We moved it out of warning level recently so it shouldn't appear. Secondly this isn't explicitly related to |
Hi @eleanorjboyd! Thank you for letting me know - on the latest release, the warning appears to changed to
|
@anthonykim1 - might have more context on this |
Yes, related: #23942
is the one message that I was very hesitant of leveling down further down. @Nekkowe Are you trying to use pixi environment? Otherwise you could safely ignore that warning. We could look at leveling this down further just like https://github.com/microsoft/vscode-python/pull/24164/files. |
I wasn't trying to use pixi environment, nope - I'd never installed, heard of, or had any intention of using pixi. So you can imagine my confusion seeing this warning! 😄 |
I don't see any reference to pixi in the logs, is there any special environment type I need to set up to verify this or is that good enough? @karthiknadig |
That is it. You should see something only if there is |
I think warning messages are being logged as follows, however this is causing some confusion amongst users.
Suggestion is to turn this into
trace
ordebug
, else it could lead to false alarms.microsoft/vscode-jupyter#15911
The text was updated successfully, but these errors were encountered: