Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

REPL console: fails to expand parameter in file path #516

Closed
mattirn opened this issue Mar 13, 2020 · 0 comments
Closed

REPL console: fails to expand parameter in file path #516

mattirn opened this issue Mar 13, 2020 · 0 comments
Labels
Milestone

Comments

@mattirn
Copy link
Collaborator

mattirn commented Mar 13, 2020

groovy-repl> data=slurp ${ROOT}/data.json
[rawLine:data=slurp ${ROOT}/data.json, command:slurp, args:[${ROOT}/data.json], variable:data, file:null, append:false, pipe:]
groovy.lang.MissingPropertyException: No such property: json for class: java.lang.String
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:65)
	at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(GetEffectivePojoPropertySite.java:65)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:298)
	at Script42.run(Script42.groovy:2)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:431)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:465)
	at groovy.lang.GroovyShell.evaluate(GroovyShell.java:440)
	at org.jline.script.GroovyEngine.execute(GroovyEngine.java:164)
	at org.jline.builtins.ConsoleEngineImpl.expandParameters(ConsoleEngineImpl.java:290)
	at org.jline.builtins.SystemRegistryImpl.execute(SystemRegistryImpl.java:1041)
	at org.jline.demo.Repl.main(Repl.java:380)
@mattirn mattirn added the bug label Mar 13, 2020
@mattirn mattirn added this to the 3.14.1 milestone Mar 13, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant