Skip to content

Commit 6f154da

Browse files
committed
Updating documentation related to FAQ/help/debug
1 parent 16d7bf7 commit 6f154da

File tree

2 files changed

+34
-5
lines changed

2 files changed

+34
-5
lines changed

doc/pymode.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,25 +712,30 @@ Highlight docstrings as pythonDocstring (otherwise as pythonString)
712712
1. Python-mode doesn't work
713713
---------------------------
714714

715-
Remember to get the latest and updated version of the project source code and
716-
also update the project submodules.
715+
First remember to get the latest and updated version of the project source
716+
code and also update the project submodules.
717717

718718
Clear all python cache/compiled files (`*.pyc` files and `__pycache__`
719719
directory and everything under it). In Linux/Unix/MacOS you can run:
720+
720721
`find . -type f -name '*.pyc' -delete && find . -type d -name '__pycache__' -delete`
721722

722723
Then start python mode with:
723724
`vim -i NONE -u <path_to_pymode>/debugvimrc.vim`
725+
724726
Reproduce the error and submit your python mode debug file. You can check its
725727
location with `:messages` for something like:
728+
726729
`pymode debug msg 1: Starting debug on: 2017-11-18 16:44:13 with file /tmp/pymode_debug_file.txt`
730+
727731
Please submit the entire content of the file along with a reasoning of why the
728732
plugin seems broken.
729733

730734
*Underlined do check for sensitive information in the file before
731735
*Underlined submitting!
732736

733737

738+
734739
2. Rope completion is very slow *pymode-rope-slow*
735740
-------------------------------
736741

readme.md

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ If your question is not described there then you already know what to do
140140
Nevertheless just a refresher on how to submit bugs:
141141

142142
**(From the FAQ)**
143+
143144
Clear all python cache/compiled files (`*.pyc` files and `__pycache__`
144145
directory and everything under it). In Linux/Unix/MacOS you can run:
145146

@@ -159,6 +160,15 @@ plugin seems broken.
159160

160161
***Do check for sensitive information in the file before submitting.***
161162

163+
Please, also provide more contextual information such as:
164+
165+
* your Operational System (Linux, WIndows, Mac) and which version
166+
* the `vim --version` output
167+
* which is your default python (`python --version`)
168+
* the python version that vim has loaded in your tests:
169+
* `:PymodePython import sys; print(sys.version_info)` output.
170+
* and if you are using virtualenvs and/or conda, also state that, please.
171+
162172
# Frequent problems
163173

164174
Read this section before opening an issue on the tracker.
@@ -172,10 +182,24 @@ checking (e.g. for async) add:
172182

173183
To your vimrc or exrc file.
174184

175-
## Symlinks on Windows
185+
## Symlinks on Windows
186+
187+
Users on Windows OS might need to add `-c core.symlinks=true` switch to
188+
correctly clone / pull repository. Example: `git clone --recurse-submodules
189+
https://github.com/python-mode/python-mode -c core.symlinks=true`
190+
191+
## Error updating the plugin
192+
193+
If you are trying to update the plugin (using a plugin manager or manually) and
194+
you are seeing an error such as:
195+
196+
> Server does not allow request for unadvertised object
197+
198+
Then we probably changed some repo reference or some of our dependencies had a
199+
`git push --force` in its git history. So the best way for you to handle it is
200+
to run, inside the `python-mode` directory:
176201

177-
Users on Windows OS might need to add `-c core.symlinks=true` switch to correctly clone / pull
178-
repository. Example: `git clone --recurse-submodules https://github.com/python-mode/python-mode -c core.symlinks=true`
202+
`git submodule sync --recursive`
179203

180204
# Documentation
181205

0 commit comments

Comments
 (0)