spyder-ide / pyls-spyder

Spyder extensions for the python language server (pyls)
MIT License
0 stars 6 forks source link

Some cell patterns are not detected in the Outline explorer #9

Closed eafpres closed 3 years ago

eafpres commented 3 years ago

Problem Description

Use of cells denoted by #%% no longer displays in outline explorer Use of comments denoted by #### no longer displays in outline explorer (even when option is checked)

What steps reproduce the problem?

  1. Create source code with #%% notation of cells and/or #### comments
  2. Save code file
  3. Outline does not show cells or special comments

What is the expected output? What do you see instead?

Expected output is the outline explorer shows cells and special comments in addition to functions

Actual output:
image image

Paste Traceback/Error Below (if applicable)


NA

Versions

* Spyder version: 4.2.0 None
* Python version: 3.7.4 64-bit
* Qt version: 5.12.9
* PyQt5 version: 5.12.3
* Operating System: Windows 10

Dependencies


# Mandatory:
atomicwrites >=1.2.0            :  1.4.0 (OK)
chardet >=2.0.0                 :  3.0.4 (OK)
cloudpickle >=0.5.0             :  1.3.0 (OK)
diff_match_patch >=20181111     :  20181111 (OK)
intervaltree >=3.0.2            :  3.1.0 (OK)
IPython >=4.0                   :  7.19.0 (OK)
jedi =0.17.2                    :  0.17.2 (OK)
jsonschema >=3.2.0              :  3.2.0 (OK)
nbconvert >=4.0                 :  5.6.1 (OK)
numpydoc >=0.6.0                :  0.9.2 (OK)
paramiko >=2.4.0                :  2.7.2 (OK)
parso =0.7.0                    :  0.7.0 (OK)
pexpect >=4.4.0                 :  4.8.0 (OK)
pickleshare >=0.4               :  0.7.5 (OK)
psutil >=5.3                    :  5.7.3 (OK)
pygments >=2.0                  :  2.5.2 (OK)
pylint >=1.0                    :  1.9.4 (OK)
pyls >=0.36.1;<1.0.0            :  0.36.1 (OK)
pyls_black >=0.4.6              :  0.4.6 (OK)
pyls_spyder >=0.1.1             :  0.1.1 (OK)
qdarkstyle >=2.8                :  2.8.1 (OK)
qtawesome >=0.5.7               :  0.7.3 (OK)
qtconsole >=4.7.7               :  4.7.7 (OK)
qtpy >=1.5.0                    :  1.9.0 (OK)
setuptools >=39.0.0             :  41.0.0 (OK)
sphinx >=0.6.6                  :  1.8.5 (OK)
spyder_kernels >=1.10.0;<1.11.0 :  1.10.0 (OK)
three_merge >=0.1.1             :  0.1.1 (OK)
watchdog >=0.10.3               :  0.10.3 (OK)
zmq >=17                        :  19.0.2 (OK)

# Optional:
cython >=0.21                   :  0.29.14 (OK)
matplotlib >=2.0.0              :  3.3.2 (OK)
numpy >=1.7                     :  1.19.3 (OK)
pandas >=1.1.1                  :  1.1.4 (OK)
scipy >=0.17.0                  :  1.4.1 (OK)
sympy >=0.7.3                   :  None (NOK)
ccordoba12 commented 3 years ago

Hey @eafpres, thanks for reporting. We're aware of these regressions and we'll fix them soon.

ccordoba12 commented 3 years ago

@andfoy, these are all the cell patterns we support in Spyder:

eafpres commented 3 years ago

@ccordoba12 Thank you for the quick update. Clarification--is #### supposed to work if show special comments is checked?

ccordoba12 commented 3 years ago

It should. We're tracking that on issue #8, please leave a comment there about it.