This project is read-only.

Why can't I emulate my COSMOS project

Jan 4, 2012 at 5:59 PM
Edited Jan 4, 2012 at 6:16 PM

When I run a new cosmos project it comes up with the error

A project with an Output Type of Class Library cannot be started directly.

 

Why can't I just run the project like I did in MS4? (this is not a MS4 project its made using the latest source and downloaded from COSMOS)

Built the source 86989 using the instructions provided I can make new cosmos boot project but it's MS4 (my previous installation)

The library won't run

 

WHAT CAN I DO???

Jan 4, 2012 at 8:51 PM

your missing the 2nd step. Ask on the IRC channel on how to do that 2nd step, or read the discussions here, I'm sure there's a topic that describes it somewhere on here. Also, you can't just run the project like in MS4, because the newest version uses a custom project type, and it's that custom project type which is the project that you run.

Jan 4, 2012 at 8:52 PM
Ah I have the .cosmos file how do I run it?

Sent from my iPod via Hands, Eyes and Brain

On 4 Jan 2012, at 20:51, "blah38621" <notifications@codeplex.com> wrote:

From: blah38621

your missing the 2nd step. Ask on the IRC channel on how to do that 2nd step, or read the discussions here, I'm sure there's a topic that describes it somewhere on here. Also, you can't just run the project like in MS4, because the newest version uses a custom project type, and it's that custom project type which is the project that you run.

Jan 4, 2012 at 10:17 PM
On 1/4/2012 1:59 PM, melikesPCcheese wrote:
> From: melikesPCcheese
>
> When I run my cosmos project it comes up with the error
>
> A project with an Output Type of Class Library cannot be started directly.
>
> Why can't I just run the project like I did in MS4?

Look at how Guess is in the demos. You need a second project to run it.
Its because of Express.
Jan 4, 2012 at 10:27 PM
Still not quite following you... What method would I call and what arguments would I send. BTW why was it even changed in the first place the old method was just fine :P

Forgive me for my ignorance, stupidness, repetitive questions, etc.

Sent from my iPod via Hands, Eyes and Brain

On 4 Jan 2012, at 22:17, "kudzu" <notifications@codeplex.com> wrote:

From: kudzu

On 1/4/2012 1:59 PM, melikesPCcheese wrote:
> From: melikesPCcheese
>
> When I run my cosmos project it comes up with the error
>
> A project with an Output Type of Class Library cannot be started directly.
>
> Why can't I just run the project like I did in MS4?

Look at how Guess is in the demos. You need a second project to run it.
Its because of Express.
Jan 4, 2012 at 10:31 PM
> Still not quite following you... What method would I call and what
> arguments would I send. BTW why was it even changed in the first place
> the old method was just fine :P

It was changed to use MSBuild and full VS integration, and separated so
that we could support VS Express.
Jan 4, 2012 at 10:33 PM
Which method what args or is it command line tool?

Sent from my iPod via Hands, Eyes and Brain

On 4 Jan 2012, at 22:31, "kudzu" <notifications@codeplex.com> wrote:

From: kudzu

> Still not quite following you... What method would I call and what
> arguments would I send. BTW why was it even changed in the first place
> the old method was just fine :P

It was changed to use MSBuild and full VS integration, and separated so
that we could support VS Express.
Jan 4, 2012 at 11:38 PM
As per my previous suggestion, look how the Guess demo is or a new empty
shell proejct.

On 1/4/2012 6:33 PM, melikesPCcheese wrote:
> From: melikesPCcheese
>
> Which method what args or is it command line tool?
>
> Sent from my iPod via Hands, Eyes and Brain
>
> On 4 Jan 2012, at 22:31, "kudzu" <[email removed]
> <mailto:[email removed]>> wrote:
>
>> From: kudzu
>>
>> > Still not quite following you... What method would I call and what
>> > arguments would I send. BTW why was it even changed in the first place
>> > the old method was just fine :P
>>
>> It was changed to use MSBuild and full VS integration, and separated so
>> that we could support VS Express.
>
> Read the full discussion online
> <http://cosmos.codeplex.com/discussions/284975#post720517>.
>
> To add a post to this discussion, reply to this email
> ([email removed]
> <mailto:[email removed]?subject=[Cosmos:284975]>)
>
> To start a new discussion for this project, email
> [email removed] <mailto:[email removed]>
>
> You are receiving this email because you subscribed to this discussion
> on CodePlex. You can unsubscribe or change your settings
> <https://cosmos.codeplex.com/subscriptions/thread/project/edit> on
> codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com
>
Jan 5, 2012 at 7:08 AM
The guess tool is just a library

Sent from my iPod via Hands, Eyes and Brain

On 4 Jan 2012, at 23:38, "kudzu" <notifications@codeplex.com> wrote:

From: kudzu

