sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
809 stars 39 forks source link

"Reveal in Side Bar" Working Inconsistently #6069

Open thoran opened 1 year ago

thoran commented 1 year ago

Description of the bug

  1. Check.
  2. I'd like to attach a video. Can I do that?
  3. NA

"Reveal in Side Bar" contextual menu will fail to work consistently. I suspect it might have something to do with the new "select_across_groups": true setting, since I'm pretty sure that I didn't observe this behaviour previously to enabling that.

Steps to reproduce

So, sometimes (I'm not sure under what circumstances yet.) when I attempt to use the "Reveal in Side Bar" contextual menu it will refuse to co-operate, stating in the gutter that: "File not found in open folders". However, if I open the same file by double-clicking on it in the file tree, it will open another copy of the same file in the next tab in that group, if I was just using the first copy of the file. Then when I use the "Reveal in Side Bar" contextual menu, it works.

I can repeat this too, even while both files are open. So, I'll select another file and use the "Reveal in Side Bar" contextual menu to find a different file in the file tree and then return to the other two of the same file and they both behave the same. The original one fails to find itself in the file tree and the second, more recently opened one can find itself.

Expected behavior

I expect that if I have a file which is in the current project that it will be able to find it in the "Reveal in Side Bar" contextual menu.

Actual behavior

Sometimes, a file which is in the current project does not find itself in the file tree via the "Reveal in Side Bar" contextual menu.

Sublime Text build number

4151

Operating system & version

macOS 13

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information

No response

BenjaminSchaaf commented 1 year ago

Are you perhaps using a case-sensitive file system? Does it happen in safe mode?