Skip to content

Script parsing issue - TestRunner, ScriptRunner #1391

Answered by ghost
jimhar8 asked this question in Q&A
Discussion options

You must be logged in to vote

ScriptRunner instruments code so that it can catch exceptions, highlight lines, and log things. It does a really good job at this but there are some cases especially with brackets where it can do the wrong thing. The workaround is as you said, typically moving the brace up to the earlier line.

The code that does this did change in COSMOS 5, (in particular it changed with Ruby 2.7). We use that same base code that is used by the Ruby irb tool to decide what can be done to any individual line. I tried to recreate this particular example in COSMOS 5 ScriptRunner and it worked just fine. There may still be edge cases like this though.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
1 participant