krasa / GrepConsole

IntelliJ plugin - https://plugins.jetbrains.com/plugin/7125
Apache License 2.0
428 stars 57 forks source link

Folding of multiple differnt patterns simultaneously does not work #299

Open ipcoder opened 4 months ago

ipcoder commented 4 months ago

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')]
smartskaft2 commented 1 month ago

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

krasa commented 1 month ago

I will have to report it to Jetbrains.