Skip to content

Warn/lint users about potential for recursive issue with *text_image #159

@CareyJWilliams

Description

@CareyJWilliams

https://forum.choiceofgames.com/t/new-choicescript-extension-for-vs-code-2-0-now-runs-games/71387/73?u=cjw

I recently discovered a new bug that can cause recursion issues once a game is compiled. If you were to use the *text_image command, but leave out the alignment and caption, it will cause a recursion error to occur once the data URI is implemented post-compilation.

For example, the following line will cause a recursion error after compiling the game:

*text_image sample.png
The alignment and caption needs to be included in order to avoid the recursion bug:

*text_image sample.png center Sample Caption
There’s not much information surrounding the *text_image command from what I can find. Yet, I was thinking perhaps it would be a nice addition to the extension if it notified the author/developer of the improper command. To save some future headaches if possible, as I was at a lost on what was causing the recursion bug initially.

@CJW Apologies for the tag, but this may also be something that could be added to the IDE, if it hasn’t been already?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions