Re: [Tails-dev] rake build fails - NoMethodError: undefined …

Delete this message

Reply to this message
Autor: intrigeri
Data:  
Para: Tymek Majewski, The Tails public development discussion list
Assunto: Re: [Tails-dev] rake build fails - NoMethodError: undefined method `[]' for nil:NilClass
Hi,

Tymek Majewski via Tails-dev (2021-08-25):
> I'm trying to follow https://tails.boum.org/contribute/build/
> but I haven't managed to get far as `make rake` fails quickly.
>
> I'm not from a rake background so it would take me aaages to figure this one out on my own and I hope you can help.
>
> Full output:
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> tmaj@myhost:~/dev/tails$ rake build && rake vm:halt
> rake aborted!
> NoMethodError: undefined method `[]' for nil:NilClass
> /home/tmaj/dev/tails/Rakefile:152:in `vm_state'
> /home/tmaj/dev/tails/Rakefile:183:in `enough_free_memory_for_ram_build?'
> /home/tmaj/dev/tails/Rakefile:210:in `block in <top (required)>'
> Tasks: TOP => build => parse_build_options
> (See full trace by running task with --trace)


So it fails at this line:

  if    status_line['not created']


… apparently because status_line is nil.

I suggest you add some debugging to the vm_state method,
in order to figure out why status_line is nil. I would start
by printing the value of the "out" variable.

Cheers!