How to define functionSignatures.json for a subpackage?

2 ビュー (過去 30 日間)
Oscar Xavier Guerrero Gutiérrez
Oscar Xavier Guerrero Gutiérrez 2021 年 1 月 22 日
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.
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.

回答 (1 件)

Anmol Dhiman
Anmol Dhiman 2021 年 1 月 31 日
Hi Oscar,
I couldnot find any mistake with your code. I think may be there is some issue in json file.
Can you check it using validateFunctionSignatureJSON.
Attached is copy of example that I tried.
Hope it Helps
  1 件のコメント
Oscar Xavier Guerrero Gutiérrez
Oscar Xavier Guerrero Gutiérrez 2021 年 1 月 31 日
編集済み: Oscar Xavier Guerrero Gutiérrez 2021 年 1 月 31 日
Hi, what code are you refering to, I did not post any code.
Here's the output from validateFunctionSignatureJSON:
validateFunctionSignaturesJSON completed without producing any messages.
I tried the examaple you're providing and I still get the same error message "Cannot display function hint...". But your example made me realize that the autocompletion does work, also with my code. It's just the function hint visualization that isn't working. I would also like to have the function hint to see the 'required' and 'ordered' arguments.
Here's a screenshot of the message I get when trying your code, this is identical to the one I get with my code.





Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by