As per my previous suggestion, look how the Guess demo is or a new empty
shell proejct.

On 1/4/2012 6:33 PM, melikesPCcheese wrote:
> From: melikesPCcheese
>
> Which method what args or is it command line tool?
>
> Sent from my iPod via Hands, Eyes and Brain
>
> On 4 Jan 2012, at 22:31, "kudzu" <[email removed]
> <mailto:[email removed]>> wrote:
>
>> From: kudzu
>>
>> > Still not quite following you... What method would I call and what
>> > arguments would I send. BTW why was it even changed in the first place
>> > the old method was just fine :P
>>
>> It was changed to use MSBuild and full VS integration, and separated so
>> that we could support VS Express.
>
> Read the full discussion online
> <http://cosmos.codeplex.com/discussions/284975#post720517>.
>
> To add a post to this discussion, reply to this email
> ([email removed]
> <mailto:[email removed]?subject=[Cosmos:284975]>)
>
> To start a new discussion for this project, email
> [email removed] <mailto:[email removed]>
>
> You are receiving this email because you subscribed to this discussion
> on CodePlex. You can unsubscribe or change your settings
> <https://cosmos.codeplex.com/subscriptions/thread/project/edit> on
> codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com
>
Jan 5, 2012 at 7:54 AM
And there is also a .cosmos project acompanying the library. This is the second step you're missing....

On Thu, Jan 5, 2012 at 8:08 AM, melikesPCcheese <notifications@codeplex.com> wrote:

From: melikesPCcheese

The guess tool is just a library


Sent from my iPod via Hands, Eyes and Brain

On 4 Jan 2012, at 23:38, "kudzu" <notifications@codeplex.com> wrote:

From: kudzu

As per my previous suggestion, look how the Guess demo is or a new empty
shell proejct.

On 1/4/2012 6:33 PM, melikesPCcheese wrote:
> From: melikesPCcheese
>
> Which method what args or is it command line tool?
>
> Sent from my iPod via Hands, Eyes and Brain
>
> On 4 Jan 2012, at 22:31, "kudzu" <[email removed]
> <mailto:[email removed]>> wrote:
>
>> From: kudzu
>>
>> > Still not quite following you... What method would I call and what
>> > arguments would I send. BTW why was it even changed in the first place
>> > the old method was just fine :P
>>
>> It was changed to use MSBuild and full VS integration, and separated so
>> that we could support VS Express.
>
> Read the full discussion online
> <http://cosmos.codeplex.com/discussions/284975#post720517>.
>
> To add a post to this discussion, reply to this email
> ([email removed]
> <mailto:[email removed]?subject=[Cosmos:284975]>)
>
> To start a new discussion for this project, email
> [email removed] <mailto:[email removed]>
>
> You are receiving this email because you subscribed to this discussion
> on CodePlex. You can unsubscribe or change your settings
> <https://cosmos.codeplex.com/subscriptions/thread/project/edit> on
> codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com
>

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jan 5, 2012 at 4:03 PM
That's not the point, what do I do with the .cosmos file

Sent from my iPod via Hands, Eyes and Brain

On 5 Jan 2012, at 07:54, "mterwoord" <notifications@codeplex.com> wrote:

From: mterwoord

And there is also a .cosmos project acompanying the library. This is the second step you're missing....

On Thu, Jan 5, 2012 at 8:08 AM, melikesPCcheese <notifications@codeplex.com> wrote:

From: melikesPCcheese

The guess tool is just a library


Sent from my iPod via Hands, Eyes and Brain

On 4 Jan 2012, at 23:38, "kudzu" <notifications@codeplex.com> wrote:

From: kudzu

As per my previous suggestion, look how the Guess demo is or a new empty
shell proejct.

On 1/4/2012 6:33 PM, melikesPCcheese wrote:
> From: melikesPCcheese
>
> Which method what args or is it command line tool?
>
> Sent from my iPod via Hands, Eyes and Brain
>
> On 4 Jan 2012, at 22:31, "kudzu" <[email removed]
> <mailto:[email removed]>> wrote:
>
>> From: kudzu
>>
>> > Still not quite following you... What method would I call and what
>> > arguments would I send. BTW why was it even changed in the first place
>> > the old method was just fine :P
>>
>> It was changed to use MSBuild and full VS integration, and separated so
>> that we could support VS Express.
>
> Read the full discussion online
> <http://cosmos.codeplex.com/discussions/284975#post720517>.
>
> To add a post to this discussion, reply to this email
> ([email removed]
> <mailto:[email removed]?subject=[Cosmos:284975]>)
>
> To start a new discussion for this project, email
> [email removed] <mailto:[email removed]>
>
> You are receiving this email because you subscribed to this discussion
> on CodePlex. You can unsubscribe or change your settings
> <https://cosmos.codeplex.com/subscriptions/thread/project/edit> on
> codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com
>

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jan 5, 2012 at 5:07 PM
This is the point.

