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

'other' has different root #175

Closed
volodya-lombrozo opened this issue Dec 27, 2023 · 8 comments
Closed

'other' has different root #175

volodya-lombrozo opened this issue Dec 27, 2023 · 8 comments

Comments

@volodya-lombrozo
Copy link

I have the following code:

private final Path xmirs;

Logger.info(this, "Decompiling EO sources from %[file]s", this.xmirs);

When I run this code on Windows OS, I get the following exception:

2023-12-27T10:36:13.6305756Z [ERROR] org.eolang.opeo.DecompilerTest.decompilesSeveralFiles(Path)  Time elapsed: 0 s  <<< ERROR!
2023-12-27T10:36:13.6307332Z java.lang.IllegalArgumentException: 'other' has different root
2023-12-27T10:36:13.6308446Z 	at java.base/sun.nio.fs.WindowsPath.relativize(WindowsPath.java:404)
2023-12-27T10:36:13.6309556Z 	at java.base/sun.nio.fs.WindowsPath.relativize(WindowsPath.java:42)
2023-12-27T10:36:13.6310508Z 	at com.jcabi.log.FileDecor.formatTo(FileDecor.java:68)
2023-12-27T10:36:13.6311685Z 	at java.base/java.util.Formatter$FormatSpecifier.printString(Formatter.java:3024)
2023-12-27T10:36:13.6313072Z 	at java.base/java.util.Formatter$FormatSpecifier.print(Formatter.java:2908)
2023-12-27T10:36:13.6314261Z 	at java.base/java.util.Formatter.format(Formatter.java:2673)
2023-12-27T10:36:13.6315361Z 	at java.base/java.util.Formatter.format(Formatter.java:2609)
2023-12-27T10:36:13.6316422Z 	at java.base/java.lang.String.format(String.java:2897)
2023-12-27T10:36:13.6317402Z 	at com.jcabi.log.Logger.format(Logger.java:122)
2023-12-27T10:36:13.6318291Z 	at com.jcabi.log.Logger.infoForced(Logger.java:241)
2023-12-27T10:36:13.6319183Z 	at com.jcabi.log.Logger.info(Logger.java:226)
2023-12-27T10:36:13.6323859Z 	at org.eolang.opeo.Decompiler.decompile(Decompiler.java:92)
2023-12-27T10:36:13.6338352Z 	at org.eolang.opeo.DecompilerTest.decompilesSeveralFiles(DecompilerTest.java:49)
2023-12-27T10:36:13.6340294Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2023-12-27T10:36:13.6342138Z 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2023-12-27T10:36:13.6344136Z 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2023-12-27T10:36:13.6354816Z 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
2023-12-27T10:36:13.6356254Z 	at org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:727)
2023-12-27T10:36:13.6361014Z 	at org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:60)
2023-12-27T10:36:13.6364520Z 	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:131)
2023-12-27T10:36:13.6380377Z 	at org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:156)
2023-12-27T10:36:13.6382288Z 	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:147)
2023-12-27T10:36:13.6389001Z 	at org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestMethod(TimeoutExtension.java:86)
2023-12-27T10:36:13.6391387Z 	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:103)
2023-12-27T10:36:13.6393984Z 	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:93)
2023-12-27T10:36:13.6396458Z 	at org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:106)
2023-12-27T10:36:13.6398734Z 	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:64)
2023-12-27T10:36:13.6400864Z 	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:45)
2023-12-27T10:36:13.6403024Z 	at org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:37)
2023-12-27T10:36:13.6405167Z 	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:92)
2023-12-27T10:36:13.6407256Z 	at org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:86)
2023-12-27T10:36:13.6410915Z 	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$7(TestMethodTestDescriptor.java:217)
2023-12-27T10:36:13.6413288Z 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
2023-12-27T10:36:13.6420070Z 	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:213)
2023-12-27T10:36:13.6422300Z 	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:138)
2023-12-27T10:36:13.6424313Z 	at org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:68)
2023-12-27T10:36:13.6426419Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:151)
2023-12-27T10:36:13.6428442Z 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
2023-12-27T10:36:13.6491121Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
2023-12-27T10:36:13.6493212Z 	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
2023-12-27T10:36:13.6496534Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
2023-12-27T10:36:13.6498628Z 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
2023-12-27T10:36:13.6500567Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
2023-12-27T10:36:13.6502269Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
2023-12-27T10:36:13.6591000Z 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
2023-12-27T10:36:13.6593251Z 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
2023-12-27T10:36:13.6595533Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
2023-12-27T10:36:13.6597316Z 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
2023-12-27T10:36:13.6599201Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
2023-12-27T10:36:13.6600745Z 	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
2023-12-27T10:36:13.6611369Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
2023-12-27T10:36:13.6623110Z 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
2023-12-27T10:36:13.6625066Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
2023-12-27T10:36:13.6627148Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
2023-12-27T10:36:13.6628488Z 	at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
2023-12-27T10:36:13.6630482Z 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:41)
2023-12-27T10:36:13.6712579Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$6(NodeTestTask.java:155)
2023-12-27T10:36:13.6714525Z 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
2023-12-27T10:36:13.6716758Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:141)
2023-12-27T10:36:13.6725612Z 	at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:137)
2023-12-27T10:36:13.6727076Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$9(NodeTestTask.java:139)
2023-12-27T10:36:13.6731677Z 	at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
2023-12-27T10:36:13.6735317Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:138)
2023-12-27T10:36:13.6738786Z 	at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:95)
2023-12-27T10:36:13.6744690Z 	at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:35)
2023-12-27T10:36:13.6747028Z 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
2023-12-27T10:36:13.6748934Z 	at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:54)
2023-12-27T10:36:13.6750836Z 	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:147)
2023-12-27T10:36:13.6752911Z 	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:127)
2023-12-27T10:36:13.6754733Z 	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:90)
2023-12-27T10:36:13.6756494Z 	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:55)
2023-12-27T10:36:13.6758502Z 	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:102)
2023-12-27T10:36:13.6763383Z 	at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:54)
2023-12-27T10:36:13.6768576Z 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
2023-12-27T10:36:13.6772712Z 	at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:86)
2023-12-27T10:36:13.6774087Z 	at org.junit.platform.launcher.core.DefaultLauncherSession$DelegatingLauncher.execute(DefaultLauncherSession.java:86)
2023-12-27T10:36:13.6775434Z 	at org.apache.maven.surefire.junitplatform.LazyLauncher.execute(LazyLauncher.java:50)
2023-12-27T10:36:13.6776741Z 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:184)
2023-12-27T10:36:13.6778231Z 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:148)
2023-12-27T10:36:13.6779690Z 	at org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:122)
2023-12-27T10:36:13.6780988Z 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
2023-12-27T10:36:13.6782702Z 	at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
2023-12-27T10:36:13.6783912Z 	at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
2023-12-27T10:36:13.6786092Z 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
@volodya-lombrozo
Copy link
Author

