salesforce / grpc-java-contrib

Useful extensions for the grpc-java library
BSD 3-Clause "New" or "Revised" License
219 stars 34 forks source link

Invalid output file name for insertion point during debug #170

Closed jvmlet closed 1 year ago

jvmlet commented 2 years ago

I'm on latest version 1.2.0, see this image

The next call to Files.createParentDirs(outFile); at line 167 fails with

java.io.IOException: The filename, directory name, or volume label syntax is incorrect
rmichela commented 2 years ago

What OS are you using? Cursory searching of that error suggests Windows.

jvmlet commented 2 years ago

It's windows indeed, but the implementation is buggy anyway. getNameWithoutExtension cuts the full path and dot character before java is missing from output file name. So, while it might not throw the exception in Linux environment, it behaves not the way it should....