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
In my case, I had forgot to update the function's name when I called it later on in the script. Then, I got this crash.
Here is the log:
Unexpected error causes program to crash
IndexError
list index out of range
Traceback (most recent call last):
File "/home/soko/.local/lib/python3.13/site-packages/jmc/terminal_commands.py", line 62, in compile_
compile_jmc(global_data.config, debug=True)
~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soko/.local/lib/python3.13/site-packages/jmc/compile/compiling.py", line 41, in compile_jmc
build(lexer.datapack, config, is_delete, cert_config, cert_file)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soko/.local/lib/python3.13/site-packages/jmc/compile/compiling.py", line 282, in build
datapack.build()
~~~~~~~~~~~~~~^^
File "/home/soko/.local/lib/python3.13/site-packages/jmc/compile/datapack.py", line 540, in build
raise JMCValueError(
~~~~~~~~~~~~~^
f"Function '{function_called}' was not defined", token, tokenizer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/soko/.local/lib/python3.13/site-packages/jmc/compile/exception.py", line 183, in __init__
msg = error_msg(message, token, tokenizer, col_length,
display_col_length, entire_line, suggestion)
File "/home/soko/.local/lib/python3.13/site-packages/jmc/compile/exception.py", line 86, in error_msg
line_ = overide_file_str(msgs_[display_line - 1])
~~~~~^^^^^^^^^^^^^^^^^^
IndexError: list index out of range
Please report this error at https://github.com/WingedSeal/jmc/issues/new/choose or https://discord.gg/PNWKpwdzD3.
The code in question (please don't ridicule my awesome coding skills haha):
Describe the bug
In my case, I had forgot to update the function's name when I called it later on in the script. Then, I got this crash.
Here is the log:
The code in question (please don't ridicule my awesome coding skills haha):
Desktop
The text was updated successfully, but these errors were encountered: