Skip to content

make test in gocode directory fails #532

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

Closed
maciej opened this issue Dec 13, 2017 · 2 comments
Closed

make test in gocode directory fails #532

maciej opened this issue Dec 13, 2017 · 2 comments

Comments

@maciej
Copy link

maciej commented Dec 13, 2017

As in the issue title, make test fails with:

⨯ make test                                                                                                                          10:46:17
(cd ..; gradlew generateGolangCodecs)
/bin/sh: gradlew: command not found
make: *** [src/simple/SbeMarshalling.go] Error 127

when fixing the issue of gradlew not being available (prepending the command with ./) I get the following:

◦ make test                                                                                                                          11:07:49
(cd ..; ./gradlew generateGolangCodecs)

> Task :generateGolangCodecsWithXSD FAILED
Exception in thread "main" java.lang.IllegalStateException: type is not of constant presence
        at uk.co.real_logic.sbe.xml.EncodedDataType.constVal(EncodedDataType.java:295)
        at uk.co.real_logic.sbe.xml.IrGenerator.add(IrGenerator.java:461)
        at uk.co.real_logic.sbe.xml.IrGenerator.addAllFields(IrGenerator.java:181)
        at uk.co.real_logic.sbe.xml.IrGenerator.generateForMessage(IrGenerator.java:83)
        at uk.co.real_logic.sbe.xml.IrGenerator.generate(IrGenerator.java:59)
        at uk.co.real_logic.sbe.SbeTool.main(SbeTool.java:199)


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':generateGolangCodecsWithXSD'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s
8 actionable tasks: 5 executed, 3 up-to-date
make: *** [src/simple/SbeMarshalling.go] Error 1

I'm using the current master branch, Java 1.8_144, Go 1.9 and recent MacOS.

@billsegall
Copy link
Contributor

This is being triggered by the test case for issue 483. The failing test case is issue483.xml.

Any known recent changes around presence="constant" that may have triggered this?

@mjpt777
Copy link
Contributor

mjpt777 commented Dec 13, 2017

@billsegall could this change have effected it? a699b4c

tmontgomery added a commit that referenced this issue Dec 15, 2017
Issue #532 `make test` in gocode directory fails
@mjpt777 mjpt777 closed this as completed Jul 13, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants