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

Can't build because RunWeaveCommand.scala:98:18 #56

Closed
SGmuwa opened this issue Nov 11, 2022 · 1 comment
Closed

Can't build because RunWeaveCommand.scala:98:18 #56

SGmuwa opened this issue Nov 11, 2022 · 1 comment

Comments

@SGmuwa
Copy link

SGmuwa commented Nov 11, 2022

Describe the bug

Can't compile project due to an error RunWeaveCommand.scala:98:18: overloaded method value apply with alternatives

To Reproduce

You can choose one of images: ubuntu:22.04 or ubuntu:22.10

docker run -it --rm ubuntu:22.04

or

docker run -it --rm ubuntu:22.10

And run commands in container:

cd ~
apt update
apt install -y git curl
git clone https://github.com/mulesoft-labs/data-weave-cli.git
cd data-weave-cli/
git checkout v1.0.25
./install-graalvm.sh
GRAALVM_HOME=${PWD}/.graalvm/graalvm-ce-java11-22.2.0/ JAVA_HOME=${PWD}/.graalvm/graalvm-ce-java11-22.2.0/ ./gradlew native-cli:nativeCompile
Compile logs
root@a5cf12e88a3d:~/data-weave-cli# GRAALVM_HOME=${PWD}/.graalvm/graalvm-ce-java11-22.2.0/ JAVA_HOME=${PWD}/.graalvm/graalvm-ce-java11-22.2.0/ ./gradlew native-cli:nativeCompile

> Configure project :native-cli
Generating Versions File.

> Task :native-cli:compileScala
[Error] /root/data-weave-cli/native-cli/src/main/scala/org/mule/weave/dwnative/cli/commands/RunWeaveCommand.scala:98:18: overloaded method value apply with alternatives:
(value: org.mule.weave.v2.model.structure.ObjectSeq)org.mule.weave.v2.model.values.ObjectValue <and>
(value: Array[org.mule.weave.v2.model.structure.KeyValuePair])org.mule.weave.v2.model.values.ObjectValue
cannot be applied to (scala.collection.immutable.IndexedSeq[org.mule.weave.v2.model.structure.KeyValuePair])
one error found

> Task :native-cli:compileScala FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':native-cli:compileScala'.
> Compilation failed

* 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 6s
2 actionable tasks: 1 executed, 1 up-to-date

Expected behavior

Builded project

Desktop

host

lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.1 LTS
Release:	22.04
Codename:	jammy

===

docker --version
Docker version 20.10.12, build 20.10.12-0ubuntu4

docker containers

docker pull ubuntu:22.04
22.04: Pulling from library/ubuntu
Digest: sha256:4b1d0c4a2d2aaf63b37111f34eb9fa89fa1bf53dd6e4ca954d47caebca4005c2
Status: Image is up to date for ubuntu:22.04
docker.io/library/ubuntu:22.04

===

docker pull ubuntu:22.10
22.10: Pulling from library/ubuntu
Digest: sha256:edc5125bd9443ab5d5c92096cf0e481f5e8cb12db9f5461ab1ab7a936c7f7d30
Status: Image is up to date for ubuntu:22.10
docker.io/library/ubuntu:22.10
@machaval
Copy link
Contributor

Hi @SGmuwa thanks for reporting this issue! We will fix this Asap

machaval added a commit that referenced this issue Nov 15, 2022
* Fixing #56. Fixing build after refactor

* Fixing #56. Fixing build after refactor

* Fixing build encoding
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