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

Does not work on Windows environments #1

Closed
carlosmiranda opened this issue Jun 9, 2014 · 17 comments
Closed

Does not work on Windows environments #1

carlosmiranda opened this issue Jun 9, 2014 · 17 comments
Labels

Comments

@carlosmiranda
Copy link

I was experimenting with this tool when working on a ticket for the Thindeck.com project. However, I can't build any images, because it gives me the following error:

[ERROR] Failed to execute goal com.texry:texry-maven-plugin:0.2.1:compile (default) on project thindeck: Failed to compile 'classes-1.tex': Cannot run program "/usr/bin/which": CreateProcess error=2, The system cannot find the file specified -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.texry:texry-maven-plugin:0.2.1:compile (default) on project thindeck: Failed to compile 'classes-1.tex'
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoFailureException: Failed to compile 'classes-1.tex'
        at com.texry.maven.CompileMojo.compile(CompileMojo.java:144)
        at com.texry.maven.CompileMojo.execute(CompileMojo.java:114)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
        ... 19 more
Caused by: java.io.IOException: Cannot run program "/usr/bin/which": CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        at com.texry.maven.Compiler.bin(Compiler.java:209)
        at com.texry.maven.Compiler.process(Compiler.java:117)
        at com.texry.maven.Compiler.compile(Compiler.java:81)
        at com.texry.maven.CompileMojo.compile(CompileMojo.java:134)
        ... 22 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:189)
        at java.lang.ProcessImpl.start(ProcessImpl.java:133)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
        ... 26 more

This is because I am running on Windows 7, which does not have the which command. There should be a way the tool to be run on Windows environments. We should find a way of running it without needing to rely on hard-coded invocations of Unix commands.

@yegor256 yegor256 added the bug label Jun 9, 2014
@dmarkov
Copy link

dmarkov commented Jun 9, 2014

we'll find someone to do this task, soon

@dmarkov
Copy link

dmarkov commented Jun 9, 2014

thanks for the report, I topped your acc for 15 mins, payment ID 40625850

@dmarkov
Copy link

dmarkov commented Dec 26, 2014

@darkled could you please pick this up? This article explains how we work. Any technical questions you may ask right here

Budget here is 30 mins (keep this principle in mind)

@asaen
Copy link

asaen commented Dec 27, 2014

@carlosmiranda please, check, should work now

@yegor256
Copy link
Member

@darkled it's too early to check. first, your pull request should be merged, then I will release a new version of the plugin to Maven Central. only then you will ask @carlosmiranda to check it

@asaen
Copy link

asaen commented Dec 27, 2014

@yegor256 ok, no problem

@asaen
Copy link

asaen commented Jan 6, 2015

@yegor256 what about releasing a new version to maven central? is it not there yet?

@yegor256
Copy link
Member

yegor256 commented Jan 6, 2015

@rultor release, tag is 1.1

@rultor
Copy link
Contributor

rultor commented Jan 6, 2015

@rultor release, tag is 1.1

@yegor256 OK, I will release it now. Please check the progress here

@rultor
Copy link
Contributor

rultor commented Jan 6, 2015

@rultor release, tag is 1.1

@yegor256 Oops, I failed. You can see the full log here (spent 8min)

yegor256 pushed a commit that referenced this issue Jan 6, 2015
@yegor256
Copy link
Member

yegor256 commented Jan 6, 2015

@rultor release, tag is 1.1

@rultor
Copy link
Contributor

rultor commented Jan 6, 2015

@rultor release, tag is 1.1

@yegor256 OK, I will release it now. Please check the progress here

@rultor
Copy link
Contributor

rultor commented Jan 6, 2015

@rultor release, tag is 1.1

@yegor256 Done! FYI, the full log is here (took me 12min)

@yegor256
Copy link
Member

yegor256 commented Jan 6, 2015

@darkled 1.1 is in Maven Central

@asaen
Copy link

asaen commented Jan 6, 2015

@yegor256 thanks.

@carlosmiranda could you, please, check it now?

@carlosmiranda
Copy link
Author

@darkled Thanks, the error above has been fixed. However, I am now getting a different error.

I'm closing this now, let's continue with #9.

@dmarkov
Copy link

dmarkov commented Jan 12, 2015

@darkled Thanks a lot, I just topped your account for 30 mins, transaction ID 50043348

added +30 to your rating, now it is equal to +0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants