Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation code example not working #11

Closed
samuell opened this issue Aug 22, 2014 · 4 comments
Closed

Documentation code example not working #11

samuell opened this issue Aug 22, 2014 · 4 comments

Comments

@samuell
Copy link
Contributor

samuell commented Aug 22, 2014

The code example in the output files section on the process page does not work.

The code xample in question:

process randomNum {

   output:
   file 'result.txt' into numbers

   '''
   echo $RANDOM > result
   '''
}

numbers.subscribe { println "Received: " + it.text }

When executed, I get:

[14:45:53] ~/code/test/nextflow $ nextflow run randomnum.nf 
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=lcd_hrgb -Dswing.aatext=true -Dsun.java2d.xrender=true
N E X T F L O W  ~  version 0.9.0
[warm up] executor > local
[47/583d32] Submitted process > randomNum (1)
ERROR: Error executing process > 'randomNum (1)'

Caused by:
  Missing output file: 'result.txt' expected by process: randomNum (1)

Command executed:

  echo $RANDOM > result

Command exit status:
  0

Command output:
  (empty)

Work dir:
  /home/samuel/code/test/nextflow/work/47/583d329642c9b78d65fadaabf6637a

Tip: view the complete command output by changing to the process work dir and entering the command: 'cat .command.out'
@pditommaso
Copy link
Member

Hi Samuel,

Oops, yes, you are right. The declared file name does not match with the
one created.

I've just fixed it

http://docs.nextflow.io/en/latest/process.html#output-files

Thanks a lot for reporting that.

Cheers,
Paolo

On Fri, Aug 22, 2014 at 2:46 PM, Samuel Lampa notifications@github.com
wrote:

The code example in the output files section on the process page
https://github.com/nextflow-io/nextflow/blob/master/docs/process.rst#output-files
does not work.

The code xample in question:

process randomNum {

output:
file 'result.txt' into numbers

''' echo $RANDOM > result '''}
numbers.subscribe { println "Received: " + it.text }

When executed, I get:

[14:45:53] ~/code/test/nextflow $ nextflow run randomnum.nf
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=lcd_hrgb -Dswing.aatext=true -Dsun.java2d.xrender=true
N E X T F L O W ~ version 0.9.0[warm up] executor > local[47/583d32] Submitted process > randomNum (1)
ERROR: Error executing process > 'randomNum (1)'

Caused by:
Missing output file: 'result.txt' expected by process: randomNum (1)

Command executed:

echo $RANDOM > result

Command exit status:
0

Command output:
(empty)

Work dir:
/home/samuel/code/test/nextflow/work/47/583d329642c9b78d65fadaabf6637a

Tip: view the complete command output by changing to the process work dir and entering the command: 'cat .command.out'


Reply to this email directly or view it on GitHub
#11.

@samuell
Copy link
Contributor Author

samuell commented Aug 22, 2014

Cool, thx!

@pditommaso
Copy link
Member

This was easy ;)

On Fri, Aug 22, 2014 at 3:03 PM, Samuel Lampa notifications@github.com
wrote:

Cool, thx!


Reply to this email directly or view it on GitHub
#11 (comment).

@samuell
Copy link
Contributor Author

samuell commented Aug 22, 2014

But fast fixed, nonetheless :)

olifly added a commit to wuxi-nextcode/nextflow-public that referenced this issue Nov 9, 2018
Nex 24: Auto nfs export/mount work folder and allow download of development version from bucket
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants