codingadventures / LINQBridgeVs

Dumps the content of variables during debugging in Visual Studio to LINQPad
MIT License
127 stars 21 forks source link

Can't enable LinqBridge #16

Closed revbones-dev closed 10 years ago

revbones-dev commented 10 years ago

LinqPad was installed in the default location (C:\Program Files (x86)\LINQPad4) and after installing LinqBridge the menu options to Enable/Disable remain greyed out.

codingadventures commented 10 years ago

Hi,

usually LINQBridge gets enabled once you select a project (C# or VB) in the solution explorer.

Could you please tell me which version of Visual Studio you are using and on which kind of project you want to enable LINQBridge on?

revbones-dev commented 10 years ago

I’m using Visual Studio 2013 with a solution with several VB projects open. A reboot seems to have allowed me to enable it for some reason however 2 things happened that still prevent usage:

  1. I was able to Enable LinqBridge, start the debugger but did not see the magnifying glass.  I stopped the debugger and checked the LinqBridge options and both Enable and Disable were again greyed out.
  2. I checked in my Visualizers folder for VS 2013 but the dll’s referenced in one of the issues (https://github.com/nbasakuragi/LINQBridgeVs/issues/14) were not present and I did not see where to get them from.

Any assistance would be very much appreciated.

~Chris

From: Johnny Stark [mailto:notifications@github.com] Sent: Monday, July 7, 2014 5:57 AM To: nbasakuragi/LINQBridgeVs Cc: revbones-duplicate Subject: Re: [LINQBridgeVs] Can't enable LinqBridge (#16)

Hi,

usually LINQBridge gets enabled once you select a project (C# or VB) in the solution explorer.

Could you please tell me which version of Visual Studio you are using and on which kind of project you want to enable LINQBridge on?

— Reply to this email directly or view it on GitHub https://github.com/nbasakuragi/LINQBridgeVs/issues/16#issuecomment-48160151 . https://github.com/notifications/beacon/723256__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMDM0NjI0MCwiZGF0YSI6eyJpZCI6MzYzNDQyMDB9fQ==--19190e72f26f4c902e74900216ed73df91fca16c.gif

revbones-dev commented 10 years ago

To follow up:

  1. After my last email, I uninstalled and reinstalled LinqBridge.  I then clicked on a project in the solution explorer rather than having the last thing clicked be an individual code file and this allows me to consistently Enable/Disable LinqBridge.  This may have been my own misunderstanding, however looking back I didn’t see it clearly in the instructions either.
  2. Rebuilding the solution created the dll’s for 2 of the 3 LinqBridge enabled projects in the Visualizers folder. I’m not sure why the 3rd dll was not generated.
  3. I still do not get the magnifying glass.  I set the breakpoint, and hovered over the query as shown below

~Chris

From: Johnny Stark [mailto:notifications@github.com] Sent: Monday, July 7, 2014 5:57 AM To: nbasakuragi/LINQBridgeVs Cc: revbones-duplicate Subject: Re: [LINQBridgeVs] Can't enable LinqBridge (#16)

Hi,

usually LINQBridge gets enabled once you select a project (C# or VB) in the solution explorer.

Could you please tell me which version of Visual Studio you are using and on which kind of project you want to enable LINQBridge on?

— Reply to this email directly or view it on GitHub https://github.com/nbasakuragi/LINQBridgeVs/issues/16#issuecomment-48160151 . https://github.com/notifications/beacon/723256__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMDM0NjI0MCwiZGF0YSI6eyJpZCI6MzYzNDQyMDB9fQ==--19190e72f26f4c902e74900216ed73df91fca16c.gif

codingadventures commented 10 years ago

Hi Chris,

ok let's start in order:

  1. when you say both options are greyed out, is any projects in the solution explorer selected/highlighted?
  2. as per my last comment in https://github.com/nbasakuragi/LINQBridgeVs/issues/14 that's a known issue unfortunately I'm fixing in the next release. Give permission to the folder Documents/Visual Studio 2013/Visualizers to "Everyone" Visualizers are generated at compile time, so it's important once you've enabled Linqbridge on some of your project to rebuild all the projects in your solution.

Rgds

codingadventures commented 10 years ago

Chris I'm glad you made some progress with Linqbridge. I can see where the confusion comes from, I'll make sure to elaborate and extend the instruction on the web site.

I cannot see the query you posted, although it should work with the majority of linq query, if that's complex/structured one it mightn't work. Try to ToList() the query and hover the mouse on that.

revbones-dev commented 10 years ago

Hi Johnny,

           I did a ToList and was able to see the magnifying glass.  So IQueryable is not acceptable?

           Also, when clicking the magnifying glass, I was a little confused:
  1. LinqPad opened, but the query was in C# despite being from a VB.NET program
  2. The results in LinqPad seem slightly unrelated to the query I used given that it’s just unpacking an object.  I assumed that I would be able to see the underlying LINQ query in LinqPad but may be misunderstanding the purpose of the tool.

Function in code: (I added the Dim x = q.ToList in order to just be able to test seeing the magnifying glass as you mentioned)

Public Function GetAvailSizeLookupIDs(ByVal ItemID As Guid) As IQueryable(Of Lookup)

        Dim q = From l In Me.Context.Lookup _

                Where (From inv In Me.Context.Inventory Where inv.ItemID = ItemID Select inv.SizeLookupID).Contains(l.LookupID) _

                 Select l

        Dim x = q.ToList

        Return q

    End Function

What appeared in LinqPad:

void Main()

{

    Truck truck = new Truck("LINQBridgeVsTruck");

         truck.WaitDelivery("ListLookup").Wait();

    var @object = truck.UnStuffCargo<List<EBC.Data.Lookup>>();

    @object.Dump("List<EBC.Data.Lookup>", 2);

}

From: Johnny Stark [mailto:notifications@github.com] Sent: Monday, July 7, 2014 12:49 PM To: nbasakuragi/LINQBridgeVs Cc: revbones-duplicate Subject: Re: [LINQBridgeVs] Can't enable LinqBridge (#16)

Chris I'm glad you made some progress with Linqbridge. I can see where the confusion comes from, I'll make sure to elaborate and extend the instruction on the web site.

I cannot see the query you posted, although it should work with the majority of linq query, if that's complex/structured one it mightn't work. Try to ToList() the query and hover the mouse on that.

— Reply to this email directly or view it on GitHub https://github.com/nbasakuragi/LINQBridgeVs/issues/16#issuecomment-48204784 . https://github.com/notifications/beacon/723256__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMDM3MDkxOSwiZGF0YSI6eyJpZCI6MzYzNDQyMDB9fQ==--33c2b35c3685ba753777babcc96e9542a2782e92.gif

codingadventures commented 10 years ago

Chris,

IQueryable is to be added still to the types which can be "exported".

What this tool does is to let you export the content of an object variable. In case of a Linq query it lets you export the result of the query rather than the query syntax itself, but it something I'll work on soon as it could be useful.

The script in linqpad is by default generated in C#, its purpose is to read and dump the content of an object instance you want to investigate

revbones-dev commented 10 years ago

IQueryable and being able to export the query itself would be great and I’ll be looking forward to it. As it stands now though, it’s a good product, I think I just had slightly different expectations.

Thanks!

~Chris

From: Johnny Stark [mailto:notifications@github.com] Sent: Monday, July 7, 2014 4:41 PM To: nbasakuragi/LINQBridgeVs Cc: revbones-duplicate Subject: Re: [LINQBridgeVs] Can't enable LinqBridge (#16)

Chris,

IQueryable is to be added still to the types which can be "exported".

What this tool does is to let you export the content of an object variable. In case of a Linq query it lets you export the result of the query rather than the query syntax itself, but it something I'll work on soon as it could be useful.

The script in linqpad is by default generated in C#, its purpose is to read and dump the content of an object instance you want to investigate

— Reply to this email directly or view it on GitHub https://github.com/nbasakuragi/LINQBridgeVs/issues/16#issuecomment-48237695 . https://github.com/notifications/beacon/723256__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyMDM4NDg3MywiZGF0YSI6eyJpZCI6MzYzNDQyMDB9fQ==--d1621d52f1ef2999727d543a4bfdacd48dcaa4b4.gif