Community
Participate
Working Groups
Eclipse IDE for C/C++ Developers Version: Oxygen.3a Release (4.7.3a) Build id: 20180405-1200 I am running Ubuntu Linux 19.10 PROBLEMS WITH CODE FOLDING: The folds are constantly opening by themselves. 1.) Editing the line of a folded section makes them open by themselves. 2.) Pressing ENTER on a line that is folded makes the fold open. I do this to move the folded line down to space them out. 3.) Pressing ENTER on the line above can make the fold below open. 4.) Pressing ENTER on any line can make folds below that point open by themselves. 5.) The cross symbols indicating the fold is closed displays sometimes when it is not. 6.) The dash symbol indicating the fold is open displays sometimes when it is not. 7.) Sometimes the symbol is missing entirely. 8.) Sometimes the code is folded , and there is no symbol to open it , and i cant get to my code at all! Even a restart does not fix it. 9.) While trying to close all the self-openeing folds , the code preview open every time and covers the code I want to close. This is the solution I would like to see is: 1.) No fold ever opens unless I click the cross button. 2.) No fold ever closes unless I click the dash button. 3.) Hovering on the button never spams the folded code preview. 4.) Pressing ENTER on the line with the cross does NOT open the fold. 5.) Pressing ENTER on the line above the cross does NOT open the fold. 6.) Pressing ENTER on the line below the cross does NOT open the fold. 7.) Editing the line with the cross does NOT open the fold. And another strange thing... The symbol at the end of the folded line, ( which looks like a outlined space character with two dots at the bottom. ) which is what actually what I thought was supposed to be the code preview, gets moved down a line , like a newline was put before it. It appears alone on a line below the folded code section. And it does not do anything at all when I hover over it. This bug is making me bald. 8)
Created attachment 281722 [details] animated gif of failure
Hi Jason, Thank you for the bug report against CDT. Hi Platform folk, I am moving this bug report to the Eclipse Platform project as I believe these are all common issues affecting many editors in Eclipse. I have attached an animated gif showing one of the bigger problems, when a code block can't be expanded. In the gif I am using Java. and when I introduce and remove a syntax error, the code folding is left in a broken state.
Any errors in the log?
(In reply to Andrey Loskutov from comment #3) > Any errors in the log? No.
I looked at attachment 281772 [details] , and I have never encountered that problem. My problems seem to be different. What are you using to make one of those animated .gif images? I could try to get examples of what I am seeing here in the same fassion. I am running on Ubuntu 19.10.
I am running 18.04 and I used peek to make gifs. https://github.com/phw/peek If it turns out that the case you have is Cat specific I will split the bug up.
(In reply to Jonah Graham from comment #6) >... Cat specific... *CDT specific
Created attachment 281753 [details] void when creating a new function , typing is swallowed by next existing function.
Created attachment 281754 [details] enter When I press enter , everything opens.
Thanks for the pointer to peek , that is a gem of a tool! Here are two images that show at least 2 examples of what I am getting. The first is called 'void'. This is where the start of my function gets swallowed up for some reason. I do not press anything on the keyboard but void and a space , I do not press enter here. The second is called 'enter' and is what happens when I make an edit and press enter. It expands everything. I have to go back and close everything in the file every time I press enter on anything. That includes cut and paste as well. Both examples are after a restart.
Created attachment 281755 [details] void updated .gif.
Created attachment 281756 [details] enter updated .gif.
Can someone please tell me what is causing this problem , or , what I can turn off to make it stop. I just cant work like this anymore.
Hi Jason, I am sorry this is causing you problems with your workflow. I don't know what the underlying problem is or how to workaround it, other than just not folding code in the first place.