ViperIDE icon indicating copy to clipboard operation
ViperIDE copied to clipboard

[Bug] Minify Tool automatically converts f-strings to normal strings

Open Boss-1s opened this issue 1 month ago • 0 comments

Describe the bug When using the minify tool to save disk space, the tool renders the f in front of an f-string as an extra character, thus converting the f-string into a normal string.

Setup

  • MicroPython board: RPi Pico 2W with RP2350
  • MicroPython version: v1.25.0-preview.49.g0625f07ad.dirty
  • OS version: ChromeOS 141.0.7390.134
  • Browser: Chrome 141.0.7390.134 (Official Build) (64-bit)
  • Connection type: USB, BLE

To Reproduce Steps to reproduce the behavior:

  1. Type in some f-strings.
  2. Enter the tools tab, then hit 'Minify'.
  3. You will notice that the the f in front of the string is gone.

Expected behavior The minify tool was expected to keep the f-strings, yet it converted them to normal strings, making patching hard, especially if you have a LOT of strings that need placeholders.

Screenshots Image Image

Boss-1s avatar Nov 18 '25 01:11 Boss-1s