Toberumono / homebrew-tap

A tap for Homebrew.
0 stars 0 forks source link

"brew install wrf-runner"error #1

Open hitquan opened 4 years ago

hitquan commented 4 years ago

When I run a program "brew install wrf-runner" there is a error like this:ant -Dprefix=./ Last 15 lines from /Users/zhengxiansheng/Library/Logs/Homebrew/utils/01.ant: [javadoc] 56 个错误

build: [mkdir] Created dir: /private/tmp/utils-20200413-45814-bvey95/bin [javac] Compiling 33 source files to /private/tmp/utils-20200413-45814-bvey95/bin [javac] /private/tmp/utils-20200413-45814-bvey95/src/toberumono/utils/files/NativeLibraryManager.java:93: 错误: 对newFileSystem的引用不明确 [javac] try (FileSystem jar = FileSystems.newFileSystem(p, null)) { [javac] ^ [javac] FileSystems 中的方法 newFileSystem(Path,ClassLoader) 和 FileSystems 中的方法 newFileSystem(Path,Map<String,?>) 都匹配 [javac] 1 个错误

BUILD FAILED /private/tmp/utils-20200413-45814-bvey95/build.xml:71: Compile failed; see the compiler error output for details.

Total time: 3 seconds how to deal with it?

Toberumono commented 4 years ago

On what version of Java are you building the project?

hitquan commented 4 years ago

@Toberumono I only install jdk-14_osx-x64_bin.tar.gz.

Toberumono commented 4 years ago

I developed this (technically the helper library on which WRF-Runner depends) on Java 8 and haven't maintained it for years. It looks like at some point an additional method was added in FileSystems that resulted in the null second parameter allowing for an ambiguous signature.

I've committed a change to the library that should fix the issue; however, I don't have a machine on which I can install Java 14 for testing. Try installing it again. If the issue persists, I'll try to get a setup on which I can test the compilation.