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

The program treats Windows path separator "\" as escape character #4

Open
computist opened this issue Feb 23, 2017 · 0 comments
Open

Comments

@computist
Copy link
Collaborator

computist commented Feb 23, 2017

The path separator in windows "" is different from that in linux "/". The program treat it as escape and throw an exception. This might be an issue with the library PipeGen is using.

Feb 23, 2017 2:14:38 PM org.brandonhaynes.pipegen.utilities.DataPipeTasks test
INFO: Testing Myria (./gradlew -Dtest.single=FileScanTest cleanTest test)
Feb 23, 2017 2:14:38 PM org.brandonhaynes.pipegen.utilities.DataPipeTasks rollback
INFO: Rolling back Myria
Feb 23, 2017 2:14:38 PM org.brandonhaynes.pipegen.utilities.FileRestorer restoreFiles
INFO: Restoring Z:\TEMP\java\lang\String.class
Exception in thread "main" java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 4
^Z:\TEMP

^
at java.util.regex.Pattern.error(Pattern.java:1955)
at java.util.regex.Pattern.escape(Pattern.java:2471)
at java.util.regex.Pattern.atom(Pattern.java:2198)
at java.util.regex.Pattern.sequence(Pattern.java:2130)
at java.util.regex.Pattern.expr(Pattern.java:1996)
at java.util.regex.Pattern.compile(Pattern.java:1696)
at java.util.regex.Pattern.(Pattern.java:1351)
at java.util.regex.Pattern.compile(Pattern.java:1028)
at java.lang.String.replaceAll(String.java:2210)
at org.brandonhaynes.pipegen.utilities.FileRestorer.restoreFiles(FileRestorer.java:20)
at org.brandonhaynes.pipegen.utilities.DataPipeTasks.rollback(DataPipeTasks.java:118)
at org.brandonhaynes.pipegen.utilities.DataPipeTasks.create(DataPipeTasks.java:35)
at org.brandonhaynes.pipegen.utilities.DataPipeTasks.create(DataPipeTasks.java:25)
at org.brandonhaynes.pipegen.PipeGen.main(PipeGen.java:33)
at org.brandonhaynes.pipegen.PipeGen.main(PipeGen.java:28)
at org.brandonhaynes.pipegen.PipeGen.main(PipeGen.java:23)
at org.brandonhaynes.pipegen.PipeGen.main(PipeGen.java:18)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)

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

1 participant