Author Topic: Replace in files..  (Read 1980 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2288
  • Hero Points: 197
  • Text
Replace in files..
« on: September 10, 2019, 07:09:14 pm »
I did a ReplaceInFiles for "\r\n" to "\n"
using regex, in subfolders
Preview All.
Exclusions: "<Default Excludes>;samples\;test-classes\"

When I did it for file types "*.cs", it worked as expected.
I changed it for file types "*", then I get prompted:
"No more differences. Proceed to next file?"
Before the DIFF window comes up.

#1: This dialog doesn't belong here.
#2: It has "OK/Cancel" instead of "Yes/No".


Also, I tried to figure out what file it might be complaining about with PROCMON.
I didn't, but I did find something else pretty strange:

Root of Find and Replace: C:\src\dir_001\common\dir_002\dir_003\dir_004\dir_005\src
Weird filename that showed up in PROCMON:
Code: [Select]
C:\src\dir_001\common\dir_002\dir_003\dir_004\common\refactored-C:\src\dir_001\common\dir_002\dir_003\dir_004\dir_005\src\app.config
I don't know why Slick would access that file, but it should not have tried.

"refactored" isn't a file/directory name anywhere in this directory tree.
For reference, the "common" directory appears in a few places:
    C:\src\dir_001\common\dir_002\dir_003\dir_004\common\
    C:\src\dir_001\common\dir_002\dir_003\dir_004\dir_005.Test\common\
    C:\src\dir_001\common\dir_002\dir_003\dir_004\dir_005\src\common\


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2608
  • Hero Points: 141
Re: Replace in files..
« Reply #1 on: September 10, 2019, 07:17:32 pm »
I will look into this.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Replace in files..
« Reply #2 on: September 11, 2019, 08:36:42 pm »
jporkkahtc: Is the project/workspace you are using when you get the strange "refactored" filename a Visual Studio solution?  Are the project files it something you can share or part of github repo I can access?  I just identified an issue in another C# project, that may be related it.

jporkkahtc

  • Senior Community Member
  • Posts: 2288
  • Hero Points: 197
  • Text
Re: Replace in files..
« Reply #3 on: September 11, 2019, 09:25:45 pm »
I was working with an SlickStack issue with Dan when I came across this problem.
Dan says he fixed the stack -- maybe related??

I found that it uses that weird filename every time I click any file in the "Modified files" list.

This happens even when there is no workspace and no files are open.

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Replace in files..
« Reply #4 on: September 12, 2019, 01:30:54 pm »
Found it, it is a temp file created by the Diff view for storing the modified results.  It is normal, nothing to worry about here.