Closed HBaghdadi1995 closed 2 years ago
After altering my path I can recreate, thank you @HBaghdadi1995.
Solution 1 is a bad idea because it exposes the package to the MATLAB path, which is why this bug existed in the first place. In this instance it is trivial to resolve by calling only the decode
method and prefixing this with the package namespace as required. PR inbound.
This would also be caught by CI but cannot enable until we have generated some appropriate public sample data for this purpose.
Brief
When calling
LumoData
on any.lumo
file, the script would stop at line284
with the errorerror parsing metadata file ... Unable to resolve the name toml.read.
Setup
Lumo v0.1.1
&Lumo v0.4.0
Steps to Recreate
Matlab
& setlumomat
as current directory.+lumofile
&+lumofile/+toml
should automatically be included as part of the directory, make sure to not include anything else.data = LumoData({Absolute File Directory})
& Hit run.Possible Solutions
./+lumofile/+toml/
directory to./+toml/
toml.
withlumofile.toml.
, including the ones in./+toml/
I prefer Solution 1, since it's less likely to cause issues when porting over newer versions of
./toml/
, & contains less modification of 3rd party packages.