SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Exception while viewing unsaved generated code.

Last post 12-14-2006 1:51 PM by MattWard. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-14-2006 5:46 AM

    Exception while viewing unsaved generated code.

    I was testing out SharpDevelop (serralongue) and had converted a c# class file into Boo, and had not saved the Generated.boo file.

    I think the error occured when I right-clicked on something defined in that file, but it might have been from the definition tooltip - I kinda did both at the same time.  This seems to fit with the exception originating from DefinitionViewPad.  I managed to duplicate the same error another two times, but not again since.

    Possibly bringing up the definition is trying to read from a saved file on disk when it should be looking in memory.
     

     

    SharpDevelop Version : 2.1.0.2017
    .NET Version         : 2.0.50727.42
    OS Version           : Microsoft Windows NT 5.1.2600 Service Pack 2
    Current culture      : English (Australia) (en-AU)
    Current UI language  : en-US
    Working Set Memory   : 95264kb
    GC Heap Memory       : 31171kb

    Exception thrown:
    System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\corecalc\32813404\Generated.boo'.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
       at ICSharpCode.TextEditor.Util.FileReader.ReadFileContent(String fileName, Encoding& encoding, Encoding defaultEncoding)
       at ICSharpCode.TextEditor.TextEditorControlBase.LoadFile(String fileName, Boolean autoLoadHighlighting, Boolean autodetectEncoding)
       at ICSharpCode.SharpDevelop.Gui.DefinitionViewPad.OpenFile(FilePosition pos)

    Note: C:\Program Files\corecalc is the directory in which the solution resides, so it exists, but there is no directory named 32813404.
    (I don't think this is related to the "Renaming unsaved class - file not found exception" bug, right?)

     

  • 12-14-2006 1:51 PM In reply to

    Re: Exception while viewing unsaved generated code.

    Added bug report.
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.