Newbies Christopher D Bailey Posted April 29, 2010 Newbies Posted April 29, 2010 The following script seems to work fine in 'groovyConsole' (i.e. separate from FileMaker), but gives me an error when I'm in FileMaker with ScriptMaster. I'm wondering if there's a .jar I need to load or something. def rooraa = ' "what up"rn"how, is it going?"rn"yay pop" ' def Listoo = [] rooraa.eachLine{ Listoo << it } Listoo In FM I get the error: groovy.lang.MissingMethodException: No signature of method: java.lang.String.eachLine() is applicable for argument types: (Script1$_run_closure1) values: {Script1$_run_closure1@4c55ff} This snippet is part of something bigger I was doing, but I isolated the problem I was having for the sake of example here. Thanks for any assistance.
Jesse Barnum Posted April 29, 2010 Posted April 29, 2010 Chris, check which version of Groovy is required for the eachLine method that takes a closure. We currently bundle 1.5 into ScriptMaster, but the latest version of Groovy at this time is 1.7. If the method you want was added after 1.5, that would cause this error. A future release of ScriptMaster will include Groovy 1.7.
Recommended Posts
This topic is 5333 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now