Install the local copy of the extension is failed

I try to install the my extension. I have following error. What is wrong

12:53:44.109 |I| ExtensionManagerViewModelProvider| [NuGet::PluginsRepository] Attempting to resolve dependency 'Wave (≥ 1.0)'.
12:53:44.144 |I| ExtensionManagerViewModelProvider| [NuGet::PluginsRepository] Attempting to resolve dependency 'JetBrains.ReSharper.SDK (≥ 9.0.20141204.190166)'.
12:53:44.679 |E| ExtensionManagerViewModelProvider| Unable to resolve dependency 'JetBrains.ReSharper.SDK (≥ 9.0.20141204.190166)'.

--- EXCEPTION #1/2 [InvalidOperationException]
Message = “Unable to resolve dependency 'JetBrains.ReSharper.SDK (≥ 9.0.20141204.190166)'.”
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
HResult = COR_E_INVALIDOPERATION=80131509
Source = NuGet.Core
StackTraceString = “
  at NuGet.InstallWalker.OnDependencyResolveError(PackageDependency dependency)
     at NuGet.PackageWalker.Walk(IPackage package)
     at NuGet.InstallWalker.ResolveOperations(IPackage package)
     at NuGet.PackageManager.Execute(IPackage package, IPackageOperationResolver resolver)
     at NuGet.PackageManager.InstallPackage(IPackage package, FrameworkName targetFramework, Boolean ignoreDependencies, Boolean allowPrereleaseVersions, Boolean ignoreWalkInfo)
     at NuGet.PackageManager.InstallPackage(IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
     at JetBrains.Application.SinceClr4.Extensions.ExtensionManagerViewModelProvider.<>c__DisplayClass2b.<>c__DisplayClass35.<get_Model2>b__26()
     at JetBrains.Util.ILoggerEx.Catch(ILogger thіs, Action F, ExceptionOrigin origin)


--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “Unable to resolve dependency 'JetBrains.ReSharper.SDK (≥ 9.0.20141204.190166)'.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  at JetBrains.Application.SinceClr4.Extensions.ExtensionManagerViewModelProvider.<>c__DisplayClass2b.<>c__DisplayClass35.<get_Model2>b__25()
     at JetBrains.UI.ExtensionManager.ViewModels.ExtensionActionViewModel.Do()
     at JetBrains.UI.ExtensionManager.ViewModels.ExtensionManagerViewModel.<BeginInstallation>b__10(ProgressIndicator indicator, Property`1 description)
     at JetBrains.UI.ExtensionManager.ViewModels.ProgressPage.<>c__DisplayClass6.<Run>b__3()
     at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
     at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
     at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
     at System.Threading.ThreadHelper.ThreadStart()




4 comments
Comment actions Permalink

Your extension package shouldn't have a dependency on JetBrains.ReSharper.SDK - that's a compile time dependency, not a runtime dependency. While ReSharper uses nuget to package and distribute extensions, they aren't "traditional" nuget packages - they're not supposed to be referenced by a project, but by a running application. So there should be no "lib" file and there should be a dependency on Wave 1.0 for ReSharper 9.0 or Wave 2.0 for ReSharper 9.1 (you can have other dependencies, but they have to be to other extensions that are also published to the gallery).

0
Comment actions Permalink

Thanks for your answer. I registered my plugin by extension manager, but it does not loaded and I can't debug it.
I my plugin project there is simple class.I have '.' in the my package name, added the zone marker. To the project file I added HostFullIdentifier.
How can I check what is wrong?

namespace ResharperWebDevTools
{
     [ZoneMarker]
    public class ZoneMarker : IRequire<ICodeEditingZone>, IRequire<ILanguageJavaScriptZone> { }

     [StaticSeverityHighlighting(Severity.ERROR, "JavaScript")]
     internal class MyClassHighlighting : IHighlighting
     {
          private IExpression _invocationExpression;

          public MyClassHighlighting(IExpression invocationExpression)
          {
               _invocationExpression = invocationExpression;
          }

          public bool IsValid()
          {
               return _invocationExpression != null && _invocationExpression.IsValid();
          }

          public DocumentRange CalculateRange()
          {
               return _invocationExpression.GetDocumentRange();
          }

          public string ToolTip
          {
               get { return "Hello world !!!!!!!!!!!!!!!"; }
          }

          public string ErrorStripeToolTip
          {
               get { return ToolTip; }
          }

          public int NavigationOffsetPatch
          {
               get { return 0; }
          }
     }


     [ElementProblemAnalyzer(new[] {typeof (IExpression)}, HighlightingTypes = new[] {typeof (MyClassHighlighting)})]
     public class IntPowerProblemAnalyzer : ElementProblemAnalyzer<IExpression>
     {
          protected override void Run(IExpression element, ElementProblemAnalyzerData data, IHighlightingConsumer consumer)
          {
               consumer.AddHighlighting(new MyClassHighlighting(element), element.GetDocumentRange(), element.GetContainingFile());
//               if (element.ToString().StartsWith("onload"))
//                    consumer.AddHighlighting(new MyClassHighlighting(element), element.GetDocumentRange(), element.GetContainingFile());
          }
     }
}



Thanks,

Igor

0
Comment actions Permalink

If you use ElementProblemAnalyzer, your zone marker should also require DaemonZone. You should be able to see this in the log files, if you configure verbose logging: https://www.jetbrains.com/resharper/devguide/Platform/Logging.html - it should report any components that are ignored due to zone conflicts. However, it might be easier to just remove the requires from the zone marker for now (getting zone markers correct is tricky to do manually. We have diagnostics that work when building the product, but which don't work with extensions, as they operate on source files rather than compiled references).

0
Comment actions Permalink

Thanks, I found problem in the nuget package build script

0

Please sign in to leave a comment.