maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET (https://talk.maemo.org/showthread.php?t=72677)

keks-n 2011-05-01 08:34

[Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Hi.
I've managed to compile Mono 2.10.1 and MonoDevelop. I've resolved most issues with GUI patching GTK# bindings. For example, if some dialog doesn't fit the screen, scrollbars will be added automatically.

But because of some differences between Maemo and a normal Debian system it still needs testing.

http://img15.imageshack.us/img15/847...1050112331.png

One more thing. MonoDevelop uses right click for context menus. Because there is no right click capability on N900, I've patched GTK# and it recognizes Fn+Tap as a right click.

You can also set a GTK theme for it in Edit-Preferences. Now I'm looking for a theme that will be compatible with it, because with most themes in some dialogs you will see black text on dark background.

Here is a short demo.

Please, vote for the package. It seems to be almost stable.

Alfred 2011-05-01 08:51

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Good to have it's own thread, started by a dev, not by smb who saw it somewhere. Спасибо

Joseph9560 2011-05-01 10:28

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
So we will be able to code and then compile app directly from the app? Or is it just for coding? Sorry I am kind of noob at those things.

keks-n 2011-05-01 12:21

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Compiler and debugger are included. You can see it in work on the video from the first post.

pannkaksfest 2011-05-01 12:53

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
will i be able to code and compile C++ also with this or is it only C# and asp.net?
thanx for this =)

Mentalist Traceur 2011-05-01 14:41

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Quote:

will i be able to code and compile C++ also with this or is it only C# and asp.net?
Real men compile C code with gcc from the sdk repository.

But seriously: this is a really awesome development. Now, another 5-10 years from now, I might actually know these coding languages well enough to use this program, but in the meantime, I think it's really neat that someone ported it, and I am sure there's plenty less-newbish people who can use this.

P.S. I like the music in your videos - you make running something on your N900 that was meant for a desktop sound almost as epic as it actually is.

Radicalz38 2011-05-01 14:49

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
0.o gcc from the repository on your n900? I tried that a year ago and I dunno but I think RootFS space isn't enough to install just gcc. Well when I installed it it prompts not enough space on device. :/

keks-n 2011-05-01 15:26

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Quote:

will i be able to code and compile C++ also with this or is it only C# and asp.net?
Yes, there is basic C/C++ support (building, syntax highlighting, go-to-definition). But you still need GCC. And I haven't compiled gdb support extention, so there is no debugger for it.

Quote:

0.o gcc from the repository on your n900? I tried that a year ago and I dunno but I think RootFS space isn't enough to install just gcc. Well when I installed it it prompts not enough space on device. :/
What prevents you from installing it into a chroot environment? Just get a rootfs from firmware image and extract it to your SD-card.

keks-n 2011-05-01 17:42

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Today updates:

1) Compiled xsp (now you can run and debug ASP.NET)
2) Fixed code that opens hyperlinks
3) Disabled loading of damn hildon GTK theme. It fixes all issues with black text on black background supposing that "Default" theme is selected in preferences. It also fixes toolbars' size to a reasonable value.

clasificado 2011-05-01 21:00

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
i cant install it from extras-devel. Lert me quote you the FAM errors
Quote:

