vscode-comment-anchors icon indicating copy to clipboard operation
vscode-comment-anchors copied to clipboard

No comment anchors detected

Open Alexey-B opened this issue 1 year ago • 14 comments

Describe the bug After some kind of update in 2024, all the anchors disappeared (there were enough of them according to the project). The new ones don't applied either.

To Reproduce No idea

Expected behavior The anchors is appeared.

NoAnchors

Alexey-B avatar Jan 25 '24 13:01 Alexey-B

Describe the bug After some kind of update in 2024, all the anchors disappeared (there were enough of them according to the project). The new ones don't applied either.

To Reproduce No idea

Expected behavior The anchors is appeared.

NoAnchors

Have you changed your config file in any way? Have you tried comment anchors on other projects as well?

Try uninstalling and reinstalling the plugin as well

Zodsmar avatar Jan 27 '24 20:01 Zodsmar

I didn't change config file and I tried deleting and reinstalling this extension. No success. I even created a new workspace and disabled all extensions except Comment Anchors. The comments are still not picked up. Again - in 2023 everything worked with the same settings.

Alexey-B avatar Jan 29 '24 12:01 Alexey-B

I checked on Windows 8.1, everything works there. Looks like a problem in Windows 11.

Alexey-B avatar Feb 01 '24 09:02 Alexey-B

It’s also interesting that autofill suggests, but again doesn’t see anything. 123 456

Alexey-B avatar Feb 08 '24 15:02 Alexey-B

I checked on Windows 8.1, everything works there. Looks like a problem in Windows 11.

I've run some tests on my end and I can't seem to reproduce the issue at all. I've tried different environments and different languages everything seems to work.

image

I am running Windows 11 as well. Is there any other information you can provide? Can you show your settings.json and also if you made any modifications delete them and try just the default settings. (Deleting the plugin doesn't remove any settings.json that you added so if something is incorrect there it will exist on deletion and reinstalls)

Zodsmar avatar Feb 17 '24 20:02 Zodsmar

Hi @Zodsmar ! I have attached my simplest project, there is essentially nothing in it, no settings. I checked again (Windows 11): version v.1.10.4 is still not working. But when I rolled back to version 1.10.3, everything miraculously appeared (screen). Test1.zip v 1 10 3

Alexey-B avatar Feb 19 '24 15:02 Alexey-B

Hi @Zodsmar ! I have attached my simplest project, there is essentially nothing in it, no settings. I checked again (Windows 11): version v.1.10.4 is still not working. But when I rolled back to version 1.10.3, everything miraculously appeared (screen). Test1.zip v 1 10 3

image

Yeah I have no idea. It works perfectly for me. If anyone else has any ideas I'm all ears but if I can't reproduce it, I'm not sure how to even go about "fixing" it

Zodsmar avatar Feb 19 '24 20:02 Zodsmar

I can attest to what @Alexey-B is saying. I'm sure I'm just now noticing this issue although the update to 1.10.4 happened 2 months ago. Can confirm that downgrading to 1.10.3 solves the issue. I hope in the near future I'll be able to fork this and work on the issue.

redpwilliams avatar Mar 07 '24 19:03 redpwilliams

be able to

If you do fork it and get the issue in a dev environment please let me know cause I have tried so many things and just can't reproduce it at all

Zodsmar avatar Mar 07 '24 23:03 Zodsmar

@Zodsmar Now I'm as lost as you. I ran the extension locally at the latest version 1.14.0 and in a clean environment, this feature of the extension worked fine. Contrasted to before where I had to downgrade to 1.13.0 to have a working feature. I tried to do a git bisect to find where the bug was introduced, but in each commit from the release of 1.13.0 to 1.14.0, I saw no issues with the feature. To make things more confusing (for me, at least), I'm running 1.14.0 in my normal environment and the extension works fine now. I don't know what changed between today and a few days ago, as my other extensions, settings, and vscode version have stayed the same. My windows machine's version has not changed since mid February. I'd love to know if the problem has been resolved for you, @Alexey-B.

redpwilliams avatar Mar 11 '24 22:03 redpwilliams

Really strange issue as I personally have not run into any problems either, so I'm unsure how it could be fixed. If anyone does find a cause or a possible fix I'll gladly incorporate it and release a new version of the extension

macjuul avatar Mar 11 '24 23:03 macjuul

Everything is still the same for me and I still don’t understand the reason. In version 1.10.4 (something happened to the version numbering?) there are no anchors, in version 1.10.3 there are.

Alexey-B avatar Mar 12 '24 08:03 Alexey-B

I have an issue and I'm not sure if it's related here. My Comment Anchors in the activity bar is showing "Workspace disabled" and nothing else, ie, no "File Anchors" the way I'd expected. I've disabled workspace scans myself manually (using the related CA config), because the workspace has so many files in it and scanning all of them leads to a long list, which is difficult to find the current file in. (Maybe I'm doing things wrong? or missing some jumping-to-current-file functionality? IDK.) So I disabled workspace scans to get File Anchors the way it's shown in the pictures in the README and posted by others in issues. So how do I get the File Anchors to work for me? Also, if it's not possible in workspaces to have file anchors, then 1. Please mention this limitation in the README. 2. How do I jump to the current file in the scan result tree? Thanks in advance.

aderchox avatar Aug 07 '24 23:08 aderchox