2 missing files in SVN trunk and compilation warnings

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/28/2006 10:51:19 PM
Gravatar
Total Posts 23

2 missing files in SVN trunk and compilation warnings

As I've tried to compile trunk from SVN I've to add (I've copied it from the 1.0.1 branch) 2 missing files until I could "make" it.

    cp -a [...]/mojoportal/branches/1.0.1/Web/Modules/Signin.ascx.cs Web/Modules/
    cp -a [...]/mojoportal/branches/1.0.1/Web/Modules/Signin.ascx.resx Web/Modules/

Nevertheless I've got a

    "Compilation succeeded - 21 warning(s)"

message. Makes it sense to remove the corresponding code lines OR is the mono compiler (Mono C# compiler version 1.1.13.6) buggy OR makes it no sense to remove the warnings because if we will move to mp 2.0 the whole trunk will become deprecated?
6/28/2006 11:00:44 PM
Gravatar
Total Posts 23

Re: 2 missing files in SVN trunk and compilation warnings

The most warnings are of the type

    The variable/method `xyz' is assigned but its value is never used

and as I've seen now there are much more warnings than 21 (> 100?).
6/29/2006 4:02:49 AM
Gravatar
Total Posts 18439

Re: 2 missing files in SVN trunk and compilation warnings

Hi Alexander,

the Signin module was a legacy module that has not been used in a long time but until recently still existed in the file system in svn. I removed it recently because I was getting questions about it and wanted to avoid future confusion.

You can safely remove any references to it from your make file.

Yes, once 2.0 is working the whole of trun will become legacy. We can fix bugs and do things in trunk as long as no db schema changes are made because currently we have an upgrade path that will work form the 1.x branch to the 2.x branch but if we change things in the db at this point it will likely break the upgrade path. The 1.0.1 and 2.0.1 have the exact same schema but there are many schema changes in 2.1 but once the mono 2.0 is working the upgrade scripts will be able to update the db for upgrading from 1.x.

Cheers,

Joe
7/1/2006 5:25:39 PM
Gravatar
Total Posts 23

another trunk compilation problem

Another problem in trunk (SVN revision: 1093): entity@lethargy:~/personal/project/mojoPortal/mojoportal/trunk$ make mkdir -p ./Web/bin mcs -debug -r:System.dll -r:System.Data.dll -r:System.Xml.dll -r:./Web/bin/Npgsql.dll -r:./Web/bin/log4net.dll -target:library -out:./Web/bin/mojoPortal.Data.dll PostgreSQLData/AssemblyInfo.cs PostgreSQLData/dbPortal.cs PostgreSQLData/NpgsqlHelper.cs PostgreSQLData/NpgsqlHelper.cs(1418,5): warning CS0162: Unreachable code detected PostgreSQLData/NpgsqlHelper.cs(1418,15): warning CS0162: Unreachable code detected PostgreSQLData/NpgsqlHelper.cs(1515,4): warning CS0162: Unreachable code detected PostgreSQLData/NpgsqlHelper.cs(1515,14): warning CS0162: Unreachable code detected Compilation succeeded - 4 warning(s) make: *** No rule to make target `FCKeditor.Net_2.1/AssemblyInfo.cs', needed by `Web/bin/FredCK.FCKeditorV2.dll'. Stop. entity@lethargy:~/personal/project/mojoPortal/mojoportal/trunk$ Either AssemblyInfo.cs is missing in in der repository tree OR the Makefile reference is deprecated. I've tried to built mp with the "make" command on the console because Monodevelop/GTK# really sucks and is unstable like nitroglycerin.
7/1/2006 5:43:57 PM
Gravatar
Total Posts 18439

Re: 2 missing files in SVN trunk and compilation warnings

Hi Alexander,

You will need to update the makefile for the new version of FCKeditor. It has also a new .NET wrapper in folder FCKeditor.Net_2.2 instead of FCKeditor.Net_2.1 which has been removed.

If you update the make file please send a patch to me or Dean.

Many Thanks,

Joe
7/1/2006 6:00:13 PM
Gravatar
Total Posts 18439

Re: 2 missing files in SVN trunk and compilation warnings

Dean,

When you get a chance can you update the MonoDevelop project to use the new FCKeditor wrapper. It doesn't affect the compiled releases but when this is updated I will update the zip file of source code on Novell Forge.

I should have thought of this and asked sooner.

Thanks,

Joe
7/1/2006 6:23:03 PM
Gravatar
Total Posts 23

Re: another trunk compilation problem

After I've modified the "2.1" suffix to "2.2", I've got the following error:

entity@lethargy:~/personal/project/mojoPortal/mojoportal/trunk$ make
mkdir -p ./Web/bin
mcs -debug   -r:System.dll -r:System.Data.dll -r:System.Xml.dll -r:System.Design.dll -r:              .dll -r:System.Web.dll  -target:library -out:./Web/bin/FredCK.FCKeditorV2.dll  FCKeditor              blyInfo.cs FCKeditor.Net_2.2/FCKeditor.cs FCKeditor.Net_2.2/FCKeditorConfigurations.cs F              .2/FCKeditorDesigner.cs FCKeditor.Net_2.2/FileBrowserConnector.cs FCKeditor.Net_2.2/XmlU              or.Net_2.2/Util.cs
FCKeditor.Net_2.2/FileBrowserConnector.cs(28,38): error CS0246: The type or namespace na              Base' could not be found. Are you missing a using directive or an assembly reference?
Compilation failed: 1 error(s), 0 warnings
make: *** [Web/bin/FredCK.FCKeditorV2.dll] Error 1
entity@lethargy:~/personal/project/mojoPortal/mojoportal/trunk$
7/1/2006 6:47:11 PM
Gravatar
Total Posts 18439

Re: 2 missing files in SVN trunk and compilation warnings

I really don't know anything about make files but FileBrowserConnector.cs inherits from FileWorkerBase.cs. Is that file included? Maybe it is new in this version.

Also there is a file Uploader.cs that I didn't see referenced in your patch, so it may be new also.

All of this builds fine in VS 2003.
7/1/2006 7:03:02 PM
Gravatar
Total Posts 23

Re: another trunk compilation problem

Thx for your hint! I've got it and mp compiles! :)

I hope, I can maintain the Makefile in the future because I really don't like to work with Monodevelop/GTK#.

I will send Dean the corrected patch now.
7/1/2006 7:12:51 PM
Gravatar
Total Posts 18439

Re: 2 missing files in SVN trunk and compilation warnings

Have you heard of prj2make? I think we may be able to use it to generate a make file from the VS 2003 Solution. That will make it easy to keep things up to date in the make file. I will try and experiment with it soon and maybe you can help me test the make file it generates. I've heard from the author that a VS 2005 version is coming in the near future as well and that will help with branches/2.1

Cheers,

Joe
7/1/2006 7:18:27 PM
Gravatar
Total Posts 148

Re: 2 missing files in SVN trunk and compilation warnings

Patch applied.  Thanks Alexander!

--Dean
7/1/2006 7:19:46 PM
Gravatar
Total Posts 23

Re: 2 missing files in SVN trunk and compilation warnings

No, I haven't heared about it but it's available for Ubuntu dapper as "prj2make-sharp". I've installed it and will try it out.

Thx!
You must sign in to post in the forums. This thread is closed to new posts.