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

Make ubenchmark clases executable from IDEA #1880

Merged
merged 1 commit into from
Apr 10, 2020
Merged

Conversation

vlsi
Copy link
Contributor

@vlsi vlsi commented Mar 27, 2020

This makes ubenchmark / .main classes executable from IDEA

// currently it builds the jar only :-/
// IntelliJ IDEA "execute main method" adds a JavaExec task, so we configure it
classpath(File(buildDir, "jmh-generated-classes"))
classpath(File(buildDir, "jmh-generated-resources"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I merge the update to my local branch, I am afraid we should add one more to make it work.

classpath(File(buildDir, "jmh-generated-sources"))

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is that?
What is the error message otherwise?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you try creating a new test or renaming test method? Maybe you can reproduce the exception as below.
Sorry about the Chinese character. Literally, it means Error: Symbol not found

/Users/xu/IdeaProjects/my-calcite/ubenchmark/build/jmh-generated-sources/org/apache/calcite/benchmarks/generated/ReflectiveVisitDispatcherTest_testReflectiveVisitorDispatcherInvokeInstanceCachingUseMethodHandle_jmhTest.java:78: 错误: 找不到符号
                blackhole.consume(l_reflectivevisitdispatchertest0_G.testReflectiveVisitorDispatcherInvokeInstanceCachingUseMethodHandle());
                                                                    ^
  符号:   方法 testReflectiveVisitorDispatcherInvokeInstanceCachingUseMethodHandle()
  位置: 类型为ReflectiveVisitDispatcherTest_jmhType的变量 l_reflectivevisitdispatchertest0_G

Copy link
Contributor

@neoremind neoremind Mar 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vlsi I might mislead you, maybe that is my env problem. No rush to look into this, unless any one else comes into this trouble again.
My idea version is the latest community one.

IntelliJ IDEA 2019.3.3 (Community Edition)
Build #IC-193.6494.35, built on February 11, 2020
Runtime version: 11.0.5+10-b520.38 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.12.6
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Registry: 
Non-Bundled Plugins: CheckStyle-IDEA, FindBugs-IDEA, Lombook Plugin, OdpsStudio, com.alibaba.p3c.smartfox, com.poratu.idea.plugins.tomcat, org.intellij.scala

@vlsi vlsi merged commit c9acc5b into apache:master Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants