plasma-manager icon indicating copy to clipboard operation
plasma-manager copied to clipboard

rc2nix error: setting outside of group: MenuBar=Disabled (RuntimeError)

Open RGBCube opened this issue 2 years ago • 5 comments

I am getting this error while trying to run the rc2nix script:

./rc2nix:126:in `block (2 levels) in parse': /home/nixos/.config/dolphinrc: setting outside of group: MenuBar=Disabled (RuntimeError)
        from ./rc2nix:115:in `each'
        from ./rc2nix:115:in `block in parse'
        from ./rc2nix:114:in `open'
        from ./rc2nix:114:in `parse'
        from ./rc2nix:180:in `block in run'
        from ./rc2nix:176:in `each'
        from ./rc2nix:176:in `run'
        from ./rc2nix:266:in `<main>'

RGBCube avatar May 03 '23 08:05 RGBCube

same issue

CHN-beta avatar Jul 10 '23 02:07 CHN-beta

it works fine when you remove the groupless setting though

RGBCube avatar Jul 10 '23 08:07 RGBCube

Same for me.

nix run github:pjones/plasma-manager
Traceback (most recent call last):
        8: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:266:in `<main>'
        7: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:176:in `run'
        6: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:176:in `each'
        5: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:180:in `block in run'
        4: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:114:in `parse'
        3: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:114:in `open'
        2: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:115:in `block in parse'
        1: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:115:in `each'
/nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:126:in `block (2 levels) in parse': /home/cosmos/.config/dolphinrc: setting outside of group: MenuBar=Disabled (RuntimeError)

@RGBCube How do you mean that?

ShalokShalom avatar Oct 29 '23 10:10 ShalokShalom

Same for me.

nix run github:pjones/plasma-manager
Traceback (most recent call last):
        8: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:266:in `<main>'
        7: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:176:in `run'
        6: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:176:in `each'
        5: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:180:in `block in run'
        4: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:114:in `parse'
        3: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:114:in `open'
        2: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:115:in `block in parse'
        1: from /nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:115:in `each'
/nix/store/g8q4grnxyl32y2hxsx8gzflpvfxzxp7y-rc2nix.rb:126:in `block (2 levels) in parse': /home/cosmos/.config/dolphinrc: setting outside of group: MenuBar=Disabled (RuntimeError)

@RGBCube How do you mean that?

Delete the MenuBar=Disabled line, then it will work. Still weird that this isn't accounted for, tho

RGBCube avatar Oct 29 '23 11:10 RGBCube

@pjones This is a default KDE setting. rc2nix currently fails at a vanilla configuration.

@RGBCube

Delete the MenuBar=Disabled line, then it will work. Still weird that this isn't accounted for, tho

Thanks a lot. I enabled the menubar manually in Dolphin itself, and this does not solve it. The same error occurs again.

The choice in Dolphin does not reflect a change at /.config/dolphinrc.

And it is also without an annotated [Category], it is on top of the file, simply lonely sitting there.

Screenshot_20231029_121443

When I remove it at the file directly, and then add it back with Dolphin, does it set it at the correct location. And it then has the correct annotation as well.

Screenshot_20231029_124655

This seems like some configuration issue from Nix/KDE maybe.

Garuda does not seem to have this issue, but it is heavily themed out of the box. So not saying much. :)

ShalokShalom avatar Oct 29 '23 11:10 ShalokShalom