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

Auto view rules for array views and resizable array in Jai do not work #345

Open
rjurga opened this issue Oct 20, 2024 · 1 comment
Open
Labels
Bug A report of unintended or broken behavior. Debugger Pertains to the debugger. Missing Support A request to support a currently unsupported case.

Comments

@rjurga
Copy link

rjurga commented Oct 20, 2024

Auto view rule for array views and resizable arrays in Jai (e.g. [] int and [..] int) doesn't seem to take effect. I wanted these to be slice.

However, I got it working once by adding that auto view rule when not breaked or running. I can't get it to work anymore though. I don't know what I did differently the one time where I got it to work.

Slice does always seem to work directly as a view rule though (not auto). When I type it in the watch window, it works, it displays the result as a slice.

For a quick way to reproduce, you can go into the how_to directory distributed with Jai, run jai 004_arrays.jai to get an exe, run that exe in raddbg and break at line 123. There, you have a local array view c of type [] float. Trying to make an auto view rule for this type to slice doesn't seem to have any effect.

@rjurga rjurga changed the title Setting auto view rules while breaked has autocompletion issues Auto view rules for array views and resizable array in Jai do not work Oct 20, 2024
@ryanfleury ryanfleury added Debugger Pertains to the debugger. Bug A report of unintended or broken behavior. Missing Support A request to support a currently unsupported case. labels Oct 21, 2024
@GoldenbergDaniel
Copy link

This is also true for Odin's array and slice types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A report of unintended or broken behavior. Debugger Pertains to the debugger. Missing Support A request to support a currently unsupported case.
Projects
None yet
Development

No branches or pull requests

3 participants