Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Build Failure, No Reason.
davyinfrance
#1 Posted : Tuesday, June 19, 2012 12:12:05 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/19/2012(UTC)
Posts: 2
Location: France

Thanks: 1 times
Hi

In the NCrunch window there is an error on one of the projects. But no info.

Activating the Log to vs window gives me this.

Any ideas?

Davy.

[14:31:20.2451-UI-1] ERROR (Internal): System.InvalidCastException: Unable to cast object of type 'nCrunch.Compiler.Workspacing.WorkspaceError' to type 'nCrunch.Compiler.CrunchCompilerError'.
at nCrunch.VSAddIn.UI.TestTree.TreeNodes.ProjectNode.GetTextOutput()
at nCrunch.VSAddIn.UI.TestTree.TestsWindow.#=qEIg_m2rcI8YBnZYmzTJWLrlsI1Rqt2dcf70NvlMlm4M=()
at nCrunch.VSAddIn.UI.TestTree.TestsWindow.#=qIcxlkW8nBRz630FycKXdXwW0NsOwTtveiCoGfmbc4KM=.#=qbVrjJ698hcQz1dRb9DdNDqQaW9QwHzDYnwiOBMk643A=()
at nCrunch.VSAddIn.UI.TestTree.TestsWindow.#=qqxVO2HuvhNKTr_qW3y58T_xbDn2Fk_oLSlJ3CWrHPU0=(Action #=q$rImvXEzeJHaE5eDIa6UWw==)

[14:31:24.12-UI-1] ERROR (Internal): System.InvalidCastException: Unable to cast object of type 'nCrunch.Compiler.Workspacing.WorkspaceError' to type 'nCrunch.Compiler.CrunchCompilerError'.
at nCrunch.VSAddIn.UI.TestTree.TreeNodes.ProjectNode.GetTextOutput()
at nCrunch.VSAddIn.UI.TestTree.TestsWindow.#=qEIg_m2rcI8YBnZYmzTJWLrlsI1Rqt2dcf70NvlMlm4M=()
at nCrunch.VSAddIn.UI.TestTree.TestsWindow.#=qIcxlkW8nBRz630FycKXdXwW0NsOwTtveiCoGfmbc4KM=.#=qbVrjJ698hcQz1dRb9DdNDqQaW9QwHzDYnwiOBMk643A=()
at nCrunch.VSAddIn.UI.TestTree.TestsWindow.#=qqxVO2HuvhNKTr_qW3y58T_xbDn2Fk_oLSlJ3CWrHPU0=(Action #=q$rImvXEzeJHaE5eDIa6UWw==)
Remco
#2 Posted : Tuesday, June 19, 2012 10:00:51 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi Davy,

Thanks for posting! It looks NCrunch is having difficulty in constructing a workspace for one of your projects and is unable to report this error due to a defect.

I've noted the defect down for a fix in a future revision. Meanwhile, let's see if we can find out why the workspace is failing to build.

Try changing the 'Workspace Base Path' setting in your global NCrunch configuration to point to a path that's close to the root for your disk - for example, C:\NCrunch

Workspaces can often fail to build if the solution you're working in contains especially long file paths, or if the workspace base path is set to an invalid value/location.

If this doesn't solve the problem, please submit a bug report after the error has occurred and I'll try to track down what has caused the issue.


Thanks!

Remco
1 user thanked Remco for this useful post.
davyinfrance on 6/22/2012(UTC)
davyinfrance
#3 Posted : Friday, June 22, 2012 9:31:39 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 6/19/2012(UTC)
Posts: 2
Location: France

Thanks: 1 times
Moving the Build Folder fixed the problem for now. It's only a matter of time before the project gets so complex that it goes past the limit though.

Thanks

Davy.


Remco
#4 Posted : Monday, June 25, 2012 12:31:59 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi Davy,

I'm glad this solved it. I think it's unlikely that you'll see this issue resurface with the new base directory, as there are a number of non-NCrunch tools and steps in your normal development process that would likely throw errors if the file paths get too long in your original solution folder. NCrunch would have surfaced the issue you described because by default it places the workspaces under the user temp directory (which is already quite deeply nested).


Cheers,

Remco
Remco
#5 Posted : Monday, August 13, 2012 4:10:33 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
For anyone interested, NCrunch 1.41b has just been released including a fix for the workspace error handling exception described above.
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.035 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download