BS5 Slider issue

After upgrading to the latest release, I’m experiencing erros in the IDE when adding a BS5 Slider to a form. The issue also occurs with the BS5 Slider sample project - the log file error is:

2024-06-09 22:49:22,485 - root - ERROR - An exception has occurred!
Traceback (most recent call last):
  File "MainFrame.py", line 1623, in OnMenuFileOpensampleprojectMenu
  File "IDEController.py", line 69, in wrapper
  File "IDEController.py", line 2334, in OpenProject
  File "ntpath.py", line 216, in basename
  File "ntpath.py", line 185, in split
TypeError: expected str, bytes or os.PathLike object, not NoneType
2024-06-09 22:49:52,248 - appstudio.editor.design - ERROR - Error during _display_selectors <Slider_bs5: b'Slider2'(0x8b5522ee4a9e449eb49b7822e446b42e) at 0x22d0a7aa8b0>
Traceback (most recent call last):
  File "appstudio\editor\design.py", line 983, in _display_selectors
KeyError: 'Slider2'
2024-06-09 22:49:57,731 - appstudio.editor.design - ERROR - Error during _display_selectors <Slider_bs5: b'Slider1'(0x4f1769fbdfb1459cac1d0881dfab15d5) at 0x22d0a7aa970>
Traceback (most recent call last):
  File "appstudio\editor\design.py", line 983, in _display_selectors
KeyError: 'Slider1'
2024-06-09 22:50:02,199 - appstudio.editor.design - ERROR - Error during _display_selectors <Slider_bs5: b'Slider2'(0x8b5522ee4a9e449eb49b7822e446b42e) at 0x22d0a7aa8b0>
Traceback (most recent call last):
  File "appstudio\editor\design.py", line 983, in _display_selectors
KeyError: 'Slider2'
2024-06-09 22:50:06,379 - appstudio.editor.design - ERROR - Error during _display_selectors <Slider_bs5: b'Slider1'(0x4f1769fbdfb1459cac1d0881dfab15d5) at 0x22d0a7aa970>
Traceback (most recent call last):
  File "appstudio\editor\design.py", line 983, in _display_selectors
KeyError: 'Slider1'
2024-06-09 22:50:24,809 - root - ERROR - An exception has occurred!
Traceback (most recent call last):
  File "appstudio\editor\design.py", line 818, in on_right_down
  File "appstudio\editor\design.py", line 755, in on_left_down
  File "appstudio\editor\design.py", line 631, in _hit_widget
KeyError: 'Slider2'
2024-06-09 22:50:25,713 - root - ERROR - An exception has occurred!
Traceback (most recent call last):
  File "appstudio\editor\design.py", line 818, in on_right_down
  File "appstudio\editor\design.py", line 755, in on_left_down
  File "appstudio\editor\design.py", line 631, in _hit_widget
KeyError: 'Slider2'
2024-06-09 22:50:26,375 - root - ERROR - An exception has occurred!
Traceback (most recent call last):
  File "appstudio\editor\design.py", line 818, in on_right_down
  File "appstudio\editor\design.py", line 755, in on_left_down
  File "appstudio\editor\design.py", line 631, in _hit_widget
KeyError: 'Slider2'
2024-06-09 22:50:27,640 - root - ERROR - An exception has occurred!
Traceback (most recent call last):
  File "appstudio\editor\design.py", line 818, in on_right_down
  File "appstudio\editor\design.py", line 755, in on_left_down
  File "appstudio\editor\design.py", line 631, in _hit_widget
KeyError: 'Slider2'

So far, I have been unable to reproduce this here.

What OS are you using? Anything else which might be a factor on your system?

Hi - I’m running on Windows 11 Home - and I can’t think of anything the laptop that might be causing the issue

The log also includes the following messages:

