Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Find in Files] No results found even though many occurrences #55323

Closed
Razzlegames opened this issue Nov 25, 2021 · 7 comments
Closed

[Find in Files] No results found even though many occurrences #55323

Razzlegames opened this issue Nov 25, 2021 · 7 comments

Comments

@Razzlegames
Copy link
Contributor

Razzlegames commented Nov 25, 2021

Godot version

  • 3.3.3.stable
  • 3.4

System information

Windows 10

Issue description

After updating to 3.3.3.stable I noticed "Find in Files" stopped functioning for me in this specific project.

image

I haven't altered any of the default search extensions either:

image

This appears to be a bug or a bad configuration. I didn't look into if there were any tag caches implemented by Godot.

Steps to reproduce

Unknown: Appears to be a specific state that I cannot reproduce in other projects.

However, it always exists in this project.

Minimal reproduction project

No response

To look into

https://github.com/godotengine/godot/pull/54305/files

@Razzlegames
Copy link
Contributor Author

If I get time I'll poke around the C++ debugger to see if I can figure anything out

@KoBeWi
Copy link
Member

KoBeWi commented Nov 25, 2021

I think it will be difficult to debug without access to this specific project.

Does removing .import folder help? What if you replace project.godot with an empty one?

@Razzlegames
Copy link
Contributor Author

Razzlegames commented Nov 26, 2021

I think it will be difficult to debug without access to this specific project.

I agree. I'll see if I can create a min project

Does removing .import folder help?

No changes

What if you replace project.godot with an empty one?

No changes

  • Confirmed search working when reverting back to 3.3.2-stable.
  • Not working on
    • 3.3.3-stable
    • 3.4

@Razzlegames
Copy link
Contributor Author

OK this wasn't too hard.

I think this is the issue.

  • if .gdignore is in a directory it skips parsing this dir all together.

f84de49

Is this intended? My impression of .gdignore was its intent was to exclude specific files ONLY if they match a pattern expression called out in the .gdignore file. (similar to .gitignore)

  • I have .gdignore in root of project
    • It calls out my tests sub dir ./Tests
  • One is blank and was auto placed in there by the editor?
    • It's in ./.import

I think this could be a bug?

@Zireael07
Copy link
Contributor

@Razzlegames: Nope, .gdignore files do NOT work like .gitignore (this was recently made clearer in the docs since a LOT of people made that mistake). They ignore the whole directory, as you observed.

@Calinou
Copy link
Member

Calinou commented Nov 26, 2021

See also #53583 which was rejected.

@Razzlegames
Copy link
Contributor Author

Ah ok. That's a bit unexpected. I'll stop working on my patch then :(

Thanks guys. I'll close this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants