eclipse-4diac / 4diac-ide

Eclipse Public License 2.0
17 stars 27 forks source link

Type export to FORTE not working except in top-level path of Type Library #53

Open dok-net opened 4 months ago

dok-net commented 4 months ago

The dialog for exporting function blocks to FORTE source code stalls on any sub-folder of Type Library, no matter if the type is a stock FB or and own one - I am using symbolic links into another Git repository outside the 4diac Eclipse workspace, if that matters.

Workaround: copying the types into Type Library top-level and exporting from there allows the export dialog to complete.

ernstblechaPT commented 4 months ago

Yes, the symbolic links might matter. Are you using the symbolic links provided by your operating system (If yes: what operating system are you using?) or are you using the file-linking infrastructure within eclipse?

kaartee commented 4 months ago

I am using only what the Eclipse interface offers, running 4diac on Windows 10 and 11, anyway. Even stock types shipping with the 4diac IDE cannot be exported to FORTE C++ source code, the "Finish" button in the export dialog remains grayed out.

kaartee commented 4 months ago

This applies to current (as of yesterday) builds milestone and nightly (4diac-ide_3.0.0-win32.win32.x86_64.zip, 2024-04-12).

ernstblechaPT commented 4 months ago

Do you also get the "No type selected!" errormessage? image

If yes: it seems that the export dialog does not support selecting linked files

kaartee commented 4 months ago

Rename is also broken. Copy & paste as well.

kaartee commented 4 months ago

Do you also get the "No type selected!" errormessage?

Yes.

kaartee commented 3 months ago

@ernstblechaPT Copy and paste of an FB to clone one for modification to create further FBs doesn't work quite right, as well. Only the symbolic tree entry gets duplicated, the underlying file is not, but the FB name is modified, leaving the original FB link broken due to the name changing. This may cause some headache if going unnoticed for a while of incremental changes.

oberlehner commented 3 months ago

Rename is also broken. Copy & paste as well.

What exactly are you renaming ?

kaartee commented 3 months ago

Given some Virtual Folder in the Type Library folder of a project contains an FB as a Linked File. Renaming that FB resource changes the Virtual Folder's entry, as well as the <FBType Name="..." attribute inside that file. But it does not adapt the file's name itself. It doesn't even mention it or offer to do so case by case. For copy and paste, the paste step implies renaming, and the same thing happens, or rather doesn't happen. Perhaps I shouldn't use virtual folders. But I do have a need to version control my FBs.