openwdl / learn-wdl

Educational materials for learning WDL
BSD 3-Clause "New" or "Revised" License
117 stars 49 forks source link

ERROR: Unexpected symbol when parsing 'setter'. #47

Open dasari-mohana opened 11 months ago

dasari-mohana commented 11 months ago

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)

llangit-broad commented 6 months ago

Would it be possible for you to provide the complete WDL script that is causing the error? thanks