Comments (8)
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.
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.
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.
^ 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.
Just successfully ran tests with 1.0.2-beta-5
. Thanks for the quick fix!
from jasmine-maven-plugin.
Glad to help. Thanks for creating the issue!
from jasmine-maven-plugin.
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.
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 theFile#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)
- Jasmine-Maven plugin error in Windows platform HOT 1
- antlr error HOT 1
- ReferenceErrors when running in Jenkins with symlinked JENKINS_HOME HOT 3
- How to use phantomjs 2.1.1 HOT 1
- Jenkins Maven Integration with Jasmine broken since 2.2 (Test results not shown) HOT 2
- Cannot make it work with ManualSpecRunner HOT 2
- Allow users to configure tests to run in a random order HOT 2
- turnoff the default reports generated by this plugin and print only the custom reporter messages HOT 1
- Can't customize ChromeDriver on 3.0-alpha-01 HOT 2
- Update the github pages site HOT 1
- Unable to set WebDriver IE specific capability ignoreProtectedModeSettings HOT 2
- Chrome version 74 HOT 4
- The documentation page is down HOT 3
- Blocked testing with latest version HOT 11
- Cannot make it work with RemoteWebDriver and Docker HOT 5
- timeout error after waiting for 300 sec with version 3.0-beta-01 HOT 2
- jasmine:bdd (version 3.0-beta-01) opens browser but jetty gives 403 HOT 3
- Broken link for usage page HOT 2
- The link to documentation at github is broken. HOT 5
- plugin doesn't work with Chrome version 117 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jasmine-maven-plugin.