Exception when log file was opened
See original GitHub issueAfter last update to v1.0.0 plugin periodically throws an exception for log files. I also use the ideolog extension, which highlights the text. Maybe there are conflicts? Example of problematic log file:
{"message":"some info message","level":"info","timestamp":"2019-08-15T12:36:14.261Z"}
{"message":"some error message","level":"error","timestamp":"2019-08-15T12:58:17.857Z"}
...
Stack trace for exception:
java.nio.file.InvalidPathException: Illegal char <<> at index 0: <74cffee0-dc06-4d8b-916f-713aa3a005d4>/**/**/**.log
at java.base/sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153)
at java.base/sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77)
at java.base/sun.nio.fs.WindowsPath.parse(WindowsPath.java:92)
at java.base/sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:229)
at java.base/java.nio.file.Path.of(Path.java:147)
at java.base/java.nio.file.Paths.get(Paths.java:69)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.data.FileData$relativePath$2.invoke(FileData.kt:88)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.data.FileData$relativePath$2.invoke(FileData.kt:31)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.dependencies.kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.data.FileData.getRelativePath(FileData.kt)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.data.FileData$relativePathSane$2.invoke(FileData.kt:40)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.data.FileData$relativePathSane$2.invoke(FileData.kt:31)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.dependencies.kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.data.FileData.getRelativePathSane(FileData.kt)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.data.FileData.getField(FileData.kt:55)
at com.almightyalpaca.jetbrains.plugins.discord.shared.source.abstract.AbstractLanguageMap.findLanguage(AbstractLanguageMap.kt:30)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.renderer.RenderContext$match$2.invoke(RenderContext.kt:36)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.renderer.RenderContext$match$2.invoke(RenderContext.kt:27)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.dependencies.kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.renderer.RenderContext.getMatch(RenderContext.kt)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.settings.values.PresenceIcon$FILE.getResult(PresenceIcon.kt:31)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.settings.values.PresenceIcon.get(PresenceIcon.kt:40)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.renderer.Renderer$render$1.invoke(Renderer.kt:57)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.renderer.Renderer$render$1.invoke(Renderer.kt:23)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.RichPresence.<init>(RichPresence.kt:45)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.renderer.Renderer.render(Renderer.kt:39)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.renderer.FileRenderer.render(FileRenderer.kt:22)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.renderer.Renderer.render(Renderer.kt:24)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.rpc.impl.RichPresenceRenderServiceImpl$render$1.invokeSuspend(RichPresenceRenderServiceImpl.kt:93)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.dependencies.kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.dependencies.kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:238)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.dependencies.kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:594)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.dependencies.kotlinx.coroutines.scheduling.CoroutineScheduler.access$runSafely(CoroutineScheduler.kt:60)
at com.almightyalpaca.jetbrains.plugins.discord.plugin.dependencies.kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:742)
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
C# File Open frequently, already open exception
Hey so I have a logger class that is called frequently, sometimes when its called fast repeatedly it will throw an exception that...
Read more >Exception Logging to Text file - C# Corner
In this article we will learn about the Exception Logging to Text file using asp.net C#.
Read more >Writing to log file - file in use error - best way to avoid - MSDN
Hi. In one of my apps a line is written to a log file when an error occurs. Normally this isn't an issue,...
Read more >CCDD exception while unable to open log file #59 - GitHub
The exception implies that the logFile variable is never (or not successfully) created (= null). If that were the case the exception that ......
Read more >Unable to access log file (file store location) while starting ...
To further narrow the appropriate action, check the application server FFDC log for an exception that matches the message seen in SystemOut.log ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, will take a look at that 👍
Bundled plugin name: Remote Hosts Access