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

Fix Find in Files invalid directory error #3818

Merged
merged 4 commits into from Apr 15, 2024
Merged

Conversation

ntrel
Copy link
Member

@ntrel ntrel commented Apr 5, 2024

When the Find in Files path doesn't exist, the status bar says "Cannot execute grep tool...: Failed to change the working directory. Check the path setting in Preferences". Which is confusing and hides the real problem in the middle of irrelevant text. Instead, show a dialog with the correct error only.

Fixes #1347.

Also show dialogs for no search text & bad search regex errors, rather than status bar messages.

@ntrel ntrel changed the title Improve search errors Fix Find in Files invalid directory error Apr 7, 2024
@elextr
Copy link
Member

elextr commented Apr 9, 2024

Agree, improving input validation is a better solution since the command return error does not actually identify the error.

LGBI

@ntrel ntrel merged commit 32bbe10 into geany:master Apr 15, 2024
7 checks passed
@ntrel ntrel deleted the search-errors branch April 15, 2024 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong error message when Directory for seach not exists
2 participants