Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Shebang syntax conflicts with script parameters #51

@imagejan

Description

@imagejan

Consider the following cell contents:

#!groovy
// @LogService log
log.info("Hello, World!")

This will throw:

javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: log for class: Script1

SciJava script parameters are required to be at the very beginning of the script.
Maybe the shebang (#!groovy) line can be stripped from the script before handing it to the ScriptService to allow proper input harvesting?

(Tested with scijava-jupyter-kernel 0.3.1-0 on Windows.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions