GrepConsole icon indicating copy to clipboard operation
GrepConsole copied to clipboard

Folding of multiple differnt patterns simultaneously does not work

Open ipcoder opened this issue 1 year ago • 3 comments

Describe the bug I am trying to define two distinct folding conditions.

When I am enabling any one of them - it works. But when when both are enabled - works only one.

I tried to define as separate groups or inside same group - no difference.

May be I am doing that incorrectly?

To Reproduce Below are my settings:

image

Log lines to reproduce the behavior:

☎ resman       |WARNING|18:28:12|🚦Discovered 1 -> 5 configs of <DataSourceRM> in [PosixPath('/home/ilyap/code/algodev/inu/datacast/tests')]
☎ resman       |  DEBUG|18:28:12|🚦Discovering resources for 1 resource types...
☎ resman       |  DEBUG|18:28:12|🚦Discovering DataSource [PosixPath('/home/ilyap/code/algodev/inu/datacast/tests')]
☎ datacast.scan|  DEBUG|18:28:12|🚦Scanned   10: 🖿3/3 🗏7 in /home/ilyap/code/algodev/inu/datacast/tests
☎ datacast.scan|  DEBUG|18:28:12|🚦Scanned    6: 🖿4/4 🗏2 in /home/ilyap/code/algodev/inu/datacast/tests/data
☎ datacast.scan|  DEBUG|18:28:12|🚦Scanned    1: 🖿1/1 🗏0 in /home/ilyap/code/algodev/inu/datacast/tests/data/datasets
☎ datacast.scan|  DEBUG|18:28:12|🚦Scanned    5: 🖿4/4 🗏1 in /home/ilyap/code/algodev/inu/datacast/tests/data/datasets/toy
☎ datacast.scan|  DEBUG|18:28:12|🚦Scanned    1: 🖿1/1 🗏0 in /home/ilyap/code/algodev/inu/datacast/tests/data/tiny_stereo
☎ datacast.scan|  DEBUG|18:28:12|🚦Scanned    6: 🖿0/0 🗏6 in /home/ilyap/code/algodev/inu/datacast/tests/data/res
☎ resman       |  DEBUG|18:28:12|🚦Discovery is resetting <ResManager:DataSourceRM>[5] scan(FIRST:1) in Locator<EIA> [/home/ilyap/code/algodev/inu/datacast/tests]
☎ resman       |  DEBUG|18:28:12|🚦Added DataSourceRM: 【DatacastTest[🗸]<path:/home/ilyap/…/data/datasource.yml>】
☎ resman       |  DEBUG|18:28:12|🚦Added DataSourceRM: 【Toy[🗸]<path:/home/ilyap/…s/toy/datasource.yml>】
☎ resman       |  DEBUG|18:28:12|🚦Added DataSourceRM: 【source_2[🗸]<path:/home/ilyap/…res/source_2.src.yml>】
☎ resman       |  DEBUG|18:28:12|🚦Added DataSourceRM: 【FT3D[🗸]<path:/home/ilyap/…es/test_FT3D.src.yml>】
☎ resman       |  DEBUG|18:28:12|🚦Added DataSourceRM: 【source_1[🗸]<path:/home/ilyap/…res/source_1.src.yml>】
☎ resman       |WARNING|18:28:12|🚦Discovered 5 -> 5 configs of <DataSourceRM> in [PosixPath('/home/ilyap/code/algodev/inu/datacast/tests')]
☎ resman       |  DEBUG|18:28:12|🚦Discovering resources for 4 resource types...
☎ resman       |  DEBUG|18:28:12|🚦Discovering DataSource [PosixPath('/home/ilyap/code/algodev/inu/datacast/tests')]

ipcoder avatar Feb 18 '24 16:02 ipcoder

I've noticed this too

When two following lines match two different folding expressions, they both get folded into the same fold.

I do think this behavior would be reasonable when no placeholder value is set. But when using a placeholder value, I would expect only the lines matching that expression gets folded into it

smartskaft2 avatar May 22 '24 09:05 smartskaft2

I will have to report it to Jetbrains.

krasa avatar May 22 '24 09:05 krasa

I'm have the problem with folding too and don't know how to solve it. I'm just letting know so I can be notified if it's fixed if it's bug.

[!NOTE] Not sure if this is the same and also not sure if I'm doing everything right. I would appreciate any advice or suggestions on how to achieve what I want.

I'd like to have separate folding for each element: Info, Debug and Trace. I was able to get different elements to collapse separately, but when they are placed sequentially, they fold into one group:

Folded output Inside the fold

Settings

unennhexium avatar Jul 13 '24 03:07 unennhexium