Ticket #2 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Mistaken call to non-existant StringScanner#finish

Reported by: deveiant Owned by: deveiant
Priority: normal Milestone: Previous Releases
Component: MarkdownSyntax Version: 0.0.2
Severity: critical Keywords: old bugs
Cc:

Description

From an email:

I've just spotted a call to a `finish` method of `StringScanner` which
doesn't seem to have it; probably you meant `terminate`.

Thanks for your libraries!

(Reported by Javier Goizueta)

Change History

Changed 4 years ago by deveiant

  • status changed from new to assigned

Date: 2004-04-23 04:52[[BR]] Sender: ged
Logged In: YES
user_id=158

Confirmed with a new test:

Loaded suite BlueCloth
Started
.............................................................F...
................
Finished in 0.900868 seconds.

  1) Failure:
test_861_graceful_fail_for_unclosed_brackets_and_bug_524_(Subfunc
tionsTestCase)
    [(eval):9:in `test_861_graceful_fail_for_unclosed_brackets_an
d_bug_524_'
     ./tests/bctestcase.rb:225:in `run']:
Exception raised:
Class: <NoMethodError>
Message: <"undefined method `finish' for #<StringScanner
16/58 \"...t a [\" @
\"brack...\">">
---Backtrace---
./lib/bluecloth.rb:781:in `transform_anchors'
./lib/bluecloth.rb:264:in `apply_span_transforms'
./lib/bluecloth.rb:712:in `form_paragraphs'
./lib/bluecloth.rb:704:in `collect'
./lib/bluecloth.rb:704:in `form_paragraphs'
./lib/bluecloth.rb:249:in `apply_block_transforms'
./lib/bluecloth.rb:201:in `to_html'
(eval):8:in `test_861_graceful_fail_for_unclosed_brackets_and_bug
_524_'
(eval):6:in `assert_nothing_raised'
(eval):9:in `test_861_graceful_fail_for_unclosed_brackets_and_bug
_524_'
./tests/bctestcase.rb:225:in `run'
---------------

81 tests, 234 assertions, 1 failures, 0 errors

Changed 4 years ago by deveiant

  • status changed from assigned to closed
  • resolution set to fixed

Proposed fix applied and tested [28]; will be in the next release.

Note: See TracTickets for help on using tickets.