question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Code Folding Occasionally Breaks

See original GitHub issue

Description

What steps will reproduce the problem?

The problem is that, occasionally, the arrow for code folding collapse and expansion disappears. This renders the code there inaccessible from the editor. The editor still grays out the function name, but it will not be expandable. The arrow only seems to disappear after collapsing a code block/function/class. This doesn’t happen everytime that I collapse the code block. I don’t know the exact order of clicks and where those clicks take place that make this issue manifest.

Versions

  • Spyder version: 4.0.1
  • Python version: 3.7.1
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Windows 10

Dependencies

atomicwrites >=1.2.0         :  1.3.0 (OK)
chardet >=2.0.0              :  3.0.4 (OK)
cloudpickle >=0.5.0          :  1.2.2 (OK)
diff_match_patch >=20181111  :  20181111 (OK)
intervaltree                 :  None (OK)
IPython >=4.0                :  7.11.1 (OK)
jedi =0.14.1                 :  0.14.1 (OK)
nbconvert >=4.0              :  5.6.1 (OK)
numpydoc >=0.6.0             :  0.9.2 (OK)
pexpect >=4.4.0              :  4.7.0 (OK)
pickleshare >=0.4            :  0.7.5 (OK)
psutil >=0.3                 :  5.6.7 (OK)
pygments >=2.0               :  2.5.2 (OK)
pylint >=0.25                :  2.4.4 (OK)
pyls >=0.31.2;<0.32.0        :  0.31.2 (OK)
zmq >=17                     :  18.1.0 (OK)
qdarkstyle >=2.7             :  2.7 (OK)
qtawesome >=0.5.7            :  0.6.0 (OK)
qtconsole >=4.6.0            :  4.6.0 (OK)
qtpy >=1.5.0                 :  1.9.0 (OK)
rtree >=0.8.3                :  0.8.3 (OK)
sphinx >=0.6.6               :  2.3.1 (OK)
spyder_kernels >=1.8.1;<2.0.0:  1.8.1 (OK)
watchdog                     :  None (OK)
cython >=0.21                :  None (NOK)
matplotlib >=2.0.0           :  3.1.1 (OK)
numpy >=1.7                  :  1.18.1 (OK)
pandas >=0.13.1              :  None (NOK)
scipy >=0.17.0               :  1.3.2 (OK)
sympy >=0.7.3                :  None (NOK)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ccordoba12commented, Feb 22, 2020

it involves the use of the option to move a line up in the Editor

This is really cool to know. Thanks a lot @dalthviz!

1reaction
goanpecacommented, Feb 21, 2020

@dalthviz please try to reproduce this issue. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Problem With Code Folding - Coding Horror
Folding is used to mask excessive length. The presence of folded code can lull developers into a false sense of what clean code...
Read more >
Intellisense Extremely Slow and buggy code Folding
code folding ( the +/- sign before scopes ) is broken and sometimes it doesn't show it. everything is becoming a pain. I'm...
Read more >
Code folding - Wikipedia
Code folding allows one to have long comments, but to display them only when required.
Read more >
271937 – Several code folding issues - Bugs - Eclipse
the folding fails to recognize regions that are foldable and produces horrible code layout with partly folded and unfolded parts at boundaries that...
Read more >
MPLAB-X V4.00 Does not fold code blocks on "for", "if", "do ...
Most other IDE code editors allow folding on "for", "if", "switch", "do-while" blocks etc. and some even recognise user-scope "{ }" blocks as ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found