Skip to content
PL1

IVE: Wrong function implementation symlink

I think there is a bug with the folder name in default_attributes

default_attributes.xml 16:

To reproduce: create a new project (run "taste") add a new function set the language to Simulink add one unprotected interface right-click on the function and select "Generate/Update code skeletons"

go in the "work" folder and check the directory structure :

├── function_1
│   ├── SIMULINK
│   │   ├── Makefile
│   │   └── src
│   │       ├── SimulinkMainScriptsUtils.m
│   │       ├── Simulink_DataView_asn.m
│   │       └── function_1_script.m
│   ├── Simulink -> implem/default/SIMULINK
│   ├── function_1.pro
│   └── implem
│       └── default
│           ├── SDL
│           └── SIMULINK

This is incorrect: the code skeletons have been generated in "SIMULINK/src" but the tool as made a symlink named "Simulink" pointing to "implem/default/SIMULINK" (and this folder does not contain the user code) I think the name of the symlink should be SIMULINK and not Simulink

I tried then to switch the implementation (create a new one, set to default, then come back to Simulink), and the proper symlink is created, but the other one "Simulink" is still there

── function_1
│   ├── SIMULINK -> implem/default/SIMULINK
│   ├── Simulink -> implem/default/SIMULINK

Note: Might be because the name and directory differ.
It seems that the first time when setting the language you create a symlink with the name of the language and not using the property "folder_name". But afterwards, when you update it, you use properly the folder_name