You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eel version
0.16.0 Describe the bug
Commented lines of code changes how Eel executes under very specific circumstances involving functions generated at runtime. These functions seem to require two eel.expose calls to be exposed properly, but only the first needs to execute. The second can be commented.
I'm not sure if the code I'm writing should work or not, but it definitely shouldn't do this.
The app will execute, and the python call will not generate an error, but the function will not be executed.
Expected behavior
The commented line should have no impact on code execution, as it is commented.
Additionally, it is strange that this functionality requires both of these eel.expose calls for the function to be exposed successfully. Neither expose alone works, but the second one can be commented and it will still work.
Is this even supposed to work? It is a somewhat strange use-case.
System Information
OS: Windows 11 x64
Browser: Chrome
Python Distribution: Python 3.11
The text was updated successfully, but these errors were encountered:
Eel version
0.16.0
Describe the bug
Commented lines of code changes how Eel executes under very specific circumstances involving functions generated at runtime. These functions seem to require two eel.expose calls to be exposed properly, but only the first needs to execute. The second can be commented.
I'm not sure if the code I'm writing should work or not, but it definitely shouldn't do this.
To Reproduce
Steps to reproduce the behavior:
create a div like this:
and as many more of that class as you would like
Define functions in a loop like this:
and call the function from Python.
This should work (it does for me).
Now, remove the commented line.
Now, eel fails to load the function, and we get "module 'eel' has no attribute '<name>'".
Now, if we uncomment that line, and comment or remove the first eel.expose:
The app will execute, and the python call will not generate an error, but the function will not be executed.
Expected behavior
The commented line should have no impact on code execution, as it is commented.
Additionally, it is strange that this functionality requires both of these eel.expose calls for the function to be exposed successfully. Neither expose alone works, but the second one can be commented and it will still work.
Is this even supposed to work? It is a somewhat strange use-case.
System Information
The text was updated successfully, but these errors were encountered: