m0smith / malabar-mode-jar Goto Github PK
View Code? Open in Web Editor NEWThe support jar for EMACS malabar-mode
License: GNU General Public License v2.0
The support jar for EMACS malabar-mode
License: GNU General Public License v2.0
Currently hardcoded to 4428. Change it to default to 4428 but allow the user to specify a different one.
Hi, when I attempt to start from gradle, here's what I am getting:
$ gradle run
:compileJava UP-TO-DATE
:compileGroovy UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:run
Starting with :[:]
Exception in thread "main" java.lang.RuntimeException: Error grabbing Grapes -- [download failed: org.slf4j#slf4j-api;1.7.5!slf4j-api.jar, download failed: org.apache.httpcomponents#httpcore;4.1!httpcore.jar]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:81)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
at groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:421)
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:606)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:166)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:56)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:566)
at groovy.grape.GrapeIvy$resolve$3.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:153)
at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:535)
at groovy.grape.GrapeIvy$resolve$2.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:252)
at groovy.grape.Grape.grab(Grape.java:163)
at groovy.grape.Grape$grab.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at com.software_ninja.malabar.MalabarStart.startCLP(Malabar.groovy:50)
at com.software_ninja.malabar.MalabarStart$startCLP$0.callCurrent(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
at com.software_ninja.malabar.MalabarStart.startP(Malabar.groovy:38)
at com.software_ninja.malabar.MalabarStart.startArgs(Malabar.groovy:27)
at com.software_ninja.malabar.MalabarStart$startArgs.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.Callay.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
at com.software_ninja.malabar.Malabar.run(Malabar.groovy:9)
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:606)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1016)
at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:901)
at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:884)
at org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java:406)
at org.codehaus.groovy.runtime.InvokerHelper$runScript.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)
at com.software_ninja.malabar.Malabar.main(Malabar.groovy)
:run FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':run'.
> Process 'command '/home/luke/work/jdk/jdk1.7.0_75/bin/java'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
The similar thing happens when I try to add the port parameter.
In addition to maven, gradle should be supported.
Related to m0smith/malabar-mode#141
The spawn command should find the correct executable from ["bin/javaw.exe", "bin/java.exe", "bin/java"]
Some projects require s specific version of the JVM. Allow a project to specify:
Replace a beginning ~ with the user's home directory.
It is currently set to an empty string but needs to be set to the full path name of the file being compiled.
Args:
repo
pm
class
arg (can have multiple or none)
service: parse
args
name | default | desc |
---|---|---|
repo | ~/.m2/repository | The repo in case the pom needs t be re-read |
pom | none | The pom that defines the classpath |
script | none | The script/java to parse |
Return a JSON object with all the errors. An empty list means no errors.
Needs to take a class or resource and return a list of locations on the classpath.
See m0smith/malabar-mode#114 for discussion
The Symbols are a map rather than a string.
This discussion has some ideas: http://stackoverflow.com/questions/4206679/can-anyone-give-a-good-example-of-using-org-apache-maven-cli-mavencli-programatt
Pom only makes sense on a maven environment. PM=Project Manager and can be a pom file for name. Later it might be a gradle, lein, etc.
Maven defaults to -source 1.5; it seems Malabar mode should do this too.
Moved from m0smith/malabar-mode#113
@pieceoftheloaf I moved the issue to malabar-mode-jar
When running unit tests in maven, file paths are relative to the project path. Have the unit test service do the same by accepting a project path. Default to the path of the pom.
Hi, first of all - thanks for taking up the work on Malabar mode again :)
The new infrastructure is somewhat, well, new to me and I am not 100 % how to work with, but - I noticed that I can't start running the malabar from groovysh. Here's what happens when I select the latest grape for malabar (2.1.0) that I have found on Maven central:
Groovy Shell (2.4.0, JVM: 1.7.0_75)
Type ':help' or ':h' for help.
--------------------------------------------------------------------------------------------------------------------------------
groovy:000> def malabar = { classLoader = new groovy.lang.GroovyClassLoader();
groovy:001> Map[] grapez = [[group: 'com.software-ninja' , module:'malabar', version:'2.1.0']]
groovy:002> groovy.grape.Grape.grab(classLoader: classLoader, grapez)
groovy:003> classLoader.loadClass('com.software_ninja.malabar.Malabar').newInstance().startCL(classLoader); };
===> groovysh_evaluate$_run_closure1@60021a1
groovy:000> malabar
Unknown property: malabar
groovy:000> malabar()
No signature of method: groovysh_evaluate.malabar() is applicable for argument types: () values: []
groovy:000> WARNING: Abnormal JVM shutdown detected
See http://jedicoder.blogspot.com/2011/11/automated-gradle-project-deployment-to.html for instructions
the name will be 'systemProperties'
Default = true
If false, do not require the strict compiler. For use with groovy buffers.
Related to m0smith/malabar-mode#116
Currently optional dependencies are included, but this is wrong.
Every time I try to run the project I get:
» gradle -Dexec.args="-p 4428" run
FAILURE: Build failed with an exception.
* Where:
Build file '/home/hinmanm/src/elisp/malabar-mode-jar/build.gradle' line: 105
* What went wrong:
A problem occurred evaluating root project 'malabar'.
> org.eclipse.aether.internal.ant.types.RemoteRepository cannot be cast to org.gradle.api.publication.maven.internal.ant.CustomRemoteRepository
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 6.619 secs
gradle -Dexec.args="-p 4428" run 18.86s user 0.39s system 273% cpu 7.028 total
Currently there are some hard coded so the unit tests will pass. Add a new parameter "ex" which takes a comma-delimited list of artifactIds to ignore.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.