Giter VIP home page Giter VIP logo

Comments (7)

lance avatar lance commented on June 27, 2024

@chipat what exactly are you trying to do? I'm not totally clear.

from nodyn.

softwarepsychology avatar softwarepsychology commented on June 27, 2024

Hello @lance ,
I just forked the source code and I am trying to run nodyn directly from the source (I am using intellij IDE). Basically, I am trying to run .

java org.projectodd.nodyn.Main --debug --console

Would that work? (assuming all jars are in the classpath)

Thanks!

from nodyn.

lance avatar lance commented on June 27, 2024

I don’t typically run from an IDE. How are you supplying the args to Main.main()?

On May 6, 2014, at 5:26 PM, Chirag Patel [email protected] wrote:

Hello Lance,
I just forked the source code and I am trying to run nodyn directly from the source (I am using intellij IDE). Basically, I am trying to run .

java org.projectodd.nodyn.Main --debug --console

Would that work? (assuming all jars are in the classpath)

Thanks!


Reply to this email directly or view it on GitHub.

from nodyn.

softwarepsychology avatar softwarepsychology commented on June 27, 2024

Yes. Thats pretty much what I am doing. The Main.main() is being called with two args "--debug" and "--console"

Here is the entire stack trace. (Sorry for not attaching the entire stack trace earlier :) )

There was an error loading the module util.js. Error message: ReferenceError: unable to reference: global
org.dynjs.exception.ThrowException: ReferenceError: unable to reference: global
at .(util.js:67)
at Object.require(util.js:659)
at Object.require(node_console.js:1)
at .(:15)
at .(Unknown Source)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.getValue(InvokeDynamicInterpretingVisitor.java:146)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:966)
at org.dynjs.parser.ast.DotExpression.accept(DotExpression.java:70)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:64)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:875)
at org.dynjs.parser.ast.IfStatement.accept(IfStatement.java:93)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptFunction.call(JavascriptFunction.java:45)
at org.dynjs.runtime.ExecutionContext.call(ExecutionContext.java:157)
at org.dynjs.runtime.linker.InterpretingInvokeDynamicHandler.call(InterpretingInvokeDynamicHandler.java:40)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:89)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:31)
at org.dynjs.parser.ast.AssignmentExpression.accept(AssignmentExpression.java:32)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:480)
at org.dynjs.parser.ast.ExpressionStatement.accept(ExpressionStatement.java:54)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptProgram.execute(JavascriptProgram.java:37)
at org.dynjs.runtime.ExecutionContext.execute(ExecutionContext.java:124)
at org.dynjs.runtime.Runner.execute(Runner.java:82)
at org.dynjs.runtime.modules.ClasspathModuleProvider.load(ClasspathModuleProvider.java:25)
at org.dynjs.runtime.builtins.Require.call(Require.java:153)
at org.dynjs.runtime.AbstractNativeFunction.call(AbstractNativeFunction.java:67)
at org.dynjs.runtime.ExecutionContext.call(ExecutionContext.java:157)
at org.dynjs.runtime.linker.InterpretingInvokeDynamicHandler.call(InterpretingInvokeDynamicHandler.java:40)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:89)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:1520)
at org.dynjs.parser.ast.VariableDeclaration.accept(VariableDeclaration.java:43)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:1531)
at org.dynjs.parser.ast.VariableStatement.accept(VariableStatement.java:80)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptProgram.execute(JavascriptProgram.java:37)
at org.dynjs.runtime.ExecutionContext.execute(ExecutionContext.java:124)
at org.dynjs.runtime.Runner.execute(Runner.java:82)
at org.dynjs.runtime.modules.ClasspathModuleProvider.load(ClasspathModuleProvider.java:25)
at org.dynjs.runtime.builtins.Require.call(Require.java:153)
at org.dynjs.runtime.AbstractNativeFunction.call(AbstractNativeFunction.java:67)
at org.dynjs.runtime.ExecutionContext.call(ExecutionContext.java:157)
at org.dynjs.runtime.linker.InterpretingInvokeDynamicHandler.call(InterpretingInvokeDynamicHandler.java:40)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:89)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:31)
at org.dynjs.parser.ast.AssignmentExpression.accept(AssignmentExpression.java:32)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:480)
at org.dynjs.parser.ast.ExpressionStatement.accept(ExpressionStatement.java:54)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptProgram.execute(JavascriptProgram.java:37)
at org.dynjs.runtime.ExecutionContext.eval(ExecutionContext.java:139)
at org.dynjs.runtime.Runner.evaluate(Runner.java:102)
at org.projectodd.nodyn.Main.initScript(Main.java:116)
at org.projectodd.nodyn.Main.initializeRuntime(Main.java:83)
at org.dynjs.cli.Main.startRepl(Main.java:144)
at org.dynjs.cli.Main.run(Main.java:65)
at org.projectodd.nodyn.Main.main(Main.java:51)
nodyn console.
Type exit and press ENT