Second point is that you create a second project, the .cosmos file (which you already have), and this .cosmos file is the one you need to run now.

On Thu, Jan 5, 2012 at 5:03 PM, melikesPCcheese <notifications@codeplex.com> wrote:

From: melikesPCcheese

That's not the point, what do I do with the .cosmos file


Sent from my iPod via Hands, Eyes and Brain

On 5 Jan 2012, at 07:54, "mterwoord" <notifications@codeplex.com> wrote:

From: mterwoord

And there is also a .cosmos project acompanying the library. This is the second step you're missing....

On Thu, Jan 5, 2012 at 8:08 AM, melikesPCcheese <notifications@codeplex.com> wrote:

From: melikesPCcheese

The guess tool is just a library


Sent from my iPod via Hands, Eyes and Brain

On 4 Jan 2012, at 23:38, "kudzu" <notifications@codeplex.com> wrote:

From: kudzu

As per my previous suggestion, look how the Guess demo is or a new empty
shell proejct.

On 1/4/2012 6:33 PM, melikesPCcheese wrote:
> From: melikesPCcheese
>
> Which method what args or is it command line tool?
>
> Sent from my iPod via Hands, Eyes and Brain
>
> On 4 Jan 2012, at 22:31, "kudzu" <[email removed]
> <mailto:[email removed]>> wrote:
>
>> From: kudzu
>>
>> > Still not quite following you... What method would I call and what
>> > arguments would I send. BTW why was it even changed in the first place
>> > the old method was just fine :P
>>
>> It was changed to use MSBuild and full VS integration, and separated so
>> that we could support VS Express.
>
> Read the full discussion online
> <http://cosmos.codeplex.com/discussions/284975#post720517>.
>
> To add a post to this discussion, reply to this email
> ([email removed]
> <mailto:[email removed]?subject=[Cosmos:284975]>)
>
> To start a new discussion for this project, email
> [email removed] <mailto:[email removed]>
>
> You are receiving this email because you subscribed to this discussion
> on CodePlex. You can unsubscribe or change your settings
> <https://cosmos.codeplex.com/subscriptions/thread/project/edit> on
> codePlex.com.
>
> Please note: Images and attachments will be removed from emails. Any
> posts to this discussion will also be available online at codeplex.com
>

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jan 5, 2012 at 6:43 PM

Sorted I now have VS2010 Ultimate! But it would be nice to have VS Express compatibility as well :D

Jan 5, 2012 at 6:49 PM
> Sorted I now have VS2010 Ultimate! But it would be nice to have VS
> Express compatibility as well :D

