ChoicescriptIDE / ChoicescriptIDE/main

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

Open
#159 0 comments 0 reactions 0 assignees View on GitHub
needs triage
Dominant language
JavaScript
Stars
36
Forks
8
PR merge metrics
No merged PRs in 30d

Description

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](https://forum.choiceofgames.com/u/cjw) Apologies for the tag, but this may also be something that could be added to the IDE, if it hasn’t been already?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.