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

Custom task list token in Visual Studio 2022 again doesn't work for Python. #8114

Closed
AbhimanyuVS opened this issue Dec 14, 2024 · 11 comments
Closed
Assignees

Comments

@AbhimanyuVS
Copy link

Describe the bug

#7151 is reoccurring.

Steps to Reproduce

  1. Create a Python project in Visual Studio 2022.
  2. Create a source file in the above project.
  3. Add a # TODO to the source file.

Expected behaviour

The task should show up in the task list.

Additional context and screenshots

Image

Configuration information (If you are providing a diagnostics file (see below), skip this section)

VS Version: 17.12.3
PTVS version: 17.0.24269.5
Python version: 3.10.11
Debugger Type (if applicable): N/A

Diagnostics file

PythonToolsDiagnostics_20241213140530.log

@OleKoldRud
Copy link

Resetting Python state.
Traceback (most recent call last):
File "c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\extensions\microsoft\python\core\ptvsd_repl_launcher.py", line 33, in get_repl
import ptvsd.repl
File "c:\program files (x86)\microsoft visual studio\2019\community\common7\ide\extensions\microsoft\python\core\ptvsd\repl_init
.py", line 42, in
import imp
ModuleNotFoundError: No module named 'imp'

Internal error detected. Please copy the above traceback and report at
https://go.microsoft.com/fwlink/?LinkId=293415

Press Enter to close. . .

The interactive Python process has exited.

@AbhimanyuVS
Copy link
Author

@OleKoldRud, sorry, but I am not sure I understood what is happening here.

@OleKoldRud
Copy link

OleKoldRud commented Dec 16, 2024 via email

@StellaHuang95
Copy link
Contributor

@OleKoldRud Please open another bug report for your issue. It's better for us to address one issue at a time to ensure efficiency. Thank you!

@AbhimanyuVS I couldn't repro your issue using the latest VS, did you save your file? The hollow yellow bar indicates it's not saved yet.

@AbhimanyuVS
Copy link
Author

@StellaHuang95, yes, I've tried with both saved files and unsaved files. Here is an example with a saved file:

Image

The task list was working fine for over a year since the last time this issue occurred. Only sometime this past month has the task list stopped working for me.

What other information do you require from my end?

@StellaHuang95
Copy link
Contributor

Thanks, I was able to find similar issues in our internal issue tracker. Seems like something has changed in the upstream on the LSP client side, and they have fixed in the latest VS version. Could you update your VS to 17.13 and see if that repros? I just tried on Microsoft Visual Studio Enterprise 2022 (64-bit) - Preview Version 17.13.0 Preview 1.0 and that doesn't repro for me.

@AbhimanyuVS
Copy link
Author

@StellaHuang95, I downloaded and installed the preview build, and the task list is working correctly there.

Do I have to use the preview build if I want to use the task list?

@StellaHuang95
Copy link
Contributor

Unfortunately, yes for now. This is because VS has a long release cycle, which means that once we have identified and fixed an issue, it may take some time before the fix is incorporated into a new stable version of Visual Studio. Thanks.

@AbhimanyuVS
Copy link
Author

...and, the task list is gone again. This time from the Preview build as well.

I installed GitHub Copilot, to check out the free subscription. That was the only significant change I made.

Now no more task list... ☹️

@AbhimanyuVS
Copy link
Author

...and...

I think my VS2022 is haunted.

The task list showed up again (in the preview build), after I debugged some of the code I've been working on.

Gone one minute, then back the next.

Well, the good news is my task list is back, and I don't have to manually search for my TODOs... 😬

@AbhimanyuVS
Copy link
Author

AbhimanyuVS commented Dec 20, 2024

I have now tried closing and opening VS2022 multiple times. The task list seems to be appearing and disappearing randomly. I have no idea what is affecting it.

@StellaHuang95, what should I do at this point?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants