geoffd123/Hpgl2Gcode — Issue #1: Undefined method when parsing my HPGL
Author: jridley
Created: 2011-12-29 03:43:54+00:00
State: open

My HPGL appears OK but I get this when I give it to HGPL2Gcode:

>ruby bin\hpgl2gcode.rb -i foo.hpgl
D:/apps/reprap/geoffd123-Hpgl2Gcode-c6e7067/lib/hpgl2gcode/gcode.rb:70:in `process': undefined method `[]' for nil:NilClass (NoMethodError)
from D:/apps/reprap/geoffd123-Hpgl2Gcode-c6e7067/lib/hpgl2gcode/gcode.rb:89:in `block in execute'
from D:/apps/reprap/geoffd123-Hpgl2Gcode-c6e7067/lib/hpgl2gcode/gcode.rb:88:in `each'
from D:/apps/reprap/geoffd123-Hpgl2Gcode-c6e7067/lib/hpgl2gcode/gcode.rb:88:in `each_with_index'
from D:/apps/reprap/geoffd123-Hpgl2Gcode-c6e7067/lib/hpgl2gcode/gcode.rb:88:in `execute'
from bin/hpgl2gcode.rb:7:in `

'

My HPGL file is at http://make-something.com/stuff/foo.hpgl

Note this is the first time I've touched Ruby so I could have something wrong with my install, but it does run OK against the provided HPGL file.