How to define functionSignatures.json for a subpackage?
이전 댓글 표시
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.
답변 (2개)
Anmol Dhiman
2021년 1월 31일
0 개 추천
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
Oscar Xavier Guerrero Gutiérrez
2021년 1월 31일
편집: Oscar Xavier Guerrero Gutiérrez
2021년 1월 31일
Lennard Mulder
2023년 12월 9일
0 개 추천
I have another question related to this. I this example the auto-complete is working fine, up 2 the point that I start defining inputs.
--> 
I continued on your example; Only after I've entered my first input, the rest of the inputs are not suggested anymore. Does anyone recognize this problem?
In the example below I see that the auto-complete should continue to suggest the next input, but somehow I only get the suggestions before I define any inputs. So I don't get what I'm doing wrong.
카테고리
도움말 센터 및 File Exchange에서 Data Type Conversion에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
