Open-Jellycore icon indicating copy to clipboard operation
Open-Jellycore copied to clipboard

import of non existent library fails to generate warning

Open chrysaora-achlyos opened this issue 7 months ago • 0 comments

Describe the bug

if code contains the line import nonexistantlibary no warning is generated.

To Reproduce

Steps to reproduce the behavior:

  1. create a file Crash.jelly with the single line import nonexistantlibrary
  2. compile with the command jelly Crash.jelly --export --out Crash.shortcut
  3. observe stdout of Successfully Compiled Shortcut

Expected behavior

Strictly speaking, this is not an error since, if nothing from the libary was later referenced, the code did compile correctly. However, likely person writing the code could like to know.

Screenshots

If applicable, add screenshots to help explain your problem.

Information

  • Device: [MacBook Pro 14-inch, 2021]
  • OS: [Sonoma 14.5]
  • Jellycuts Version [???, no access to version via jelly command] (Can be found in Settings -> About)
  • Jailbroken? [No]

Additional context

If one attempted to import Shortcuts and instead import Shortcust (misspelling), an error likely be generated on the actual use of something from the Shortcuts library, but could lead to focus on a good line of code instead of the incorrect import line of code.

chrysaora-achlyos avatar Jul 25 '24 22:07 chrysaora-achlyos