Dupes with regex extract formula

Discussion related to "Everything" 1.5 Alpha.
Post Reply
dougbenham
Posts: 24
Joined: Wed Mar 15, 2023 8:19 pm

Dupes with regex extract formula

Post by dougbenham »

Using 1.5.0.1371a.

With the following search..

Code: Select all

column1:=regex_extract($stem:,"^[^\-]+-\s\d\d.\d\d.") column1: dupe:column1
.. I find duplicates for a formula based column. It works great. However, when I open one of the file results, it disappears from the results until I hit F5.. and the file re-appears in the results.

The search token causing the bug is..

Code: Select all

column1:
.. If you exclude this, the behavior doesn't happen, opening a result file does not remove it from the results list. The reason I have this is because I want to only include results where the regex extraction succeeded.
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Dupes with regex extract formula

Post by void »

This issue is caused by an optimization in 1366.

Thank you for bringing the issue to my attention.

It will be fixed in the next alpha update.



I wonder why the file is being modified when opened?
The modified reason will be shown in the debug console (Tools -> Debug -> Console) as a USN event in Cyan color.
dougbenham
Posts: 24
Joined: Wed Mar 15, 2023 8:19 pm

Re: Dupes with regex extract formula

Post by dougbenham »

Results list contains 56 items. After opening 1 of the items, the following shows in the debug console:

Code: Select all

exec: first expr $exec("%1")
exec: command $exec("%1")
exec: fullfilename E:\test.mp4
exec: depth 0
exec: exec "%1")
exec: depth 1
exec: got "E:\test.mp4"
exec: shellexecute file:E:\test.mp4 param:
shellexecute invoke E:\test.mp4
sub buf killed
set 1 run history in 0.000051 seconds
exec: main thread regained focus
new results 55
update index C:
USN DATA_OVERWRITE PcaAppLaunchDic.txt
USN CLOSE DATA_OVERWRITE PcaAppLaunchDic.txt
read usn journal C: in 0.003708 seconds
updated C: in 0.000023 seconds
Maybe an important note, the test.mp4 is on a network share.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Dupes with regex extract formula

Post by NotNull »

The related filename.lnk file in %APPDATA%\Microsoft\Windows\Recent\ also temporary disappears.

(probably for the same reason, but mention it anyway)
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Dupes with regex extract formula

Post by void »

the test.mp4 is on a network share.
The modified reason will be shown in the debug console (Tools -> Debug -> Console) as a RDC event in Cyan color.

RDC = ReadDirectoryChange


The related filename.lnk file in %APPDATA%\Microsoft\Windows\Recent\ also temporary disappears.
The file is likely being modified so the same issue applies.
dougbenham
Posts: 24
Joined: Wed Mar 15, 2023 8:19 pm

Re: Dupes with regex extract formula

Post by dougbenham »

Strangely I am not seeing any USN or RDC events for the file in question or any of its parent directories. After those
exec:
lines, the file isn't mentioned again.
dougbenham
Posts: 24
Joined: Wed Mar 15, 2023 8:19 pm

Re: Dupes with regex extract formula

Post by dougbenham »

I figured it out, its the run history. Disabling the run history feature prevents the bug.
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: Dupes with regex extract formula

Post by void »

Everything 1.5.0.1372a fixes an issue with columna: not finding new results.
Post Reply