Idea: Visual NXC

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: Idea: Visual NXC

Post by mattallen37 »

Wow, it is really looking great!

I can hardly wait 'till it's "finished" (programs are never 100% finished ;)).
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
timpattinson
Posts: 224
Joined: 30 Oct 2010, 04:10
Location: 127.0.0.1
Contact:

Re: Idea: Visual NXC

Post by timpattinson »

Nice new version...
2 things:
I get unhandled exceptions closing tabs in the nxc output
The "graph" thing in the enum editor is a bit cut off
Video quality is really crappy -- i deserve it for using windows movie maker :oops:
Exception text:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Visual_NXC.Forms.nxcOutput.tabBar1_SelectedTabChanged(TabItem obj)
at Visual_NXC.tabBar.set_selectedItem(TabItem value)
at Visual_NXC.tabBar.CloseCurrentTab()
at Visual_NXC.tabBar.tabBar_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Visual_NXC
Assembly Version: 0.1.0.0
Win32 Version: 0.1.0.0
CodeBase: file:///D:/Data/Downloads/0_1_0_5/Visual_NXC.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
SpiderApplicationsToolkit
Assembly Version: 1.0.0.1
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Data/Downloads/0_1_0_5/SpiderApplicationsToolkit.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 (RTMRel.030319-0100)
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.1 built by: RTMRel
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
SyntaxHighlightingTextBox
Assembly Version: 1.0.2020.39164
Win32 Version: 1.0.2020.39164
CodeBase: file:///D:/Data/Downloads/0_1_0_5/SyntaxHighlightingTextBox.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Attachments
v-nxc-bugs.zip
Crappy screengrab of when i got the exception
(442.03 KiB) Downloaded 304 times
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
timpattinson
Posts: 224
Joined: 30 Oct 2010, 04:10
Location: 127.0.0.1
Contact:

Re: Idea: Visual NXC

Post by timpattinson »

May sound stupid but... you code won't compile.
How do i make it find the stuff you put in the DLL Libs.zip (apart form unzipping it of course ;) )
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
sidneys1
Posts: 141
Joined: 01 Oct 2010, 14:38
Location: Pennsylvania - The United States of America
Contact:

Re: Idea: Visual NXC

Post by sidneys1 »

timpattinson wrote:I get unhandled exceptions closing tabs in the nxc output
Thanks for finding that.. Fixed.
timpattinson wrote:The "graph" thing in the enum editor is a bit cut off
..because you are using XP. :| I really really hate XP. I'll look into it though, see what I can do.
timpattinson wrote:May sound stupid but... you code won't compile.
How do i make it find the stuff you put in the DLL Libs.zip (apart form unzipping it of course ;) )
Ok, a quick crash-course on changing linked libraries work. First off, (assuming you're using Visual Studio) go to the solution explorer, expand "Visual_NXC", expand "References", and right-click and "Remove" the following entries: GlassLib, SpiderApplicationsToolkit, STP.RGI, and SyntaxHighlightingTextBox. (Nothing else!!)
Then, right-click "References":
Image
Click the "Browse" tab, find the files you extracted from DLL Libraries.zip, and select them (this pic is incorrect, bin/debug/ doesn't exist, but you get the idea):
Image
Then hit ok. Things should compile fine now.

Have a nice day,
~Sidneys1
My Mindstorms website: http://sidneys1.com
sidneys1
Posts: 141
Joined: 01 Oct 2010, 14:38
Location: Pennsylvania - The United States of America
Contact:

Re: Idea: Visual NXC

Post by sidneys1 »

Thought I'd make a quick post on my progress... Our internet went out today, and I had nothing to do, so I did some major redesigning and work on Visual NXC. 0.1.0.6 is gonna be cool :D
Image
ImageImage
The new 'blocks' render faster, and are made in a four-step process:
Image

Have a nice day,
~Sidneys1
My Mindstorms website: http://sidneys1.com
timpattinson
Posts: 224
Joined: 30 Oct 2010, 04:10
Location: 127.0.0.1
Contact:

Re: Idea: Visual NXC

Post by timpattinson »

Yes i did finally get vs2010 from Dreamspark.
I'm using it for a school project so the school IT guys installed it for me.
It worked.
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
timpattinson
Posts: 224
Joined: 30 Oct 2010, 04:10
Location: 127.0.0.1
Contact:

Re: Idea: Visual NXC

Post by timpattinson »

Is it possible to mirror the Mercurial repository to the SVN repository so I don't have to install Hg to get the most up-to-date code :?:
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
muntoo
Posts: 834
Joined: 01 Oct 2010, 02:54
Location: Your Worst Nightmare
Contact:

Re: Idea: Visual NXC

Post by muntoo »

timpattinson wrote:Is it possible to mirror the Mercurial repository to the SVN repository so I don't have to install Hg to get the most up-to-date code :?:
*gasp!* :o Why would you want to do such a thing!? (Not install TortoiseHg or Mercurial.)

But, if you insist, look here. :cry:

Just do this in SVN:

Code: Select all

svn checkout http://bitbucket.org/Sidneys1/visual-nxc/trunk
Image

Commit to LEGO Mindstorms Robotics Stack Exchange:
bit.ly/MindstormsSE


Commit to LEGO Stack Exchange: bit.ly/Area51LEGOcommit
timpattinson
Posts: 224
Joined: 30 Oct 2010, 04:10
Location: 127.0.0.1
Contact:

Re: Idea: Visual NXC

Post by timpattinson »

Because then i have to get permission from the IT guys at my school and they won't let me as it's not school related :evil: :x :x :x

EDIT: It didn't work:

Code: Select all

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\pattinsont>cd Desktop/visualnxc

C:\Documents and Settings\pattinsont\Desktop\visualnxc>svn co http://bitbucket.org/Sidneys1/visual-nxc/trunk
svn: Repository moved permanently to 'https://bitbucket.org/Sidneys1/visual-nxc/trunk'; please relocate

C:\Documents and Settings\pattinsont\Desktop\visualnxc>svn co https://bitbucket.org/Sidneys1/visual-nxc/trunk
svn: '/repos12/r-276129/!svn/vcc/default' path not found

C:\Documents and Settings\pattinsont\Desktop\visualnxc>
Commit to Lego Mindstorms StackExchange Q&A http://area51.stackexchange.com/proposals/4105
Minboards IRC Channel #mindboards on Freenode
My blog: http://timpattinson.wordpress.com/
sidneys1
Posts: 141
Joined: 01 Oct 2010, 14:38
Location: Pennsylvania - The United States of America
Contact:

Re: Idea: Visual NXC

Post by sidneys1 »

Sorry, can't really help you there, Tim. PMing Muntoo seems your best bet, but I don't know much about Mercurial/SVN.

-------------------

Anyhow, here's a small update.. I got drag-dropping mocked up nicely, and even got it to 'nest' nicely!

Image

Have a nice day,
~Sidneys1
My Mindstorms website: http://sidneys1.com
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 0 guests