{"action":"opened","issue":{"url":"https://api.github.com/repos/nextflow-io/nextflow/issues/180","repository_url":"https://api.github.com/repos/nextflow-io/nextflow","labels_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/180/comments","events_url":"https://api.github.com/repos/nextflow-io/nextflow/issues/180/events","html_url":"https://github.com/nextflow-io/nextflow/issues/180","id":159845011,"number":180,"title":"Directives do not accept a negative numeric value","user":{"login":"pditommaso","id":816968,"avatar_url":"https://avatars.githubusercontent.com/u/816968?v=3","gravatar_id":"","url":"https://api.github.com/users/pditommaso","html_url":"https://github.com/pditommaso","followers_url":"https://api.github.com/users/pditommaso/followers","following_url":"https://api.github.com/users/pditommaso/following{/other_user}","gists_url":"https://api.github.com/users/pditommaso/gists{/gist_id}","starred_url":"https://api.github.com/users/pditommaso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pditommaso/subscriptions","organizations_url":"https://api.github.com/users/pditommaso/orgs","repos_url":"https://api.github.com/users/pditommaso/repos","events_url":"https://api.github.com/users/pditommaso/events{/privacy}","received_events_url":"https://api.github.com/users/pditommaso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-06-12T20:06:59Z","updated_at":"2016-06-12T20:06:59Z","closed_at":null,"body":"Directive taking a negative  numeric value are not correctly parsed. For example: \r\n\r\n```\r\nprocess foo {\r\n  maxErrors -1 \r\n  '''\r\n  echo Hello\r\n  '''\r\n}\r\n```\r\n\r\nThe `maxErrors` directive is *NOT* set to `-1`. What happens is that the statement is parsed as a binary expression i.e. `maxErrors` variable minus the value `1`, instead of setting the directive through a method invocation as expected. \r\n\r\nWorkaround: wrap the number with parenthesis i.e. `maxErrors (-1)`  "}}
{"actor":{"display_login":"pditommaso"}}