@yegor256 Could you help here, please?

yegor256 added a commit that referenced this issue Dec 27, 2023
yegor256 added a commit that referenced this issue Dec 27, 2023
yegor256 added a commit that referenced this issue Dec 27, 2023
@yegor256
Copy link
Member

@rultor release, tag is 0.24.1

@volodya-lombrozo
Copy link
Author

@yegor256 if it helps:

DecompilerTest.decompilesSeveralFiles:49 � IllegalState Can't decompile files from 'C:\Users\RUNNER~1\AppData\Local\Temp\junit6118586807791275097\xmir' directory and save them into 'C:\Users\RUNNER~1\AppData\Local\Temp\junit6118586807791275097\opeo-xmir', current directory is 'D:\a\opeo-maven-plugin\opeo-maven-plugin'

private final Path xmirs; == C:\Users\RUNNER~1\AppData\Local\Temp\junit6118586807791275097\xmir
and Paths.get("").toAbsolutePath() == D:\a\opeo-maven-plugin\opeo-maven-plugin

@yegor256
Copy link
Member

@volodya-lombrozo that's a mess in Windows. we will just catch a runtime exception for now.

@rultor
Copy link
Contributor

rultor commented Dec 27, 2023

@rultor release, tag is 0.24.1

@yegor256 OK, I will release it now. Please check the progress here

@rultor
Copy link
Contributor

rultor commented Dec 27, 2023

@rultor release, tag is 0.24.1

@yegor256 Done! FYI, the full log is here (took me 23min)

@yegor256
Copy link
Member

@volodya-lombrozo try 0.24.1 please

@volodya-lombrozo
Copy link
Author

@yegor256 Now it works. Thank you!

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

3 participants