Coder Social home page Coder Social logo

Comments (8)

searls avatar searls commented on July 4, 2024

Oh no! Sorry to hear that. Are you able to share your project with me?
Or at least your directory structure and absolute path to your project
dir?

On Jul 6, 2011, at 11:14, mmajis
[email protected]
wrote:

I'm getting an IOException trying to run anything newer than 1.0.2-beta2 on Windows XP.

[INFO] The jasmine-maven-plugin encountered an exception:
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
       at java.io.WinNTFileSystem.canonicalize0(Native Method)
       at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:396)
       at java.io.File.getCanonicalPath(File.java:559)
       at com.github.searls.jasmine.io.RelativizesFilePaths.relativize(RelativizesFilePaths.java:15)
       at com.github.searls.jasmine.io.scripts.RelativizesASetOfScripts.relativize(RelativizesASetOfScripts.java:17)
       at com.github.searls.jasmine.CreatesManualRunner.scriptsForRunner(CreatesManualRunner.java:43)
       at com.github.searls.jasmine.CreatesManualRunner.create(CreatesManualRunner.java:34)
       at com.github.searls.jasmine.GenerateManualRunnerMojo.run(GenerateManualRunnerMojo.java:15)
       at com.github.searls.jasmine.AbstractJasmineMojo.execute(AbstractJasmineMojo.java:193)
       ...

It seems like this is due to using ConvertsFileToUriString.convert(file) for script files and later calling the equivalent of new File(theURIString).getCanonicalPath() in RelativizesFilePaths.relativize(). If the File is constructed using a URI object, however, things seem to work: new File(new URI(theURIString)).getCanonicalPath().

Keep up the good work! :)

Reply to this email directly or view it on GitHub:
#26

from jasmine-maven-plugin.

searls avatar searls commented on July 4, 2024

Alright, I think I figured out what's happening. The class ResolvesCompleteListOfScriptLocations.java constructs a bunch of file URIs as strings. in Windows, this will result in names like file:/c:/... which the File#getCanonicalPath() method (understandably) doesn't like.

I'll try to get this fixed ASAP since it'll probably be broken for all Windows users.

from jasmine-maven-plugin.

searls avatar searls commented on July 4, 2024

Alright, I've committed the fixes and cut a new release to Maven central to resolve this issue. My current project now behaves as I'd expect under Windows. Please try upgrading to the new 1.0.2-beta-5 version and see if that works for you (it may take another hour or so to make its way to Central)

from jasmine-maven-plugin.

searls avatar searls commented on July 4, 2024

^ And by "another hour or so", I mean several hours -- this is by far the longest sync time I've ever experienced :/

from jasmine-maven-plugin.

mmajis avatar mmajis commented on July 4, 2024

Just successfully ran tests with 1.0.2-beta-5. Thanks for the quick fix!

from jasmine-maven-plugin.

searls avatar searls commented on July 4, 2024

Glad to help. Thanks for creating the issue!

from jasmine-maven-plugin.

mufaro23 avatar mufaro23 commented on July 4, 2024

Hi Searls, am having the same problem on android studio can you please help me. Here is the error:

The device is not ready
java.io.IOException: The device is not ready
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.WinNTFileSystem.canonicalize(WinNTFileSystem.java:404)
at java.io.File.getCanonicalPath(File.java:618)
at java.io.File.getCanonicalFile(File.java:643)
at com.android.tools.idea.stats.RunStatsService.notifyDeploySplitApkStarted(RunStatsService.kt:98)
at com.android.tools.idea.run.tasks.SplitApkDeployTask.perform(SplitApkDeployTask.java:80)
at com.android.tools.idea.run.LaunchTaskRunner.run(LaunchTaskRunner.java:121)
at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:750)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:395)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:305)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

from jasmine-maven-plugin.

Amiya-873 avatar Amiya-873 commented on July 4, 2024

Alright, I think I figured out what's happening. The class ResolvesCompleteListOfScriptLocations.java constructs a bunch of file URIs as strings. in Windows, this will result in names like file:/c:/... which the File#getCanonicalPath() method (understandably) doesn't like.

I'll try to get this fixed ASAP since it'll probably be broken for all Windows users.

How to fix this kind of issue?

from jasmine-maven-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.