Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007864OCamltoplevelpublic2018-10-18 13:472018-11-05 13:27
Reporterggole 
Assigned Tonojebar 
PrioritynormalSeveritytrivialReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version4.06.1 
Target VersionFixed in Version4.08.0+dev 
Summary0007864: Spelling suggestions will repeat the same name in the presence of opened modules
DescriptionWhen the same name is defined at top level and in opened modules, spelling suggestions will list that name, unqualified, multiple times. The result is slightly ridiculous:

  Hint: Did you mean foo, foo or foo?
Steps To ReproduceDefine the same name in several modules and open them. Then misspell that identifier such that spelling suggestions are made.

        OCaml version 4.06.1

# module A = struct let foo = () end;;
module A : sig val foo : unit end
# module B = struct let foo = () end;;
module B : sig val foo : unit end
# open A;;
# open B;;
# let foo = ();;
val foo : unit = ()
# fop;;
Characters 0-3:
  fop;;
  ^^^
Error: Unbound value fop
Hint: Did you mean foo, foo or foo?
#
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0019434)
Armael (manager)
2018-11-05 13:24

Fixed by GPR#2109.

- Issue History
Date Modified Username Field Change
2018-10-18 13:47 ggole New Issue
2018-11-05 13:24 Armael Note Added: 0019434
2018-11-05 13:25 nojebar Status new => resolved
2018-11-05 13:25 nojebar Resolution open => fixed
2018-11-05 13:25 nojebar Assigned To => nojebar
2018-11-05 13:25 Armael Assigned To nojebar =>
2018-11-05 13:25 Armael Fixed in Version => 4.08.0+dev
2018-11-05 13:27 nojebar Fixed in Version => 4.08.0+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker