Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python error when multiple VBET 3.1.0 projects are open in QRV #106

Open
shelbysawyer opened this issue Feb 13, 2024 · 0 comments
Open

Python error when multiple VBET 3.1.0 projects are open in QRV #106

shelbysawyer opened this issue Feb 13, 2024 · 0 comments

Comments

@shelbysawyer
Copy link

shelbysawyer commented Feb 13, 2024

I've noticed that when I have multiple projects open via QRV, adding additional projects and/or layers (particularly of the same name), this error comes up:

              QRaveMapLayer.add_layer_to_map(item)
              File "C:/Users/shelby/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\qrave_toolbar\src\classes\qrave_map_layer.py", line 197, in add_layer_to_map
              elif lyr[0] == ancestry[0][0]: # bit of a hacky way to test if map layer is in the same named qproject
             IndexError: list index out of range

I think it's related to #100 (particularly the second error code I commented on that issue)

The tricky part about this error is that I don't get it all the time, and there seems to be no rhyme or reason to it. Sometimes I can have 3 or more projects open with no error-- other times, adding a second project produces this.

@shelbysawyer shelbysawyer changed the title Python error when multiple VBET projects are in use Python error when multiple VBET projects are open in QRV Feb 13, 2024
@shelbysawyer shelbysawyer changed the title Python error when multiple VBET projects are open in QRV Python error when multiple VBET 3.1.0 projects are open in QRV Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants