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

upgrading to 4.0.0 #48

Open
ufobat opened this issue Aug 10, 2023 · 5 comments
Open

upgrading to 4.0.0 #48

ufobat opened this issue Aug 10, 2023 · 5 comments

Comments

@ufobat
Copy link

ufobat commented Aug 10, 2023

I wanted to upgrad from 3.5.2 to to 4.0.0 by changing the lines in my build.gradle.kts file. I changed the line

    // from
    // implementation("net.akehurst.language:agl-processor:3.5.2")
    // to
    implementation("net.akehurst.language:agl-processor:4.0.0")

And this error happens:

> Error while evaluating property 'filteredArgumentsMap' of task ':compileKotlin'.
   > Could not resolve all files for configuration ':compileClasspath'.
      > Could not find net.akehurst.language:type-model:4.0.0.
        Searched in the following locations:
          - https://repo.maven.apache.org/maven2/net/akehurst/language/type-model/4.0.0/type-model-4.0.0.pom
        Required by:
            project : > net.akehurst.language:agl-processor:4.0.0 > net.akehurst.language:agl-processor-jvm8:4.0.0

what is this type-model: Could not find net.akehurst.language:type-model:4.0.0.

Do i have to add something more? Any advice?

@ogbash
Copy link

ogbash commented Oct 15, 2023

@dhakehurst @ufobat I see the same issue, looks like type-model is not published to maven.

@dhakehurst
Copy link
Owner

hmm...
sorry, only just noticed this....original notification of the issue must have got lost.

I will sort it out ASAP,
apologies.

@dhakehurst
Copy link
Owner

Something went wrong with the publish process to maven central.
I have tried again with a new release 4.0.1

hope that works ok for you now.
Let me know if not.
Also, there are significant changes in the API between 3 and 4,
just ask if you need help.

@ufobat
Copy link
Author

ufobat commented Dec 11, 2023

some help would really be appreciated. Is there any updated documentation?

i used to do it like that, while Assignment is a Class that my SyntaxAnalyzer yields to me.

val processor = Agl.processor(grammar.readText(), EvalDefinitionSyntaxAnalyser())
val assignment = processor.process<Assignment>(definition)

I assume the new startpoint is something like that:

Agl.processorFromStringDefault(grammar.readText())

but where does my SyntaxAnalyzer come in to that code?

@dhakehurst
Copy link
Owner

dhakehurst commented Dec 11, 2023 via email

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

3 participants