dpkg: dependency problems prevent configuration of libmono-system-web-services4.0-cil:
libmono-system-web-services4.0-cil depends on libmono-corlib4.0-cil (>= 2.10.1); however:
Package libmono-corlib4.0-cil is not configured yet.
libmono-system-web-services4.0-cil depends on libmono-system-configuration4.0-cil (>= 1.0); however:
Package libmono-system-configuration4.0-cil is not configured yet.
libmono-system-web-services4.0-cil depends on libmono-system-enterpriseservices4.0-cil (>= 1.0); however:
Package libmono-system-enterpriseservices4.0-cil is not configured yet.
libmono-system-web-services4.0-cil depends on libmono-system-web4.0-cil (>= 2.10.1); however:
Package libmono-system-web4.0-cil is not configured yet.
libmono-system-web-services4.0-cil depends on libmono-system-xml4.0-cil (>= 1.0); however:
Package libmono-system-xml4.0-cil is not configured yet.
libmono-system-web-services4.0-cil depends on libmono-system4.0-cil (>= 2.10.1); however:
Package libmono-system4.0-cil is not configured yet.
dpkg: error processing libmono-system-web-services4.0-cil (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmono-http4.0-cil:
libmono-http4.0-cil depends on libmono-corlib4.0-cil (>= 2.10.1); however:
Package libmono-corlib4.0-cil is not configured yet.
libmono-http4.0-cil depends on libmono-sharpzip4.84-cil (>= 1.0); however:
Package libmono-sharpzip4.84-cil is not configured yet.
libmono-http4.0-cil depends on libmono-system-web4.0-cil (>= 2.10.1); however:
Package libmono-system-web4.0-cil is not configured yet.
libmono-http4.0-cil depends on libmono-system-xml4.0-cil (>= 1.0); however:
Package libmono-system-xml4.0-cil is not configured yet.
libmono-http4.0-cil depends on libmono-system4.0-cil (>= 2.10.1); however:
Package libmono-system4.0-cil is not configured yet.
dpkg: error processing libmono-http4.0-cil (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmono-i18n-west2.0-cil:
libmono-i18n-west2.0-cil depends on libmono-corlib2.0-cil (>= 2.6.3); however:
Package libmono-corlib2.0-cil is not configured yet.
dpkg: error processing libmono-i18n-west2.0-cil (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libmono-i18n2.0-cil:
libmono-i18n2.0-cil depends on libmono-corlib2.0-cil (>= 2.6.3); however:
Package libmono-corlib2.0-cil is not configured yet.
libmono-i18n2.0-cil depends on libmono-i18n-west2.0-cil (>= 1.0); however:
Package libmono-i18n-west2.0-cil is not configured yet.
libmono-i18n2.0-cil depends on mono-runtime (>= 2.10.1); however:
Package mono-runtime is not configured yet.
libmono-i18n2.0-cil depends on mono-runtime (<< 2.10.2); however:
Package mono-runtime is not configured yet.
dpkg: error processing libmono-i18n2.0-cil (--configure):
dependency problems - leaving unconfigured
dpkg: too many errors, stopping
Errors were encountered while processing:
mono-gac
mono-runtime
libmono-corlib2.0-cil
libmono-accessibility2.0-cil
libmono-corlib4.0-cil
libmono-accessibility4.0-cil
libmono-c5-1.1-cil
libmono-cairo2.0-cil
libmono-cairo4.0-cil
libmono-security2.0-cil
libmono-system2.0-cil
libmono-posix2.0-cil
libmono-cecil-private-cil
libmono-sharpzip2.84-cil
libmono-data-tds2.0-cil
libmono-system-data2.0-cil
libmono-sqlite2.0-cil
libmono-messaging2.0-cil
libmono-system-messaging2.0-cil
libmono-system-data-linq2.0-cil
libmono2.0-cil
libmono-system-web2.0-cil
libmono-wcf3.0-cil
libmono-system-security4.0-cil
libmono-system-configuration4.0-cil
libmono-system4.0-cil
libmono-system-xml4.0-cil
libmono-posix4.0-cil
libmono-system-core4.0-cil
libmono-codecontracts4.0-cil
libmono-compilerservices-symbolwriter4.0-cil
libmono-cscompmgd8.0-cil
libmono-csharp4.0-cil
libmono-custommarshalers4.0-cil
libmono-data-tds4.0-cil
libmono-system-transactions4.0-cil
libmono-system-enterpriseservices4.0-cil
libmono-system-data4.0-cil
libmono-db2-1.0-cil
libmono-debugger-soft2.0-cil
libmono-debugger-soft4.0-cil
libmono-sharpzip4.84-cil
libmono-sqlite4.0-cil
libmono-system-drawing4.0-cil
libmono-system-web-applicationservices4.0-cil
libmono-web4.0-cil
libmono-system-web4.0-cil
libmono-system-web-services4.0-cil
libmono-http4.0-cil
libmono-i18n-west2.0-cil
libmono-i18n2.0-cil
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
EDIT: "sudo apt-get install bash" as the dev says, solves the problem.

keks-n 2011-05-01 21:08

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Ehm. Try to install mono-complete first. May be there is too many packages. Now I'll try to install it on the clean system.

clasificado 2011-05-01 21:33

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Some more specific here

Quote:

/home/user # dpkg --configure mono-gac
Setting up mono-gac (2.10.1-4maemo3) ...
/var/lib/dpkg/info/mono-gac.postinst: line 6: /usr/share/cli-common/gac-install: not found
dpkg: error processing mono-gac (--configure):
subprocess post-installation script returned error exit status 127
Errors were encountered while processing:
mono-gac

keks-n 2011-05-01 22:19

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
It fails here:
if [ -x /usr/share/cli-common/gac-install ]; then
/usr/share/cli-common/gac-install mono
fi

The first line of "/usr/share/cli-common/gac-install":
#!/bin/bash


It looks like, that you haven't bash installed on your system.

preflex 2011-05-02 05:15

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Wow! Spectacular! Thank you for this unholy gift!

I have one problem though. I'm unable to drag widgets, etc. from the toolbox when using the designer.

ivyking 2011-05-02 05:34

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
thank you , this is just awesome , also for people asking about c++ , you can run the sdk in a chroot environment as previously mentioned , and some one has already done the work for you , Here :

http://talk.maemo.org/showthread.php?t=71546

now you have mono and the maemo sdk :D

note : you can also install the full Qt sdk using easy debian , but Qt creator runs quite slowly .

ZogG 2011-05-02 05:37

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Quote:

Originally Posted by Alfred (Post 998169)
Good to have it's own thread, started by a dev, not by smb who saw it somewhere. Спасибо

that was rude :mad:

Mentalist Traceur 2011-05-02 05:52

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Re: gcc from sdk repository: You must have had a really full rootfs at the time. The situation is better on the N900 now - we have more optified programs, even in devel, so it's easier to keep rootfs space down.

Anyway, gcc won't by itself take up too much space (relatively speaking...) - it's all the -dev packages that'll rape your rootfs. Currently, I manually optify all these packages right after I install them, and as of this last reflash I got annoyed and started saving the optifications in a script to run to do it automatically next time. But yes, sometimes you need a decently large handful of MB to fit all the stuff into rootfs before you can optify it yourself.

clasificado 2011-05-02 14:27

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Quote:

Originally Posted by keks-n (Post 998547)
It fails here:
if [ -x /usr/share/cli-common/gac-install ]; then
/usr/share/cli-common/gac-install mono
fi

The first line of "/usr/share/cli-common/gac-install":
#!/bin/bash


It looks like, that you haven't bash installed on your system.

Yep, That was the problem. it is configuring everything now.

If it is needed, maybe should be in the dependencies list

keks-n 2011-05-02 15:06

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Quote:

I have one problem though. I'm unable to drag widgets, etc. from the toolbox when using the designer.
Check that the library from /opt/gtk-dnd is preloaded. It enables drag-n-drop feature.

keks-n 2011-05-02 16:26

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Sorry, I forgot to add this package to dependencies. Installing libgtk-dnd should fix the problem.

jcotillo 2011-05-02 19:39

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Hi Guys, i just downloaded it and looks excellent, i tried to create a Web Application and seems like is working ok, but when i tried to create a Console Application i receive an exception message that says: File name has not been set. Does anyone has the same exception? How can i solve it? Thanks!!!!

keks-n 2011-05-03 05:12

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Please, launch it from console and provide the full log. It's compiled with debugging symbols so I will be able to determine where is the source of this exception.

Deserve 2011-05-03 17:54

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
I created a cpp console project.My hellogtk+ app built success but when i ran it i got error msg like: cannot execute "myproject",file name has not been set. detail>> is
Quote:

System.InvalidOperationException: File name has not been set
at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0
at System.Diagnostics.Process.Start () [0x00000] in <filename unknown>:0
at MonoDevelop.Core.Execution.ProcessWrapper.Start () [0x00006] in /home/builder1/maemo-fremantle-i386-extras-devel/work/monodevelop-2.5.90/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessWrapper.cs:26
at (wrapper remoting-invoke-with-check) MonoDevelop.Core.Execution.ProcessWrapper:Start ()
at MonoDevelop.Platform.GnomePlatform.StartConsolePro cess (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, System.String title, Boolean pauseWhenFinished) [0x00090] in /home/builder1/maemo-fremantle-i386-extras-devel/work/monodevelop-2.5.90/src/addins/GnomePlatform/GnomePlatform.cs:219
at MonoDevelop.Core.Execution.ProcessService.StartCon soleProcess (System.String command, System.String arguments, System.String workingDirectory, IDictionary`2 environmentVariables, IConsole console, System.EventHandler exited) [0x000e5] in /home/builder1/maemo-fremantle-i386-extras-devel/work/monodevelop-2.5.90/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs:211
at MonoDevelop.Core.Execution.NativePlatformExecution Handler.Execute (MonoDevelop.Core.Execution.ExecutionCommand command, IConsole console) [0x000a0] in /home/builder1/maemo-fremantle-i386-extras-devel/work/monodevelop-2.5.90/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/NativePlatformExecutionHandler.cs:64
at MonoDevelop.Core.Execution.DefaultExecutionHandler .Execute (MonoDevelop.Core.Execution.ExecutionCommand command, IConsole console) [0x0000c] in /home/builder1/maemo-fremantle-i386-extras-devel/work/monodevelop-2.5.90/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/DefaultExecutionHandler.cs:43
at CBinding.CProject.DoExecute (IProgressMonitor monitor, MonoDevelop.Projects.ExecutionContext context, MonoDevelop.Projects.ConfigurationSelector configuration) [0x000b3] in /home/builder1/maemo-fremantle-i386-extras-devel/work/monodevelop-2.5.90/src/addins/CBinding/Project/CProject.cs:358

keks-n 2011-05-03 18:44

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Hm... Try to install xterm.

impeham 2011-05-03 18:53

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
i compiled a simple console application that does console.write and found a few issues:

1. i have to disable "Run on external console" to make the project compile without a message "File name has not been set".

2. when i execute it from the IDE it works fine, but when i do this from x-term i get this (Lsxtest.exe is the compiled file):

Nokia-N900:/home/user/Projects/Lsxtest/Lsxtest/bin/Debug# ./Lsxtest.exe
./Lsxtest.exe: line 1: MZ?♥♦??,@?▼º': ┼~├ °~┤┼d
↓/L_│├e_├↓e│e: ┌?┼e 7: _≤┼├▒│ e──~─: ")" ┤┼e│─ec├ed
N~┐?▒↑N900:/▒~└e/┤_e─/P─~┘ec├_/L_│├e_├/L_│├e_├/b?┼/Deb┤±# ↓/L_│├e_├↓e│e
↓/L_│├e_├↓e│e: ┌?┼e 1: MZ?♥♦??,@?▼º': ┼~├ °~┤┼d
↓/L_│├e_├↓e│e: ┌?┼e 6: _≤┼├▒│ e──~─: EOF ?┼ b▒c┐─┤~├e _┤b_├?├┤├?~┼
N~┐?▒↑N900:/▒~└e/┤_e─/P─~┘ec├_/L_│├e_├/L_│├e_├/b?┼/Deb┤±#

3. there are screen rendering issues many times - the picture of the IDE does not show correctly the location of the objects - the project/solution in the left panel for example and many other places. you have to click all around until the correct object you want to click on is highlighted.

This IDE is extremely impressive. i am a .net developer under windows using visual studio and this one does not fall much from it from what i've experienced so far.

preflex 2011-05-03 21:35

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Quote:

Originally Posted by keks-n (Post 998914)
Sorry, I forgot to add this package to dependencies. Installing libgtk-dnd should fix the problem.

I also saw a package called libgtk-monodevelop in the repos. I installed both libgtk-dnd and libgtk-monodevelop and now all is well.

This is truly excellent. Thank you.

Any chance of getting webkit-sharp in the repos soon? ;)

keks-n 2011-05-04 06:51

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Quote:

Nokia-N900:/home/user/Projects/Lsxtest/Lsxtest/bin/Debug# ./Lsxtest.exe
Use "mono Lsxtest.exe". I haven't packaged binfmt support yet.

Quote:

1. i have to disable "Run on external console" to make the project compile without a message "File name has not been set".
Install xterm. I'll add it to dependencies.

Quote:

3. there are screen rendering issues many times - the picture of the IDE does not show correctly the location of the objects - the project/solution in the left panel for example and many other places. you have to click all around until the correct object you want to click on is highlighted.
Do you use it in fullscreen mode? I have the same problems in fullscreen and have no idea about how it can be fixed.

keks-n 2011-05-04 12:28

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Update: new version supports Nokia's terminal. It's quite strange, so I have to generate startup script on the fly.

keks-n 2011-05-04 12:30

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
I also tried to get subversion working but it looks like that something is broken in libsvn_client because svn itself also fails with SIGSEGV.

impeham 2011-05-05 05:53

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Quote:

Originally Posted by keks-n (Post 999834)
Do you use it in fullscreen mode? I have the same problems in fullscreen and have no idea about how it can be fixed.

yes - full screen is much more comfortable to work with.

Thanks for the help :)

impeham 2011-05-06 23:38

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Is there a good .net framework API documentation for mono (something like MSDN with example codes)?

i was trying to add an item to a combobox at runtime but i can't access its "Items" property (only from designer's properties).

keks-n 2011-05-09 08:29

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
It looks like that you need documentation for GTK#.

Try these links:
http://www.mono-project.com/GtkSharpBeginnersGuide
http://www.go-mono.com/docs/index.as...classlib-gnome
http://www.mono-project.com/GtkSharp

stlpaul 2011-05-09 21:18

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Thanks, i was able to build & run a simple gtk-sharp app.

impeham 2011-05-10 21:07

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Quote:

Originally Posted by keks-n (Post 1002591)

Thanks (is there no search option in the API reference?) :)

i mostly use the MSDN for non UI API.

keks-n 2011-05-12 14:57

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Guys, please, vote for the package. It seems to be almost stable.

Andy1210 2011-05-19 11:29

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
how can i use gtk designer for vb.net app?

impeham 2011-05-21 14:28

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
i've tried searching the web for this but couldn't find a solution:

does anybody know how i can get the x y coordinates of a textview control inside a ScrolledWindow?

Another issue i have is a crash when i use File operations (File.Copy for example) - the crash only happens when i execute it from the shortcut i made for it in hildon desktop - if i run from xterm the same command it works well. i thought it was probably a security issue so i tried executing it with sudo but it didn't help...
anyone knows how to solve this?

is there a good place to post these kind of questions?

Thanks :)

keks-n 2011-05-23 17:10

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
Quote:

Another issue i have is a crash when i use File operations (File.Copy for example) - the crash only happens when i execute it from the shortcut i made for it in hildon desktop - if i run from xterm the same command it works well. i thought it was probably a security issue so i tried executing it with sudo but it didn't help...
anyone knows how to solve this?
Does it throw an exception or just "catch" SIGSEGV? Please, try to log which exception is thrown.

impeham 2011-05-23 19:44

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
the problem is - how do i log the exception? i cannot seem to be able to write to a file...
any other way?

keks-n 2011-05-24 10:44

Re: [Announce] MonoDevelop 2.6 Beta 2. An IDE for C# and ASP.NET
 
For example:
Quote:

catch (Exception e)
{
var f=new System.IO.StreamWriter("/tmp/wtf");
f.WriteLine(e.ToString());
f.Flush();
}


All times are GMT. The time now is 10:50.

vBulletin® Version 3.8.8