texstudio icon indicating copy to clipboard operation
texstudio copied to clipboard

empty search results after closing file searched

Open octaeder opened this issue 2 years ago • 3 comments

Environment

  • TeXstudio: current dev
  • OS: Windows 10

Expected behavior

It seems that the result data is lost. In this case I suggest removing the remaining tree items (including those with the "File closed").

Actual behavior

After an extended search over a project I close the root file where I started the search. Moving the mouse pointer over the search result list, the list gets updated: The tree items with file names are changed to "File closed (3)" where (3) is the number of search results. But following three tree items are empty.

image

How to reproduce

Have a root file opened, maybe one that includes files. Start a search you can expect that there are hits in the root and some of the included files (this is optional). Press extended search button, then close the root file. Hover the mouse pointer over the search results.

octaeder avatar Nov 18 '23 01:11 octaeder

not reproducible. Please be more precise about the set up.

sunderme avatar Nov 18 '23 12:11 sunderme

I can reproduce this with a simple temporary file created with wizard:

\documentclass[10pt,a5paper]{article}
\usepackage{mathtools}
\begin{document}

\end{document}

with ctrl+f search for doc and find 3 hits. Press extended search button. Close the untitled file. Ext. Search panel immediately shows

image

Click below the text in the ext. search panel to find empty lines:

image image image

octaeder avatar Nov 18 '23 13:11 octaeder

Maybe my problem here: https://github.com/texstudio-org/texstudio/issues/3595

Have something to do with the problem here

Could that be?

JonasW314 avatar Apr 10 '24 11:04 JonasW314