<blockquote>
<p>Cannot execute tool "grep" - means problem with launching grep itself.</p>
</blockquote>
<p>Well that is actually what failed, the Glib call to execute the grep command, no command can be launched in a non-existent working directory, so that system call fails.</p>
<blockquote>
<p>Check the path setting in preferences - means problem with path to grep executable in Geany settings.</p>
</blockquote>
<p>Yes probably could be clearer that this is just guidance or advice that "This may be due to the path of the grep executable being wrong in Geany settings".  I guess at one time in the past this was a common cause of problems so the guidance was added.</p>
<blockquote>
<p>More correct in this case would message "C:\Sources\inside-pre-test\Модули интерфейса" not exists</p>
</blockquote>
<p>Geany gets an error code <code>G_SPAWN_ERROR_CHDIR</code> back from <a href="https://developer.gnome.org/glib/stable/glib-Spawning-Processes.html#GSpawnError">Glib</a>,  so "Failed to change to the working directory" is a reasonable message.  The glib error code it doesn't tell why it failed to change the directory.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1347#issuecomment-268975837">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ7VKvfvxBBbGRHTYFAwnAObJ6Z7Hks5rK64ygaJpZM4LTtvN">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ16mABJbPyX6pB5iYZe9My1pwQ_xks5rK64ygaJpZM4LTtvN.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/issues/1347#issuecomment-268975837"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@elextr in #1347: \u003e Cannot execute tool \"grep\" - means problem with launching grep itself.\r\n\r\nWell that is actually what failed, the Glib call to execute the grep command, no command can be launched in a non-existent working directory, so that system call fails.\r\n\r\n\u003e Check the path setting in preferences - means problem with path to grep executable in Geany settings.\r\n\r\nYes probably could be clearer that this is just guidance or advice that \"This may be due to the path of the grep executable being wrong in Geany settings\".  I guess at one time in the past this was a common cause of problems so the guidance was added.\r\n\r\n\u003e More correct in this case would message \"C:\\Sources\\inside-pre-test\\Модули интерфейса\" not exists\r\n\r\nGeany gets an error code `G_SPAWN_ERROR_CHDIR` back from [Glib](https://developer.gnome.org/glib/stable/glib-Spawning-Processes.html#GSpawnError),  so \"Failed to change to the working directory\" is a reasonable message.  The glib error code it doesn't tell why it failed to change the directory."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1347#issuecomment-268975837"}}}</script>