[MonoDevelop] IronPython and monodevelop - project importing fails

Rafael Teixeira monoman at gmail.com
Thu Sep 28 09:50:28 EDT 2006


I think IronPython-1.0 was released with VS2005 solution/project files
that are currently unsupported by MD. Those are VERY different from
the same-way-named files in VS2003 that MD supports.

:(

On 9/26/06, Anthony Baxter <anthony at interlink.com.au> wrote:
> I'm trying to load the IronPython source into the monodevelop that ships with
> Mono 1.1.17.1. It doesn't work at all - google didn't seem to show anyone had
> reported the same issue, my apologies if they have...
>
> If I grab the source zip file from
> http://www.codeplex.com/Project/FileDownload.aspx?ProjectName=IronPython&DownloadId=1896
> and then unpack it, I get the following results.
>
> Attempting to load Src/IronPython.sln, I get 'Operation completed with
> errors'. The 'Details' widget just displays:
> Importing solution
> Importing
> project: /home/anthony/src/py/fepy/IronPython-1.0/Src/IronPythonWindow/IronPythonWindow.csproj
> ERROR: Could not import
> project:/home/anthony/src/py/fepy/IronPython-1.0/Src/IronPythonWindow/IronPythonWindow.csproj.
> Sharing violation on
> path /home/anthony/src/py/fepy/IronPython-1.0/Src/IronPythonWindow/IronPythonWindow.csproj
>
> While in the terminal I ran MonoDevelop, I get:
> Could not load the
> file /home/anthony/src/py/fepy/IronPython-1.0/Src/IronMath/IronMath.csproj
> Exception: There was an error generating the XML document.
> Could not load the
> file /home/anthony/src/py/fepy/IronPython-1.0/Src/IronPython/IronPython.csproj
> Exception: There was an error generating the XML document.
> Could not load the
> file /home/anthony/src/py/fepy/IronPython-1.0/Src/IronPythonConsole/IronPythonConsole.csproj
> Exception: There was an error generating the XML document.
> Could not load the
> file /home/anthony/src/py/fepy/IronPython-1.0/Src/IronPythonTest/IronPythonTest.csproj
> Exception: There was an error generating the XML document.
> Could not load the
> file /home/anthony/src/py/fepy/IronPython-1.0/Src/IronPythonWindow/IronPythonWindow.csproj
> Exception: There was an error generating the XML document.
> 2006-09-26 22:32:21,532 [-1211087168] ERROR MonoDevelop.Core.ILoggingService
> [(null)] - System.IO.IOException: Sharing violation on
> path /home/anthony/src/py/fepy/IronPython-1.0/Src/IronPythonWindow/IronPythonWindow.csproj
>   at System.IO.FileStream..ctor (System.String name, FileMode mode, FileAccess
> access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions
> options) [0x00000]
>   at System.IO.FileStream..ctor (System.String name, FileMode mode) [0x00000]
>   at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor
> (string,System.IO.FileMode)
>   at MonoDevelop.Prj2Make.SlnMaker.CreatePrjxFromCsproj (System.String
> csprojFileName, IProgressMonitor monitor) [0x00000]
>
> While it _says_ "operation completed", I get nothing loaded.
>
> If I try to just load Src/IronPython/IronPython.csproj, I get a different
> error:
>
> Could not import
> project:/home/anthony/src/py/fepy/IronPython-1.0/Src/IronPython/IronPython.csproj.
> There was an error generating the XML document.
>
> The details widget in this case says:
> Exception occurred: There was an error generating the XML document.
>
> System.InvalidOperationException: There was an error generating the XML
> document. ---> System.InvalidOperationException: <Project
> xmlns='http://schemas.microsoft.com/developer/msbuild/2003'> was not expected
>   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot
> (System.Xml.Serialization.XmlTypeMapping rootMap) [0x00000]
>   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot ()
> [0x00000]
>   at System.Xml.Serialization.XmlSerializer.Deserialize
> (System.Xml.Serialization.XmlSerializationReader reader) [0x00000] --- End of
> inner exception stack trace ---
>
>   at System.Xml.Serialization.XmlSerializer.Deserialize
> (System.Xml.Serialization.XmlSerializationReader reader) [0x00000]
>   at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.XmlReader
> xmlReader) [0x00000]
>   at System.Xml.Serialization.XmlSerializer.Deserialize (System.IO.Stream
> stream) [0x00000]
>   at MonoDevelop.Prj2Make.SlnMaker.CreatePrjxFromCsproj (System.String
> csprojFileName, IProgressMonitor monitor) [0x00000]
>
> While in the terminal I get:
> 2006-09-26 22:35:26,026 [-1211087168] ERROR MonoDevelop.Core.ILoggingService
> [(null)] - System.InvalidOperationException: There was an error generating
> the XML document. ---> System.InvalidOperationException: <Project
> xmlns='http://schemas.microsoft.com/developer/msbuild/2003'> was not expected
>   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot
> (System.Xml.Serialization.XmlTypeMapping rootMap) [0x00000]
>   at System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot ()
> [0x00000]
>   at System.Xml.Serialization.XmlSerializer.Deserialize
> (System.Xml.Serialization.XmlSerializationReader reader) [0x00000] --- End of
> inner exception stack trace ---
>
>   at System.Xml.Serialization.XmlSerializer.Deserialize
> (System.Xml.Serialization.XmlSerializationReader reader) [0x00000]
>   at System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.XmlReader
> xmlReader) [0x00000]
>   at System.Xml.Serialization.XmlSerializer.Deserialize (System.IO.Stream
> stream) [0x00000]
>   at MonoDevelop.Prj2Make.SlnMaker.CreatePrjxFromCsproj (System.String
> csprojFileName, IProgressMonitor monitor) [0x00000]
>
> (MonoDevelop:986): GLib-GObject-CRITICAL **: g_object_ref: assertion
> `object->ref_count > 0' failed
>
> The first few lines of the IronPython.csproj file are:
> <U+FEFF><Project DefaultTargets="Build"
> xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
>   <PropertyGroup>
>     <ProjectType>Local</ProjectType>
>     <ProductVersion>8.0.50727</ProductVersion>
>     <SchemaVersion>2.0</SchemaVersion>
>     <ProjectGuid>{16ED1884-8B08-4787-B598-7C9D60519075}</ProjectGuid>
>     <Configuration Condition=" '$(Configuration)'
> == '' ">Debug</Configuration>
>     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
>     <ApplicationIcon>
>
> There's an odd unicode marker at the start of the file - removing it doesn't
> help, though, I get the same error.
>
> prj2make fails with a similar error.
>
>
> --
> Anthony Baxter     <anthony at interlink.com.au>
> It's never too late to have a happy childhood.
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>


-- 
Rafael "Monoman" Teixeira
---------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw


More information about the Monodevelop-list mailing list