Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

cabal-dev with both library and executable causes workbench crash #92

Closed
zepalmer opened this Issue · 1 comment

2 participants

@zepalmer

I started playing with the (quite frankly exciting) new cabal-dev feature in EclipseFP 2.5. As described at https://sourceforge.net/p/eclipsefp/discussion/371922/thread/f5ff77dc/ , it seems that creating a sandboxed project with both a library and an executable (and the expected dependency in the cabal file) causes the project to create a reference to itself. This in turn causes another part of the code to recurse indefinitely, causing a stack overflow. For reference, the stack trace is below. This occurs on rebuilding, cleaning, etc.

Thanks!

ava.lang.StackOverflowError
at org.eclipse.core.internal.resources.ProjectDescription.getAllReferences(ProjectDescription.java:203)
at org.eclipse.core.internal.resources.Project.getReferencedProjects(Project.java:526)
at net.sf.eclipsefp.haskell.buildwrapper.SandboxHelper.installDeps(SandboxHelper.java:66)
at net.sf.eclipsefp.haskell.buildwrapper.SandboxHelper.installDeps(SandboxHelper.java:67)
at net.sf.eclipsefp.haskell.buildwrapper.SandboxHelper.installDeps(SandboxHelper.java:67)
at net.sf.eclipsefp.haskell.buildwrapper.SandboxHelper.installDeps(SandboxHelper.java:67)
at net.sf.eclipsefp.haskell.buildwrapper.SandboxHelper.installDeps(SandboxHelper.java:67)
...

@JPMoresmau
Owner

Sorry for the delay, was on holidays. Fixed: 6be0a67
Will be part of 2.5.2 release

@serras serras referenced this issue from a commit in serras/eclipsefp
@JPMoresmau Stack Overflow when using a project with a dependency from an executable
to a library with cabal-dev fixed
(JPMoresmau#92)
6be0a67
@JPMoresmau JPMoresmau closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.