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

maven compile error #1016

Closed
iokk3732 opened this issue Dec 27, 2024 · 11 comments
Closed

maven compile error #1016

iokk3732 opened this issue Dec 27, 2024 · 11 comments
Labels
bug Something isn't working

Comments

@iokk3732
Copy link

Could not get HEAD Ref, are you sure you have some commits in the dotGitDirectory

@iokk3732 iokk3732 added the bug Something isn't working label Dec 27, 2024
@goldmedal
Copy link
Contributor

I'm not sure what you mean. Could you provide the steps for reproducing or any log?

@goldmedal
Copy link
Contributor

By the way, the following steps work for my local environment.

  1. git clone https://github.com/Canner/wren-engine.git
  2. cd wren-engine
  3. ./mvnw clean install -DskipTests

@iokk3732
Copy link
Author

By the way, the following steps work for my local environment.

  1. git clone https://github.com/Canner/wren-engine.git
  2. cd wren-engine
  3. ./mvnw clean install -DskipTests

Thank you! It has worked now. Previously, I downloaded the source code directly, but now I used git clone, and the compilation has passed. However, in the trino-parser module, there's currently an error: "Cannot resolve symbol 'TypeCalculationParser'".
image

@iokk3732
Copy link
Author

I want to directly debug the project, but when I run wren-server, I encounter configuration file errors. What configurations need to be added to config.properties, and where should this file be placed?

@goldmedal
Copy link
Contributor

Thank you! It has worked now. Previously, I downloaded the source code directly, but now I used git clone, and the compilation has passed. However, in the trino-parser module, there's currently an error: "Cannot resolve symbol 'TypeCalculationParser'". image

It seems that you use the IntelliJ as the IDE. I think you can run the maven build through IDE directly. (IDE will link them automatically).

mvn clean install -DskipTests

Because some classes of Wren Server are generated by other tools (e.g. anltr4), you need to generate them first.

I want to directly debug the project, but when I run wren-server, I encounter configuration file errors. What configurations need to be added to config.properties, and where should this file be placed?

You need to add the VM options when starting the server. You can put the config on where you want. Just add the path to this option.

-Dconfig=etc.local/config.properties

I provided a minimized config.properties here.

node.environment=test
wren.experimental-enable-dynamic-fields=true

Because most config of wren engine has been deprecated, I believe you can just use the above config to start the Wren Server.
For more additional configs, you can find them on the classes named xxxConfig or ConfigManager.

hope helpful.

@iokk3732
Copy link
Author

Yes, I am using IntelliJ as my IDE. Currently, I have configured the startup parameters in IntelliJ as follows:

io.wren.server.WrenServer -Dconfig=/Users/jianchuanli/mindflow/opensource/wren-engine/config.properties

However, after running it, I am still encountering the following error:

==========

Errors:

Invalid configuration property node.environment: must not be null (for class io.airlift.node.NodeConfig.environment)

image
image
image

@goldmedal
Copy link
Contributor

I think you put the config at the wrong place. Where you set is the program argument but it should be set at VM options.
You can find the VM option by clicking Modify options. Then, you will get an additional field for VM option
Screenshot 2024-12-27 at 8 44 55 PM

@iokk3732
Copy link
Author

截屏2024-12-29 19 28 49 The log that appears indicates success, right?

@goldmedal
Copy link
Contributor

截屏2024-12-29 19 28 49 The log that appears indicates success, right?

Exactly

@iokk3732
Copy link
Author

Thanks very much. 😊😊😊😊😊

@goldmedal
Copy link
Contributor

It seems this issue has been resolved. I want to close it. If you have other questions, feel free to raise another issue. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants