Build/Test Issues

Build Failure, No Reason.

Started by davyinfrance on 9,994 views

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==)
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
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.


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

Edited

For anyone interested, NCrunch 1.41b has just been released including a fix for the workspace error handling exception described above.

Post a reply

Log in to reply.