Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception "Duplicates not allowed" #25

Open
kpheidrich opened this issue Feb 14, 2024 · 6 comments
Open

Exception "Duplicates not allowed" #25

kpheidrich opened this issue Feb 14, 2024 · 6 comments
Assignees

Comments

@kpheidrich
Copy link

I am trying to transform AuthenticationServices framework headers from the MacOSX14.2 SDK

After Pressing "Transform" an exception of type EListError with message "Duplicates not allowed" is thrown in function TCustomTranslator.Visittypes caused by line "FEnumConsts.Add(ACursor.Spelling, ACursor)"

@kpheidrich
Copy link
Author

After checking for duplicates in function TCustomTranslator.Visittypes the output file is created.

        if not ACursor.Spelling.IsEmpty and not FEnumConsts.ContainsKey(ACursor.Spelling) then
             FEnumConsts.Add(ACursor.Spelling, ACursor);

I have not enough insight to the product to determine if this is a final solution. The Header file includes some comments like "Could not find class reference for declaration", but I guess, this is not related.

@DelphiWorlds
Copy link
Collaborator

After Pressing "Transform" an exception of type EListError with message "Duplicates not allowed" is thrown in function TCustomTranslator.Visittypes caused by line "FEnumConsts.Add(ACursor.Spelling, ACursor)"

I'm not seeing this error with the current code for Octoid.

I have not enough insight to the product to determine if this is a final solution. The Header file includes some comments like "Could not find class reference for declaration", but I guess, this is not related.

This is something that is yet to be resolved. Regardless, I've managed to complete an import for AuthenticationServices and pushed it to the Kastri repo. The resulting files are in the API folder, namely:

DW.Macapi.Foundation.pas (updated)
DW.Macapi.LocalAuthentication.pas (new)
DW.Macapi.AuthenticationServices.pas (new)

If you have any problems using these, please report them to Kastri issues

@DelphiWorlds
Copy link
Collaborator

I'm not seeing this error with the current code for Octoid.

Scratch that - it seems I may have introduced this between the last time I built the app and the latest code. Looking into it...

@DelphiWorlds
Copy link
Collaborator

I've pushed a fix for the duplicates issue

@kpheidrich
Copy link
Author

This is something that is yet to be resolved. Regardless, I've managed to complete an import for AuthenticationServices and pushed it to the Kastri repo. The resulting files are in the API folder, namely:

DW.Macapi.Foundation.pas (updated)
DW.Macapi.LocalAuthentication.pas (new)
DW.Macapi.AuthenticationServices.pas (new)

Thank you for looking into it!
I don't see any new files in die API folder of the Kastri-project. Did you already push them to github?

@DelphiWorlds
Copy link
Collaborator

It seems I had not pushed the changes. I now have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants