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

Space in Path causes Exception on Windows #17

Open
WalkerCodeRanger opened this issue Feb 2, 2019 · 0 comments
Open

Space in Path causes Exception on Windows #17

WalkerCodeRanger opened this issue Feb 2, 2019 · 0 comments

Comments

@WalkerCodeRanger
Copy link

I've installed the wdk-v0.4.2 on windows. I'm running under git bash using modifications to the wy script that I submitted as a pull request. When I try to run any actual command I get an exception. For example:

$ wy run merge_sort.whiley main
WARNING: version numbering unavailable
internal failure: Files\wdk-v0.4.2\lib\wystd-v0.2.3.jar
java.nio.file.NoSuchFileException: Files\wdk-v0.4.2\lib\wystd-v0.2.3.jar
        at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:85)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103)
        at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108)
        at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:53)
        at java.base/sun.nio.fs.WindowsFileAttributeViews$Basic.readAttributes(WindowsFileAttributeViews.java:38)
        at java.base/sun.nio.fs.WindowsFileSystemProvider.readAttributes(WindowsFileSystemProvider.java:194)
        at java.base/java.nio.file.Files.readAttributes(Files.java:1763)
        at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1222)
        at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:726)
        at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:843)
        at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:246)
        at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:176)
        at java.base/java.util.jar.JarFile.<init>(JarFile.java:346)
        at java.base/java.util.jar.JarFile.<init>(JarFile.java:317)
        at java.base/java.util.jar.JarFile.<init>(JarFile.java:283)
        at wyfs.util.JarFileRoot.refresh(JarFileRoot.java:59)
        at wyfs.util.JarFileRoot.<init>(JarFileRoot.java:38)
        at wyc.util.AbstractProjectCommand.addBootpath(AbstractProjectCommand.java:240)
        at wyc.util.AbstractProjectCommand.initialiseProject(AbstractProjectCommand.java:211)
        at wyc.command.Run.execute(Run.java:85)
        at wyc.command.Run.execute(Run.java:44)
        at wycc.WyMain.main(WyMain.java:105)

Note that I had the wdk installed at D:\\Program Files\wdk-v0.4.2\lib\wystd-v0.2.3.jar. It appears the space in the file name is the cause of the issue.

I've moved the install to a path without any spaces and that seems to have worked around this issue for now.

@DavePearce DavePearce transferred this issue from Whiley/WhileyCompiler Jan 10, 2022
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