Code Monkey home page Code Monkey logo

preview-json's Introduction

GitHub GitHub issues GitHub Repo stars GitHub code size in bytes Image Image Image


Important information:

MetaOutput

This extension is working only with installed MetaOutput extension!


Description:

Now you can look inside JSON file not opening it.


How it works:

Image


Prerequisites:

  • Visual Studio 2017, 2019, 2022
  • .NET Framework 4.7.2+
  • MetaOutput extension

Dependencies:


How can I help:

  • If you like using this extension, please give it a ★★★★★ rating on the Visual Studio Marketplace.
  • If you found bugs or you have feature requests, please write it on GitHub.

preview-json's People

Contributors

spiritv avatar viacheslav-lozinskyi avatar

Watchers

 avatar

preview-json's Issues

SetSite failed for package [PreviewJSON] - MissingMethodException InfoBarModel constructor

Something in the last couple commits you made (past few days) broke all of your preview extensions with Visual Studio 2022 (tested on Enterprise edition 17.0.4). It is all still working for me on one of my machines since I haven't updated the extensions yet. On my other machine, I had yet to install your extensions until today, and I get this error. When starting VS, an error pops up for each of your Preview extensions. Restarting does not help.

PreviewJSON

Works:

<Identity Id="PREVIEW-JSON.EC198F83-B43E-48F7-A346-3BA545D132DE" Version="1.0.8" Language="en-US" Publisher="Viacheslav Lozinskyi" />
<Identity Id="METAOUTPUT.2022.2DEDB4CB-B638-4121-874B-191C988DFC69" Version="2.0.8.190" Language="en-US" Publisher="Viacheslav Lozinskyi" />

Doesn't work:

<Identity Id="PREVIEW-JSON.EC198F83-B43E-48F7-A346-3BA545D132DE" Version="1.0.10" Language="en-US" Publisher="Viacheslav Lozinskyi" />
<Identity Id="METAOUTPUT.2022.2DEDB4CB-B638-4121-874B-191C988DFC69" Version="2.0.9.191" Language="en-US" Publisher="Viacheslav Lozinskyi" />

This is probably unrelated because it is the same on both machines, but the extensions.vsext file for the PreviewJSON extension references the 2019 METAOUTPUT instead of the 2022 METAOUTPUT.

{
  "name": "Used extensions",
  "description": "Used extensions which is necessary for correct work of this plug-in",
  "version": "1.0",
  "extensions": [
    {
      "name": "MetaOutput",
      "vsixId": "METAOUTPUT.2019.2DEDB4CB-B638-4121-874B-191C988DFC69"
    }
  ]
}

Here's the relevant output from ActivityLog.xml (cleaned up for display):

SetSite failed for package [PreviewJSON]
Source: "preview-json.vs"
Description: Method not found:
Void Microsoft.VisualStudio.Shell.InfoBarModel..ctor(System.Collections.Generic.IEnumerable`1<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarTextSpan>
                                                   , System.Collections.Generic.IEnumerable`1<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarActionItem>
                                                   , Microsoft.VisualStudio.Imaging.Interop.ImageMoniker
                                                   , Boolean)
System.MissingMethodException: 
Method not found: 
Void Microsoft.VisualStudio.Shell.InfoBarModel..ctor(System.Collections.Generic.IEnumerable`1<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarTextSpan>
                                                   , System.Collections.Generic.IEnumerable`1<Microsoft.VisualStudio.Shell.Interop.IVsInfoBarActionItem>
                                                   , Microsoft.VisualStudio.Imaging.Interop.ImageMoniker
                                                   , Boolean)
at resource.package.PreviewJSON.InfoBarService.Validate()
at resource.package.PreviewJSON.<InitializeAsync>d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Shell.AsyncPackage.<>c__DisplayClass20_0.<<Microsoft-VisualStudio-Shell-Interop-IAsyncLoadablePackageInitialize-Initialize>b__1>d.MoveNext()
--- End of stack trace from previous location where exception was thrown
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Threading.JoinableTask.<JoinAsync>d__76.MoveNext()
--- End of stack trace from previous location where exception was thrown
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.VisualStudio.Services.VsTask.RethrowException(AggregateException e)
at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean ignoreUIThreadCheck)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.