learn-wdl icon indicating copy to clipboard operation
learn-wdl copied to clipboard

ERROR: Unexpected symbol when parsing 'setter'.

Open dasari-mohana opened this issue 9 months ago • 1 comments

I'm encountering an error while working with a WDL (Workflow Description Language) script. The error message is as follows:

```ERROR: Unexpected symbol (line 8, col 5) when parsing 'setter'.

Expected equal, got "command ".

command {
^
$setter = :equal $e -> $1 ```

The issue seems to be related to the command block within one of the tasks in my WDL script. I'm not sure what's causing this error, and I would appreciate any guidance on how to resolve it.

Here's the relevant portion of the WDL script:

  ``` task CreateOutputDirectory {
      File outputDir
      
      # Input block for the task.
      input {
          File outputDir
      }
      
      command {
          mkdir -p ~{outputDir}  
      }
      
      output {
          File createdOutputDir = "~{outputDir}"  # Define the created output directory as an output.
      }
  } ```

Could someone please help me understand what's causing this error and how to correct it? Your assistance would be greatly appreciated. I tried " command <<< >>>" method also.

I wrote this script using WDL docs tutorial and this github https://docs.openwdl.org/en/latest/WDL)

dasari-mohana avatar Oct 05 '23 04:10 dasari-mohana