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

Fails to build with implicit conversion of anonymous access parameter #19

Open
jpds opened this issue Sep 2, 2022 · 2 comments
Open

Comments

@jpds
Copy link

jpds commented Sep 2, 2022

On a new empty project, AdaYaml appears to fail to build with errors:

$ alr init --bin example
...
$ alr with adayaml
ⓘ Synchronizing workspace...
Nothing to update.                                                       

Requested changes:                                                   

   ✓ adayaml ~0.3.0 (add)
                                                              
Changes to dependency solution:

   +  adayaml           0.3.0  (new)                                 
   +♼ gnat              12.1.1 (new,installed,gnat_external,indirect)
   +  libgnutls         3.7.7  (new,indirect)                        
   +  simple_components 4.62.0 (new,indirect)                        
   +  unixodbc          2.3.9  (new,indirect)
...
$ alr build
...
yaml-dom-sequence_data.adb:237:33: error: implicit conversion of anonymous access parameter not allowed
yaml-dom-node_memory.adb:9:32: error: access-to-constant operand type not allowed
yaml-dom-node_memory.adb:12:31: error: access-to-constant operand type not allowed
yaml-dom-node_memory.adb:20:28: error: access-to-constant operand type not allowed
yaml-dom-mapping_data.adb:147:33: error: implicit conversion of anonymous access parameter not allowed
yaml-dom-mapping_data.adb:147:38: error: implicit conversion of anonymous access parameter not allowed
@jpds
Copy link
Author

jpds commented Sep 2, 2022

Ah, looked through the commits since 0.3.0 and seems dd18ce4 is the fix for this - can we please have a new release?

@flyx
Copy link
Collaborator

flyx commented Sep 2, 2022

Hate to say it, but this project is abandoned. It is an experimental implementation of a YAML 1.3 spec that never happened, uses a custom allocator that has bugs and is thus not in a state that I would recommend for production use.

I had a talk with ingy, one of YAML's authors, earlier this year where he told me he's working on autogenerating YAML implementations from a formal specification, including for Ada. I am not sure how far he's come with that but am basically waiting for this to happen so that I can link to his project and archive mine.

For these reasons, and the additional reason of me having already little time to maintain my more popular libraries, I'm afraid there will be no new release. I you need this code, I recommend putting it in your code base as there will be no more upstream activity. I also suggest to have a look at TOML instead which is in a better state and might fit your use-case.

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