2024-06-09 22:47:13,976 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:13,976 - JFormat - ERROR - name<>''
2024-06-09 22:47:13,976 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:13,976 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:13,976 - JFormat - ERROR - name<>''
2024-06-09 22:47:13,976 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:13,976 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:13,976 - JFormat - ERROR - disabled<>''
2024-06-09 22:47:13,976 - JFormat - ERROR - name 'disabled' is not defined
2024-06-09 22:47:13,976 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:13,976 - JFormat - ERROR - name<>''
2024-06-09 22:47:13,976 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:13,976 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:13,976 - JFormat - ERROR - name<>''
2024-06-09 22:47:13,979 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:13,979 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:13,979 - JFormat - ERROR - disabled<>''
2024-06-09 22:47:13,979 - JFormat - ERROR - name 'disabled' is not defined
2024-06-09 22:47:13,979 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:13,979 - JFormat - ERROR - name<>''
2024-06-09 22:47:13,979 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:13,979 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:13,979 - JFormat - ERROR - disabled<>''
2024-06-09 22:47:13,979 - JFormat - ERROR - name 'disabled' is not defined
2024-06-09 22:47:13,979 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:13,979 - JFormat - ERROR - name<>''
2024-06-09 22:47:13,979 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:13,979 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:13,979 - JFormat - ERROR - disabled<>''
2024-06-09 22:47:13,979 - JFormat - ERROR - name 'disabled' is not defined
2024-06-09 22:47:14,216 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,216 - JFormat - ERROR - name<>''
2024-06-09 22:47:14,216 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:14,216 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,216 - JFormat - ERROR - disabled<>''
2024-06-09 22:47:14,216 - JFormat - ERROR - name 'disabled' is not defined
2024-06-09 22:47:14,247 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,247 - JFormat - ERROR - name<>''
2024-06-09 22:47:14,247 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:14,247 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,247 - JFormat - ERROR - name<>''
2024-06-09 22:47:14,247 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:14,247 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,247 - JFormat - ERROR - disabled<>''
2024-06-09 22:47:14,247 - JFormat - ERROR - name 'disabled' is not defined
2024-06-09 22:47:14,247 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,247 - JFormat - ERROR - name<>''
2024-06-09 22:47:14,247 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:14,247 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,247 - JFormat - ERROR - name<>''
2024-06-09 22:47:14,247 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:14,247 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,247 - JFormat - ERROR - disabled<>''
2024-06-09 22:47:14,247 - JFormat - ERROR - name 'disabled' is not defined
2024-06-09 22:47:14,247 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,247 - JFormat - ERROR - name<>''
2024-06-09 22:47:14,247 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:14,247 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,247 - JFormat - ERROR - name<>''
2024-06-09 22:47:14,247 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:14,247 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,247 - JFormat - ERROR - disabled<>''
2024-06-09 22:47:14,247 - JFormat - ERROR - name 'disabled' is not defined
2024-06-09 22:47:14,247 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,247 - JFormat - ERROR - name<>''
2024-06-09 22:47:14,247 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:14,247 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,247 - JFormat - ERROR - disabled<>''
2024-06-09 22:47:14,247 - JFormat - ERROR - name 'disabled' is not defined
2024-06-09 22:47:14,247 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,247 - JFormat - ERROR - name<>''
2024-06-09 22:47:14,247 - JFormat - ERROR - name 'name' is not defined
2024-06-09 22:47:14,247 - JFormat - ERROR - TOOLBOX/PROJECT BUG! FIX ME!
2024-06-09 22:47:14,247 - JFormat - ERROR - disabled<>''
2024-06-09 22:47:14,247 - JFormat - ERROR - name 'disabled' is not defined

I’m still getting nowhere trying to reproduce this.

Can you try uninstalling and reinstalling AppStudio to see if it makes a difference?

If it’s still happening, can you give me a step by step to reproduce?

Hi. Uninstalled and re-installed but got the same issue - see error log contents:

2024-06-10 21:46:22,802 - root - ERROR - An exception has occurred!
Traceback (most recent call last):
  File "appstudio\editor\design.py", line 818, in on_right_down
  File "appstudio\editor\design.py", line 755, in on_left_down
  File "appstudio\editor\design.py", line 631, in _hit_widget
KeyError: 'Slider2'

I simply open AppStudio. Open the BS5 Slider sample project. And right click on any element in the Design screen. It doesnt trigger the context menu for any element - and the log has the errors.

The same behaviour happens in my own app - unless I remove the Slider and I can then use the Design window again on forms in the project

Clicking on the control in the Design Screen was the missing step - thank you!

We’ll fix this.

This issue isn’t new to the latest release - it’s been there since the first release of AppStudio 9.

We’re working on this. In the meantime, what were you meaning to do with the right click? There may be a workaround.

It freezes the whole design window. I wanted to add child controls to an elememt and could not find any other way to do that as i couldnt select any of the form elements.

Yes, I’m able to see that too. Looks like the Slider needs some work.