www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12052] New: VS2013 (NuGet) complains a lot when VisualD projects are present

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12052

           Summary: VS2013 (NuGet) complains a lot when VisualD projects
                    are present
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: VisualD
        AssignedTo: nobody puremagic.com
        ReportedBy: turkeyman gmail.com


--- Comment #0 from Manu <turkeyman gmail.com> 2014-01-31 18:51:04 PST ---
I'm getting a lot of complaints when I use VisualD under VS2013.
This page suggests that maybe some project properties that NuGet tries to query
aren't implemented? http://nuget.codeplex.com/discussions/445802

Here is the spam that appears every build:


Error occurred while restoring NuGet packages:
System.ComponentModel.Composition.CompositionException: The composition
produced a single composition error. The root cause is provided below. Review
the CompositionException.Errors property for more detailed information.

1) The method or operation is not implemented.

Resulting in: An exception occurred while trying to create an instance of type
'NuGet.VisualStudio.SolutionManager'.

Resulting in: Cannot activate part 'NuGet.VisualStudio.SolutionManager'.
Element: NuGet.VisualStudio.SolutionManager --> 
NuGet.VisualStudio.SolutionManager

Resulting in: Cannot get export 'NuGet.VisualStudio.SolutionManager
(ContractName="NuGet.VisualStudio.ISolutionManager")' from part
'NuGet.VisualStudio.SolutionManager'.
Element: NuGet.VisualStudio.SolutionManager
(ContractName="NuGet.VisualStudio.ISolutionManager") --> 
NuGet.VisualStudio.SolutionManager

Resulting in: Cannot set import 'NuGet.VisualStudio.VsSettings..ctor
(Parameter="solutionManager",
ContractName="NuGet.VisualStudio.ISolutionManager")' on part
'NuGet.VisualStudio.VsSettings'.
Element: NuGet.VisualStudio.VsSettings..ctor (Parameter="solutionManager",
ContractName="NuGet.VisualStudio.ISolutionManager") --> 
NuGet.VisualStudio.VsSettings

Resulting in: Cannot get export 'NuGet.VisualStudio.VsSettings
(ContractName="NuGet.ISettings")' from part 'NuGet.VisualStudio.VsSettings'.
Element: NuGet.VisualStudio.VsSettings (ContractName="NuGet.ISettings") --> 
NuGet.VisualStudio.VsSettings

   at
System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine
engine, ComposablePart part, ExportDefinition definition)
   at
System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(CatalogPart
part, ExportDefinition export, Boolean isSharedPart)
   at
System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore()
   at System.ComponentModel.Composition.Primitives.Export.get_Value()
   at
System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[T](Export
export)
   at
System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValueCore[T](String
contractName, ImportCardinality cardinality)
   at
System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValue[T](String
contractName)
   at
System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValue[T]()
   at Microsoft.VisualStudio.ComponentModelHost.ComponentModel.GetService[T]()
   at NuGet.VisualStudio.ServiceLocator.GetComponentModelService[TService]()
   at NuGet.VisualStudio.ServiceLocator.GetInstance[TService]()
   at NuGet.VsEvents.PackageRestorer.IsAutomatic()
   at NuGet.VsEvents.PackageRestorer.BuildEvents_OnBuildBegin(vsBuildScope
Scope, vsBuildAction Action).

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 31 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12052


Rainer Schuetze <r.sagitario gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |r.sagitario gmx.de


--- Comment #1 from Rainer Schuetze <r.sagitario gmx.de> 2014-02-09 13:52:34
PST ---
I have muted the NuGet errors in the latest beta:
https://github.com/D-Programming-Language/visuald/releases/tag/v0.3.38beta2

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 09 2014
prev sibling next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12052



--- Comment #2 from Manu <turkeyman gmail.com> 2014-02-09 19:17:21 PST ---
(In reply to comment #1)
 I have muted the NuGet errors in the latest beta:
 https://github.com/D-Programming-Language/visuald/releases/tag/v0.3.38beta2

That'll do it... but what about that cause of the problem? That article I linked that says it is trying to call some missing API's from the project implementation, does that sound likely? -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 09 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12052



--- Comment #3 from Rainer Schuetze <r.sagitario gmx.de> 2014-02-09 23:33:34
PST ---
The cause is that NuGet uses the "automation model" of a project to request
project items and properties. This isn't implemented completely in Visual D,
mostly because it can involve marshalling which isn't fun to do outside C#.

So far, Visual D reported 0 project elements, while it didn't implement an
enumerator. This is added now, always returning an empty enumerator. In
addition, I support two project properties that are requested by NuGet.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 09 2014