Skip to content

Commit 826eb62

Browse files
committed
Make troubleshooting more clear
1 parent 9fbadca commit 826eb62

1 file changed

Lines changed: 46 additions & 11 deletions

File tree

doc/troubleshooting.rst

Lines changed: 46 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,58 @@
33
Troubleshooting
44
===============
55

6-
Although we do our best, *Dfetch* can always do something unexpected.
7-
A great deal of *Dfetch* functionality is dependent on plain-old command line commands.
6+
Sometimes *Dfetch* may not behave as expected. This is could be because it relies on
7+
standard command-line tools such as ``git`` to be available on your system. This section will help you
8+
diagnose problems and understand what is happening behind the scenes.
89

9-
First of all, it is important to see what tools the system has.
10-
This can be seen with :ref:`dfetch environment<environment>`.
10+
Step 1: Check your environment
11+
------------------------------
1112

12-
Each command *Dfetch* performs and its result can be shown with increasing the verbosity
13-
with the `-v` flag. For example, if an :ref:`dfetch import<import>` is giving strange results, re-run it with::
13+
Before anything else, it's helpful to see which tools *Dfetch* can detect on your system.
14+
This shows missing or incompatible dependencies. Run:
15+
16+
.. code-block:: bash
17+
18+
dfetch environment
19+
20+
Compare the output to the expected tools your commands require.
21+
22+
.. asciinema:: asciicasts/environment.cast
23+
24+
Step 2: Use verbose mode
25+
-----------------------
26+
27+
If a specific *Dfetch* command gives unexpected results, run it with the ``-v`` flag
28+
to see exactly what *Dfetch* is doing:
29+
30+
.. code-block:: bash
1431
1532
dfetch -v import
1633
17-
Reporting issues
18-
----------------
19-
We are glad to help, if you you are stuck, either create an issue_ on github or contact us through gitter_!
34+
Verbose output shows each command *Dfetch* executes and its result, making it easier
35+
to spot errors, missing tools, or other issues.
36+
There can be various issues with for instance contacting or authenticating with the remote
37+
repository or with local settings. By running the ``git`` or ``svn`` command in isolation
38+
the issue can be shown more clearly.
39+
40+
Step 3: Reporting issues
41+
------------------------
42+
43+
If you cannot resolve a problem, we're happy to help! Check for any existing `GitHub Issues`_.
44+
When reporting an issue, please include:
45+
46+
1. The output of ``dfetch environment``
47+
2. The verbose output of the failing command (``dfetch -v <command>``)
48+
3. Your operating system and shell information
49+
50+
You can report issues via:
51+
52+
- `GitHub Issues`_
53+
- `Gitter`_ community chat
54+
55+
.. _`GitHub Issues`: https://github.com/dfetch-org/dfetch/issues
56+
.. _`Gitter`: https://gitter.im/dfetch-org/community
2057

21-
.. _issue: https://github.com/dfetch-org/dfetch/issues
22-
.. _gitter: https://gitter.im/dfetch-org/community
2358

2459
Security issues
2560
----------------

0 commit comments

Comments
 (0)