Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007850OCamlemacs modepublic2018-09-19 11:492018-10-12 17:27
Reporterwyuenho 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0007850: imenu crash when in_ appears in variable name
DescriptionDiscovered when trying out the PR for 0007844.

Given this code:

```ocaml
module rec Foo : FOO = struct
  and in_hello =
    let b in
    in_hello (* error *)
```

This backtrace is given:

```
Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  buffer-substring-no-properties(nil nil)
  caml-match-string(5)
  tuareg-imenu-create-index()
  imenu--make-index-alist()
  imenu-list-rescan-imenu()
  imenu-list-collect-entries()
  imenu-list-update()
  purpose-x-code1-update-changed()
  #f(compiled-function () #<bytecode 0x45089141>)()
  apply(#f(compiled-function () #<bytecode 0x45089141>) nil)
  timer-event-handler([t 0 1 0 nil #f(compiled-function () #<bytecode 0x45089141>) nil idle 0])
```
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0019392)
wilfred (reporter)
2018-09-28 18:02

See pull request: https://github.com/ocaml/ocaml/pull/2078 [^]
(0019412)
wilfred (reporter)
2018-10-12 17:27

This can now be closed, as the PR has been merged.

- Issue History
Date Modified Username Field Change
2018-09-19 11:49 wyuenho New Issue
2018-09-28 18:02 wilfred Note Added: 0019392
2018-10-12 17:27 wilfred Note Added: 0019412


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker