Skip to content
New issue

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

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

Already on GitHub? # to your account

[Python] Support aws.protocoltests.json#JsonProtocol test model #2477

Open
Tracked by #1367
crisidev opened this issue Mar 21, 2023 · 0 comments
Open
Tracked by #1367

[Python] Support aws.protocoltests.json#JsonProtocol test model #2477

crisidev opened this issue Mar 21, 2023 · 0 comments
Labels
bug Something isn't working python-server Python server SDK

Comments

@crisidev
Copy link
Contributor

crisidev commented Mar 21, 2023

With this model I found 2 issues:

Projection rest_json_validation failed: java.lang.IllegalStateException: The two inline modules have the same name but different attributes on them.
java.lang.IllegalStateException: The two inline modules have the same name but different attributes on them.
        at software.amazon.smithy.rust.codegen.server.smithy.InnerModule.findOrAddToList(RustCrateInlineModuleComposingWriter.kt:337)
        at software.amazon.smithy.rust.codegen.server.smithy.InnerModule.getWriter(RustCrateInlineModuleComposingWriter.kt:306)
        at software.amazon.smithy.rust.codegen.server.smithy.InnerModule.withInlineModule(RustCrateInlineModuleComposingWriter.kt:169)
        at software.amazon.smithy.rust.codegen.server.smithy.InnerModule.withInlineModuleHierarchy(RustCrateInlineModuleComposingWriter.kt:232)
        at software.amazon.smithy.rust.codegen.server.smithy.InnerModule.withInlineModuleHierarchy$default(RustCrateInlineModuleComposingWriter.kt:214)
        at software.amazon.smithy.rust.codegen.server.smithy.RustCrateInlineModuleComposingWriterKt$withModuleOrWithStructureBuilderModule$1.invoke(RustCrateInlineModuleComposingWriter.kt:67)
        at software.amazon.smithy.rust.codegen.server.smithy.RustCrateInlineModuleComposingWriterKt$withModuleOrWithStructureBuilderModule$1.invoke(RustCrateInlineModuleComposingWriter.kt:66)
        at software.amazon.smithy.rust.codegen.server.smithy.InnerModule$withInlineModuleHierarchyUsingCrate$4.invoke(RustCrateInlineModuleComposingWriter.kt:205)
        at software.amazon.smithy.rust.codegen.server.smithy.InnerModule$withInlineModuleHierarchyUsingCrate$4.invoke(RustCrateInlineModuleComposingWriter.kt:203)
        at software.amazon.smithy.rust.codegen.core.smithy.RustCrate.withModule$lambda$6(CodegenDelegator.kt:198)
        at software.amazon.smithy.codegen.core.WriterDelegator.useFileWriter(WriterDelegator.java:175)
        at software.amazon.smithy.rust.codegen.core.smithy.RustCrate.withModule(CodegenDelegator.kt:197)
        at software.amazon.smithy.rust.codegen.server.smithy.InnerModule.withInlineModuleHierarchyUsingCrate(RustCrateInlineModuleComposingWriter.kt:203)
        at software.amazon.smithy.rust.codegen.server.smithy.InnerModule.withInlineModuleHierarchyUsingCrate$default(RustCrateInlineModuleComposingWriter.kt:175)
        at software.amazon.smithy.rust.codegen.server.smithy.RustCrateInlineModuleComposingWriterKt.withModuleOrWithStructureBuilderModule(RustCrateInlineModuleComposingWriter.kt:66)
        at software.amazon.smithy.rust.codegen.server.smithy.ServerCodegenVisitor.stringShape(ServerCodegenVisitor.kt:521)
        at software.amazon.smithy.rust.codegen.server.python.smithy.PythonServerCodegenVisitor.stringShape(PythonServerCodegenVisitor.kt:180)
        at software.amazon.smithy.rust.codegen.server.python.smithy.PythonServerCodegenVisitor.stringShape(PythonServerCodegenVisitor.kt:59)
        at software.amazon.smithy.model.shapes.StringShape.accept(StringShape.java:41)
        at software.amazon.smithy.rust.codegen.server.smithy.ServerCodegenVisitor.execute(ServerCodegenVisitor.kt:250)
        at software.amazon.smithy.rust.codegen.server.python.smithy.RustServerCodegenPythonPlugin.execute(RustServerCodegenPythonPlugin.kt:63)
        at software.amazon.smithy.build.SmithyBuildImpl.applyPlugin(SmithyBuildImpl.java:357)
        at software.amazon.smithy.build.SmithyBuildImpl.applyProjection(SmithyBuildImpl.java:288)
        at software.amazon.smithy.build.SmithyBuildImpl.executeSerialProjection(SmithyBuildImpl.java:209)
        at software.amazon.smithy.build.SmithyBuildImpl.lambda$applyAllProjections$5(SmithyBuildImpl.java:182)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
        at java.base/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)
        at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)
        at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
        at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
        at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
        at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
        at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)

@crisidev crisidev changed the title Support aws.protocoltests.json#JsonProtocol test model [Python] Support aws.protocoltests.json#JsonProtocol test model Mar 21, 2023
@crisidev crisidev added the python-server Python server SDK label Mar 21, 2023
@crisidev crisidev added the bug Something isn't working label Apr 13, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working python-server Python server SDK
Projects
None yet
Development

No branches or pull requests

1 participant