Ticket #6 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

filetype detection needs to be on; replace cross-script references with autoload scripts

Reported by: macker Owned by: claus
Priority: critical Milestone:
Component: ftplugin/haskell.vim Version:
Keywords: vista windows gvim install Cc:


On vista, did a clean install of gvim72, then ghc, then followed the vimball installation instructions.

Whenever I hover the mouse over a type in a .hs file, I get a stack-trace dump thing from vim, along the lines of:

E117: Unknown function: Haskell_GetNameSymbol and then a cascade of errors.

Not sure how to force vim to load haskell.vim and thus be able to process this function.

Change History

Changed 8 years ago by claus

  • summary changed from Doesn't cleanly install on windows gvim72, ghc 10.1/10.2 to filetype detection needs to be on; replace cross-script references with autoload scripts

That sounds as if you have :filetype off (do you see syntax highlighting? does :echo &filetype return haskell? or does :filetype show detection:OFF?), but :compiler ghc set.

- you shouldn't do that - the filetype plugins can't work if they aren't even loaded;-) See :help filetype. In brief, add :filetype on to your VIMINIT file, so that the haskell filetype plugins are loaded for .hs files

Still, this highlights some room for improvement.

- filetype is mentioned in :help haskellmode-overview, but only in passing - I'll make it more prominent (TODO 1)

- the scripts should check this, as they still rely on being used together (TODO 2)

- common functions should be moved to autoload files, not assumed to be provided by other scripts (TODO 3)

Changed 8 years ago by claus

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

- filetype is now mentioned prominently on home page and in helpfile (TODO 1 done)

- have started to move common functions to new autoload script (TODO 3 done)

- this seems to work even without filetype on, so you'd get less functionality, but not the error about a function from a non-loaded script (TODO 2 not needed)

Note: See TracTickets for help on using tickets.