FreeCAD / FreeCAD-macros

A repository for FreeCAD macros
https://freecad.org/wiki/Macros_recipes
145 stars 134 forks source link

BoxCreator.FCMacro - __Date__ content has missing quote termintor character #151

Closed neildarlow closed 1 year ago

neildarlow commented 1 year ago

As per Issue title. The problem is obvious from looking at the Date line. Addon manager throws a syntax error when the local cache is updated.

luzpaz commented 1 year ago

Please link to the the line in question. Please always add you full About info when reporting issues

neildarlow commented 1 year ago

Not that it will help but here you go:

[code] OS: KDE Flatpak runtime (GNOME/gnome) Word size of FreeCAD: 64-bit Version: 0.20.2.29603 (Git) Build type: Release Branch: (HEAD detached at 0.20.2) Hash: 930dd9a76203a3260b1e6256c70c1c3cad8c5cb8 Python 3.10.6, Qt 5.15.7, Coin 4.0.0, Vtk 8.2.0, OCC 7.6.3 Locale: English/United Kingdom (en_GB) Installed mods:

BoxCreator.FCMacro - line 6
-__Date__ = '2023-01-03
+__Date__ = '2023-01-03'

Report View output from Refresh local cache:
15:44:06  Syntax error while reading __date__ from macro BoxCreator
15:44:06  __Date__ = '2023-01-03
luzpaz commented 1 year ago

https://github.com/FreeCAD/FreeCAD-macros/blob/9d1aced568223cf753c311085200196150297225/ObjectCreation/BoxCreator.FCMacro#L7

Making PR to fix now

luzpaz commented 1 year ago

Thank you @neildarlow