Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Most Recent Commit: Failed to compile ModuleInspector #31

Closed
princemaple opened this issue Mar 16, 2013 · 6 comments
Closed

Most Recent Commit: Failed to compile ModuleInspector #31

princemaple opened this issue Mar 16, 2013 · 6 comments

Comments

@princemaple
Copy link
Contributor

This message shows up when startup sublimetext:

SublimeHaskell: Failed to compile ModuleInspector

C:\Users\Prince\AppData\Roaming\Sublime Text 2\Packages\SublimeHaskell\ModuleInspector.hs:200:19:

    Not in scope: data constructor `Doc.DocHyperlink'

C:\Users\Prince\AppData\Roaming\Sublime Text 2\Packages\SublimeHaskell\ModuleInspector.hs:200:55:

    Not in scope: `Doc.hyperlinkUrl'

C:\Users\Prince\AppData\Roaming\Sublime Text 2\Packages\SublimeHaskell\ModuleInspector.hs:200:79:

    Not in scope: `Doc.hyperlinkLabel'

C:\Users\Prince\AppData\Roaming\Sublime Text 2\Packages\SublimeHaskell\ModuleInspector.hs:203:19:

    Not in scope: data constructor `Doc.DocProperty'

The plugin is working properly though. What should I do?
I have installed haddock, otherwise the whole thing wouldn't compile.

Also, modules are loaded correctly, after the first time compilation which took about 100s. Now they are loaded instantly, thanks for the excellent work.

Sublime Haskell: loading standard modules info for cabal within 0.0746378262111 seconds
@ssadler
Copy link

ssadler commented Mar 16, 2013

Also experiencing this.

OSX, latest haskell platform (ghc 7.4.2), haddock 2.11.1.

If I try to install a newer haddock:

cabal install --reinstall haddock-2.12.0
Resolving dependencies...
cabal: Could not resolve dependencies:
next goal: haddock (user goal)
rejecting: haddock-2.13.1, 2.13.0 (global constraint requires ==2.12.0)
trying: haddock-2.12.0
next goal: ghc (dependency of haddock-2.12.0)
rejecting: ghc-7.4.2/installed-31e... (conflict: haddock => ghc==7.6.*)

@nh2
Copy link
Member

nh2 commented Mar 16, 2013

Don't try to upgrade your dependencies just yet - let's first find out what actually causes this.

@mvoidex Did the recent changes bump some dependency beyond the current Haskell platform? I wouldn't be surprised if this could be solved just by lowering bounds.

@nh2 nh2 closed this as completed in 9b1d664 Mar 16, 2013
@nh2
Copy link
Member

nh2 commented Mar 16, 2013

Can you try now? I commented out docs extraction from the two constructors that haddoc-2.11 does not support - they were introduced in 2.13. (I had to fix this up in 8ef4b27).

@mvoidex
Copy link
Member

mvoidex commented Mar 16, 2013

@nh2, ModuleInspector now uses haddock. Seems, that 'DocHyperlink' was introduced in last version of Haddock.

@nh2
Copy link
Member

nh2 commented Mar 16, 2013

@mvoidex Refresh this page ;)

@mvoidex
Copy link
Member

mvoidex commented Mar 16, 2013

@nh2 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants