ConstructiveGeometry.jl
ConstructiveGeometry.jl copied to clipboard
Kwargs warning on stl export
The ConstructiveGeometry.stl function generates the following warning when used:
┌ Warning: use values(kwargs) and keys(kwargs) instead of kwargs.data and kwargs.itr │ caller = _ at ConstructiveGeometry.jl:221 [inlined] └ @ Core ~/.julia/packages/ConstructiveGeometry/on6NG/src/ConstructiveGeometry.jl:221
Minimal reproducible example in the REPL:
julia> using ConstructiveGeometry julia> c = cube(1) Cube julia> ConstructiveGeometry.stl("cube.stl", c)
I believe this is a simple matter of updating the way the kwargs Dict is used; i could not, however, find anything kwargs-related close to line 221, as specified in the message.
I could not reproduce this — moreover, in the latest version, there is no stl() function. (It has been replaced by save()). Are you sure you have an up-to-date version?
Well, my package had version number 0.2.0, the same as that in Project.toml in the repo. I tried ]update Constructivegeometry, to no success, reinstalling the package, uninstalling and garbage-collecting and reinstalling, also to no success. Maybe if the minor version number was incremented, Julia would recognize there is a new version to be installed. I could manually delete the .julia folder, or some subfolder, but I have lots of environments and would rather not mess with them.
Is incrementing the minor version number something you could try?
This is certainly something I will try (once I feel the code has stabilized enough to at least compile the examples in the docs)