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

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

Closed
eafpres opened this issue Nov 10, 2020 · 4 comments · Fixed by #10
Closed

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

eafpres opened this issue Nov 10, 2020 · 4 comments · Fixed by #10
Assignees
Milestone

Comments

@eafpres
Copy link

eafpres commented Nov 10, 2020

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 ccordoba12 transferred this issue from spyder-ide/spyder Nov 10, 2020
@ccordoba12
Copy link
Member

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

@ccordoba12 ccordoba12 changed the title Outline explorer not as expected in 4.2.0 Some cell patterns are detected in the Outline Nov 10, 2020
@ccordoba12 ccordoba12 changed the title Some cell patterns are detected in the Outline Some cell patterns are detected in the Outline explorer Nov 10, 2020
@ccordoba12 ccordoba12 added this to the v0.1.2 milestone Nov 10, 2020
@ccordoba12
Copy link
Member

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

  • # %% (already supported here).
  • #%%
  • # <codecell>
  • # In[

@ccordoba12 ccordoba12 changed the title Some cell patterns are detected in the Outline explorer Some cell patterns are not detected in the Outline explorer Nov 10, 2020
@eafpres
Copy link
Author

eafpres commented Nov 10, 2020

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

@ccordoba12
Copy link
Member

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

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 a pull request may close this issue.

3 participants