How to define functionSignatures.json for a subpackage?
4 views (last 30 days)
Show older comments
Oscar Xavier Guerrero Gutiérrez
on 22 Jan 2021
Edited: Oscar Xavier Guerrero Gutiérrez
on 31 Jan 2021
I would like to use the function signatures mainly for autocompletion of the 'namevalue' argument options in the Command Window. My problem is that I tried to define the function signatures of a function that is in a subpackage and I get the message "Cannot diplay function hint. Cannot parse more than two levels of dot referencing". Heres an expamle of the structure of the package.
path/functionSignatures.json
path/+mypkg1
path/+mypkg1/funpkg1.m
path/+mypkg1/+mypkg2
path/+mypkg1/+mypkg2/funpkg2.m
How or where should I define the functionSignatures.json file to be able to have the functionality I seek?
UPDATE: The autocompletion works as intended for namevalue arguments, it's just the function hint that isn't displayed that I'd like to know how to fix.
0 Comments
Answers (1)
Anmol Dhiman
on 31 Jan 2021
Hi Oscar,
I couldnot find any mistake with your code. I think may be there is some issue in json file.
Attached is copy of example that I tried.
Hope it Helps
1 Comment
Oscar Xavier Guerrero Gutiérrez
on 31 Jan 2021
Edited: Oscar Xavier Guerrero Gutiérrez
on 31 Jan 2021
See Also
Categories
Find more on JSON Format in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!