Opened 4 years ago

Closed 3 years ago

#4256 closed bug (fixed)

ghc -e :etags duplicates first character of some symbols, producing broken TAGS file.

Reported by: cliffordbeshers Owned by: igloo
Priority: normal Milestone: 7.4.1
Component: Compiler Version: 6.13
Keywords: tags Cc:
Operating System: Linux Architecture: x86_64 (amd64)
Type of failure: Other Difficulty:
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When I run 'ghc -e :etags' on Haskell files, many identifiers have their first characters duplicated in the TAGS file, which causes the tag search to fail. Removing these extra characters by hand produces a valid TAGS file. -e :ctags does not seem to have the same problem.

I am attaching a Main.hs and a TAGS file which show the problem.

It is within the realm of possibility that this bug was introduced by our Debian/Ubuntu/SeeReason? packaging

Attachments (2)

Main.hs (201 bytes) - added by cliffordbeshers 4 years ago.
TAGS (201 bytes) - added by cliffordbeshers 4 years ago.

Download all attachments as: .zip

Change History (8)

Changed 4 years ago by cliffordbeshers

Changed 4 years ago by cliffordbeshers

comment:1 Changed 4 years ago by igloo

  • Milestone set to 6.14.1

Thanks for the report.

comment:2 Changed 3 years ago by igloo

  • Milestone changed from 7.0.1 to 7.0.2

comment:3 Changed 3 years ago by igloo

  • Milestone changed from 7.0.2 to 7.2.1

comment:4 Changed 3 years ago by igloo

  • Owner set to igloo

comment:5 Changed 3 years ago by igloo@…

commit 0a4537fb670ed15e9eb65b4b6e9c67398634a3f5

Author: Ian Lynagh <igloo@earth.li>
Date:   Sat Sep 17 13:10:58 2011 +0100

    Fix etags output; trac #4256
    
    We had an off-by-one bug in column numbers, causing first characters
    of identifiers to be duplicated.

 ghc/GhciTags.hs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

comment:6 Changed 3 years ago by igloo

  • Milestone changed from 7.2.1 to 7.4.1
  • Resolution set to fixed
  • Status changed from new to closed

Fixed

Note: See TracTickets for help on using tickets.