from nodyn.

lance avatar lance commented on June 27, 2024

OK - I think I see what’s going on. I will take a look at this tonight or in the morning.

Lance

On May 6, 2014, at 5:57 PM, Chirag Patel [email protected] wrote:

Yes. Thats pretty much what I am doing. The Main.main() is being called with two args "--debug" and "--console"

Here is the entire stack trace. (Sorry for not attaching the entire stack trace earlier :) )

at .(util.js:67)
at Object.require(util.js:659)
at Object.require(node_console.js:1)
at .(:15)
at .(Unknown Source)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.getValue(InvokeDynamicInterpretingVisitor.java:146)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:966)
at org.dynjs.parser.ast.DotExpression.accept(DotExpression.java:70)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:64)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:875)
at org.dynjs.parser.ast.IfStatement.accept(IfStatement.java:93)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptFunction.call(JavascriptFunction.java:45)
at org.dynjs.runtime.ExecutionContext.call(ExecutionContext.java:157)
at org.dynjs.runtime.linker.InterpretingInvokeDynamicHandler.call(InterpretingInvokeDynamicHandler.java:40)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:89)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:31)
at org.dynjs.parser.ast.AssignmentExpression.accept(AssignmentExpression.java:32)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:480)
at org.dynjs.parser.ast.ExpressionStatement.accept(ExpressionStatement.java:54)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptProgram.execute(JavascriptProgram.java:37)
at org.dynjs.runtime.ExecutionContext.execute(ExecutionContext.java:124)
at org.dynjs.runtime.Runner.execute(Runner.java:82)
at org.dynjs.runtime.modules.ClasspathModuleProvider.load(ClasspathModuleProvider.java:25)
at org.dynjs.runtime.builtins.Require.call(Require.java:153)
at org.dynjs.runtime.AbstractNativeFunction.call(AbstractNativeFunction.java:67)
at org.dynjs.runtime.ExecutionContext.call(ExecutionContext.java:157)
at org.dynjs.runtime.linker.InterpretingInvokeDynamicHandler.call(InterpretingInvokeDynamicHandler.java:40)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:89)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:1520)
at org.dynjs.parser.ast.VariableDeclaration.accept(VariableDeclaration.java:43)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:1531)
at org.dynjs.parser.ast.VariableStatement.accept(VariableStatement.java:80)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptProgram.execute(JavascriptProgram.java:37)
at org.dynjs.runtime.ExecutionContext.execute(ExecutionContext.java:124)
at org.dynjs.runtime.Runner.execute(Runner.java:82)
at org.dynjs.runtime.modules.ClasspathModuleProvider.load(ClasspathModuleProvider.java:25)
at org.dynjs.runtime.builtins.Require.call(Require.java:153)
at org.dynjs.runtime.AbstractNativeFunction.call(AbstractNativeFunction.java:67)
at org.dynjs.runtime.ExecutionContext.call(ExecutionContext.java:157)
at org.dynjs.runtime.linker.InterpretingInvokeDynamicHandler.call(InterpretingInvokeDynamicHandler.java:40)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:89)
at org.dynjs.parser.ast.FunctionCallExpression.accept(FunctionCallExpression.java:85)
at org.dynjs.runtime.interp.InvokeDynamicInterpretingVisitor.visit(InvokeDynamicInterpretingVisitor.java:31)
at org.dynjs.parser.ast.AssignmentExpression.accept(AssignmentExpression.java:32)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:480)
at org.dynjs.parser.ast.ExpressionStatement.accept(ExpressionStatement.java:54)
at org.dynjs.runtime.interp.BasicInterpretingVisitor.visit(BasicInterpretingVisitor.java:286)
at org.dynjs.parser.ast.BlockStatement.accept(BlockStatement.java:117)
at org.dynjs.runtime.interp.InterpretedBasicBlock.call(InterpretedBasicBlock.java:28)
at org.dynjs.runtime.wrapper.JavascriptProgram.execute(JavascriptProgram.java:37)
at org.dynjs.runtime.ExecutionContext.eval(ExecutionContext.java:139)
at org.dynjs.runtime.Runner.evaluate(Runner.java:102)
at org.projectodd.nodyn.Main.initScript(Main.java:116)
at org.projectodd.nodyn.Main.initializeRuntime(Main.java:83)
at org.dynjs.cli.Main.startRepl(Main.java:144)
at org.dynjs.cli.Main.run(Main.java:65)
at org.projectodd.nodyn.Main.main(Main.java:51)

Reply to this email directly or view it on GitHub.

from nodyn.

lance avatar lance commented on June 27, 2024

@chipat @softwarepsychology please give it a try with this latest commit and let me know how it works for you.

from nodyn.

softwarepsychology avatar softwarepsychology commented on June 27, 2024

It worked! Awesome...! Thank you @lance!

from nodyn.

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.