As repeatedly stated in this thread Express is supported and why we need
two projects now...
Jan 6, 2012 at 7:56 AM
Since the move to the 2-project structure, Express is supported (it's the main reason we switched to the 2-project structure)

On Thu, Jan 5, 2012 at 7:49 PM, kudzu <notifications@codeplex.com> wrote:

From: kudzu

> Sorted I now have VS2010 Ultimate! But it would be nice to have VS
> Express compatibility as well :D

As repeatedly stated in this thread Express is supported and why we need
two projects now...

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jan 6, 2012 at 1:42 PM

Also, a big reason for the custom project is to allow us to use a custom debugger, which, btw, is actually very useful :P (and I'm currently working on getting child expansion working, but that looks like it will require some major structural changes to the debugger (unless I'm wrong on that, and my initial attempt was just missing the one thing that enabled it :P), so I may just re-write it from scratch, using the current one as a reference point, as what we based the debugger on only supported a limited set of things.) (also, Express versions don't support custom debuggers if I remember correctly)

Jan 6, 2012 at 1:51 PM
Wrong on several points:
- We could make a custom debugger for C#
- for Express users, we can make a custom debuger, using the VS Shell stuff (which is what we do)
- main problem with allowing child expansion (if i understand what you mean with that), is that we currently dont have enough type information emitted in the debug info table. This however should be reasonably easy to do. Next step is to extend the AD7Property (i think) classes to use that info. debugstub is ready for this..

On Fri, Jan 6, 2012 at 2:42 PM, blah38621 <notifications@codeplex.com> wrote:

From: blah38621

Also, a big reason for the custom project is to allow us to use a custom debugger, which, btw, is actually very useful :P (and I'm currently working on getting child expansion working, but that looks like it will require some major structural changes to the debugger (unless I'm wrong on that, and my initial attempt was just missing the one thing that enabled it :P), so I may just re-write it from scratch, using the current one as a reference point, as what we based the debugger on only supported a limited set of things.) (also, Express versions don't support custom debuggers if I remember correctly)

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jan 6, 2012 at 2:08 PM
Edited Jan 6, 2012 at 2:10 PM

I know we could make a custom debugger for C#, but would VS let us use that debugger for a C# project rather than it's own debugger?


When I say Express doesn't support something, I'm not including the VS Shell in that :P


It was the extension of AD7Property that I was having issues with :P I was trying to get it to display array elements as children :P The same mechanism would be used to display fields of an object though, so :P


Also, as a lazy man's method of getting debug info for the fields of a type, we could always just stick the assemblies themself into the debug database :P (that would probably be a bad idea though so :P)

Jan 6, 2012 at 2:09 PM

Yeah. :P

On Jan 6, 2012 7:08 AM, "blah38621" <notifications@codeplex.com> wrote:

From: blah38621

I know we could make a custom debugger for C#, but would VS let us use that debugger for C# rather than it's own debugger?


When I say Express doesn't support something, I'm not including the VS Shell in that :P


It was the extension of AD7Property that I was having issues with :P I was trying to get it to display array elements as children :P The same mechanism would be used to display fields of an object though, so :P


Also, as a lazy man's method of getting debug info for the fields of a type, we could always just stick the assemblies themself into the debug database :P (that would probably be a bad idea though so :P)

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Jan 6, 2012 at 2:18 PM
Also wrong..
- VS lets us use a custom debug engine for an existing one. It's what the VS SDK sample engine does (custom debug engine for c++)
AD7Property is a "record" in the locals/watches window. one AD7Porperty has a Name and a value (both which are strings). An AD7Property can have zero or more child items.
Showing an array is easy: just create a stringbuilder to show it...


On Fri, Jan 6, 2012 at 3:09 PM, joshbeitler <notifications@codeplex.com> wrote:

From: joshbeitler

Yeah. :P

On Jan 6, 2012 7:08 AM, "blah38621" <notifications@codeplex.com> wrote:

From: blah38621

I know we could make a custom debugger for C#, but would VS let us use that debugger for C# rather than it's own debugger?


When I say Express doesn't support something, I'm not including the VS Shell in that :P


It was the extension of AD7Property that I was having issues with :P I was trying to get it to display array elements as children :P The same mechanism would be used to display fields of an object though, so :P


Also, as a lazy man's method of getting debug info for the fields of a type, we could always just stick the assemblies themself into the debug database :P (that would probably be a bad idea though so :P)

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jan 6, 2012 at 2:24 PM

It already can show arrays using the string builder, however, to eventually allow editing the values in that array, we want to show the elements of the array as child elements, in the same way that the fields of an object will be child elements.

Jan 6, 2012 at 2:33 PM
You basically return a child collection:
the EnumChildren property


On Fri, Jan 6, 2012 at 3:24 PM, blah38621 <notifications@codeplex.com> wrote:

From: blah38621

It already can show arrays using the string builder, however, to eventually allow editing the values in that array, we want to show the elements of the array as child elements, in the same way that the fields of an object will be child elements.

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jan 6, 2012 at 5:11 PM

Yes, I got that far, but where do I tell it to search for the children to enumerate?

Jan 8, 2012 at 4:16 PM
> You basically return a child collection:
> http://msdn.microsoft.com/en-us/library/bb161287.aspx
> the EnumChildren property

So is this being worked on? This would be a great addition...
Jan 9, 2012 at 8:06 AM
Orvid: have a look at the overall AD7 files: there are more situations where iterators are returned (AD7Process returns a list of threads iirc, etc). Look there to see how to do things..
Keep in mind that it can/should be done lazy-loaded, to preserve speed...


On Sun, Jan 8, 2012 at 5:16 PM, kudzu <notifications@codeplex.com> wrote:

From: kudzu

> You basically return a child collection:
> http://msdn.microsoft.com/en-us/library/bb161287.aspx
> the EnumChildren property

So is this being worked on? This would be a great addition...

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com


Jan 10, 2012 at 2:22 PM

After looking at the source for a bit, I realized why I was having issues. The code that the current debugger is based off of was only designed to have 1 child showing, and that's for resolving a pointer. That means I need to dig into it more and find out where it returns that child object, as well as where that child object is defined, and change it into a list of child objects.

Jan 10, 2012 at 2:25 PM
Have a look at the AD7Process.cs or AD7StackFrame.cs files. iirc AD7StackFrame defines iterators for the Watches and Locals/Auto's windows. You can look there on how to do that. Creating the child items shouldn't be hard..

On Tue, Jan 10, 2012 at 3:22 PM, blah38621 <notifications@codeplex.com> wrote:

From: blah38621

After looking at the source for a bit, I realized why I was having issues. The code that the current debugger is based off of was only designed to have 1 child showing, and that's for resolving a pointer. That means I need to dig into it more and find out where it returns that child object, as well as where that child object is defined, and change it into a list of child objects.

Read the full discussion online.

To add a post to this discussion, reply to this email (Cosmos@discussions.codeplex.com)

To start a new discussion for this project, email Cosmos@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com