Quantcast
Channel: SharpDevelop Community
Viewing all 1764 articles
Browse latest View live

Configuration file failed to initialize

$
0
0

I have an intel compute stick. Originally it comes with windows 8.1 and I was able to install and run sharpdevelop 5.1 in this machine. Then the free upgrade came, and now I have windows 10 home version installed. But sharpdevelop was unable to run with "Configuration file failed to initialize". Some articles said that I have to modify the machine.config file. I managed to find the file, but when I opened it I cannot read the content due to some unrecognized character. I tried several text editor with no success.

I have another machine, an old dell mini 10v with windows 10 enterprise edition. I can install and run sharpdevelop successfully with this machine. When I open the machine.config file, I am still unable to read the content. So I thought I can copy the file and paste it to the intel compute stick. However I cannot replace the file in intel compute stick because it is used by the system.

Any suggestion to resolve this? Thank you very much in advance.


Error when Decoding large forms in a Assemby.

$
0
0

I have a Program that errors when trying to view it in the text control and not only that but cannot be saved resulting in probably manual creation that I do not know enough info for. Not only that but the cs file becomes 0 KB and when that happens the project file becomes that size as well.

Draw lines in editor

$
0
0

Hi to all.

I want to draw lines for connect start and end of a block (if, for, etc), like VS2015 or Notepad++. I make a service as TextMarkerService used by ErrorPainter. But in that case, it draw a polygon (similar to a vertical line). I have to draw a vertical line. I've calculated start and end positions of lines, but if I scroll text, lines don't scroll. I think is a problem with calculating position considering actual visual lines.

How can I calculate start and end positions (as Point)?

 

Thanks a lot.

Andrea

getting to know SD with .Net VB

$
0
0

Hello,

appreciate your help to start with clearing this two building errors, as I am starting with this learning curve.

Build started.
Warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.Web", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
Compiling MVCApplication
Error BC2000: compiler initialization failed unexpectedly: Project already has a reference to assembly Microsoft.VisualBasic. A second reference to 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.VisualBasic.dll' cannot be added.
Build failed. (00:00:02.9471686)

The current platform set by default; any cpu but and understand the System.Web  filename must be pointing to something like GAC_32.

Thanks a lot!

 

Run/Debug Configurations

$
0
0

After being in Java land for a while it became very confusing how to debug a project.

I had to search the forums to find this http://community.sharpdevelop.net/forums/p/6367/18185.aspx

Project - Project Options - Debug Tab - Start Options/Command line arguments.

That is a long way from the Debug Menu!

Compare this to Intellij IDEA - There is a a list of run configurations in the toolbar. You select the one you want and click the run/debug button next to it to run/debug it or you click the Edit Configurations button in the drop down to edit the config.

IDEA Debug configs

Another option they have is "Show this page" so that you can have one config and change/check the parameters before you run each time.

 

Is there any chance of options like this coming to SharpDevelop?

Crash on "Goto Definition"

$
0
0

I tried to switch from VisualStudio to SharpDevelop.

In my app I included the lib EAGetMail.dll

Once I try to "Goto Definition" on the constructor "new Mail(string)" , which is from the lib, then SharpDevelop crashes with the message below.

Trying to debug my app results into the same issue, as soon as the function with this constructor is entered.

 

The error message is:

SharpDevelop Version : 5.1.0.5216-0e58df71

.NET Version         : 4.6.01055

OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1

Current culture      : German (Austria) (de-AT)

Current UI language  : en

Running under WOW6432, processor architecture: x86-64

Working Set Memory   : 321552kb

GC Heap Memory       : 117866kb

 

Exception thrown:

System.ArgumentException: Ein Element mit dem gleichen Schlüssel wurde bereits hinzugefügt.

   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)

   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

   at ICSharpCode.NRefactory.TypeSystem.Implementation.DefaultUnresolvedAssembly.AddTypeDefinition(IUnresolvedTypeDefinition typeDefinition)

   at ICSharpCode.NRefactory.TypeSystem.CecilLoader.LoadModule(ModuleDefinition moduleDefinition)

   at Debugger.TypeSystemExtensions.LoadModule(Module module, String fileName)

   at Debugger.TypeSystemExtensions.<>c__DisplayClass3_0.<LoadModuleAsync>b__0()

   at System.Threading.Tasks.Task`1.InnerInvoke()

   at System.Threading.Tasks.Task.Execute()

 

---- Recent log messages:

16:36:37.780 [41] DEBUG - Received command ReportEvent

16:36:37.780 [41] DEBUG - Received command ReportEvent

16:36:37.781 [41] DEBUG - Received command ReportEvent

16:36:37.781 [41] DEBUG - Received command ReportEvent

16:36:37.783 [41] DEBUG - Received command ReportEvent

16:36:37.783 [41] DEBUG - Received command ReportEvent

16:36:37.861 [41] DEBUG - Received command ReportEvent

16:36:37.862 [41] DEBUG - Received command ReportEvent

16:36:37.863 [41] DEBUG - Received command ReportEvent

16:36:37.864 [41] DEBUG - Received command ReportEvent

16:36:37.865 [41] DEBUG - Received command ReportEvent

16:36:37.869 [41] DEBUG - Received command ReportEvent

16:36:37.882 [41] DEBUG - Received command ReportEvent

16:36:37.883 [41] DEBUG - Received command ReportEvent

16:36:37.883 [41] DEBUG - Received command BuildDone

16:36:37.883 [41] INFO - Finished building GetFinalService, success=True

16:36:37.883 [41] INFO - Start building

16:36:37.883 [21] INFO - Finished building , success=True

16:36:37.884 [1] INFO - Debugger Command: Start (withDebugger=True)

16:36:37.887 [1] INFO - Saving layout file: C:\Users\001121578\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Default.xml

16:36:37.888 [1] INFO - Loading layout file: C:\Users\001121578\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml, hideAllLostPads=False

16:36:37.989 [1] DEBUG - ChooseLayoutCommand.LayoutChanged(object,EventArgs)

16:36:37.989 [1] DEBUG - ChooseLayoutCommand.Run()

16:36:37.989 [1] INFO - Saving layout file: C:\Users\001121578\AppData\Roaming\ICSharpCode\SharpDevelop5\layouts\Debug.xml

16:36:40.385 [1] ERROR - ThreadException caught

--> Exception:

System.ArgumentException: Ein Element mit dem gleichen Schlüssel wurde bereits hinzugefügt.

   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)

   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)

   at ICSharpCode.NRefactory.TypeSystem.Implementation.DefaultUnresolvedAssembly.AddTypeDefinition(IUnresolvedTypeDefinition typeDefinition)

   at ICSharpCode.NRefactory.TypeSystem.CecilLoader.LoadModule(ModuleDefinition moduleDefinition)

   at Debugger.TypeSystemExtensions.LoadModule(Module module, String fileName)

   at Debugger.TypeSystemExtensions.<>c__DisplayClass3_0.<LoadModuleAsync>b__0()

   at System.Threading.Tasks.Task`1.InnerInvoke()

   at System.Threading.Tasks.Task.Execute()

 

---- Post-error application state information:

Installed 3rd party AddIns:

ProjectService.CurrentSolution: [Solution C:\c2k\WorkSpace_VisualStudio\SharpDevelop\GetFinalService\GetFinalService\GetFinalService.sln with 4 projects]

ProjectService.CurrentProject: [CSharpProject: GetFinalService]

Workbench.ActiveContent: [AvalonEditViewContent C:\c2k\WorkSpace_VisualStudio\SharpDevelop\GetFinalService\GetFinalService\StartClasses\MainClass.cs]

ILSpy batch processing?

$
0
0

I want to process about 100 binary files by ILSpy.

Is it possible to run ILSpy in batch mode from cmd and then redirect output to some file?

 

 

Release 5.1

$
0
0

Hello!

I'm new to SharpDevelop and have some questions. We plan to integrate SharpDevelop to our product, I have seen that 5.1 has been released in April, but there is no release-tag available on GitHub. Is there another source control Sharp Develop is build from?

Another question: If I try to run Unit Tests using script "buildSetupAndRunTests.bat" Unit Tests fail (using the current source from github)

 Tests run: 163, Errors: 0, Failures: 2, Inconclusive: 0, Time: 2,63509307676471 seconds

   Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0

 

 Errors and Failures:

 1) Test Failure : ICSharpCode.XamlBinding.Tests.ResolveContextTests.ParentElementTestSimple1

      Expected string length 8 but was 4. Strings differ at index 0.

   Expected: "CheckBox"

   But was:  "Grid"

   -----------^

 

 at ICSharpCode.XamlBinding.Tests.ResolveContextTests.ParentElementTestSimple1()

 

 2) Test Failure : ICSharpCode.XamlBinding.Tests.ResolveContextTests.ParentElementTestSimple2

      Expected string length 4 but was 22. Strings differ at index 4.

   Expected: "Grid"

   But was:  "Grid.ColumnDefinitions"

   ---------------^

 at ICSharpCode.XamlBinding.Tests.ResolveContextTests.ParentElementTestSimple2()

 

And a third question: I've created a pull request on github

https://github.com/icsharpcode/SharpDevelop/pull/759

If something missing here, because it hasn't been merged yet.

 

Thanks a lot for answers.

 


References of SharpSnippetCompiler missing

$
0
0

Dear all,

 

I was trying to take a look at the SharpSnippetCompiler under "samples". The project "SharpSnippetCompiler.Core" is referencing, amonst others, the following two dlls:

 

  • ICSharpCode.SharpDevelop.Dom
  • ICSharpCode.SharpDevelop.Sda

 

However, when trying to build SharpSnippetCompiler those two libraries are missing. I have previously built the SharpDevelop solution before, so all other SharpSnippetCompiler's references can be resolved, except those two.

 

I am using "Microsoft Visual Studio 2015 Community Edition" to build both, SharpDevelop as well as SharpSnippetCompiler. I am using yesterday's sourcecode.

 

Any hints how I can get those dlls and to get SharpSnippetCompiler running?

 

Greetings

 

Moor

Problem with local server

$
0
0

I have just installed SharpDevelop and it seem to have been correctly installed. However, an exception is thrown when I attempt to run a web application. I am not sure if I must explicitly link up the IDE with my local server[microsoft's iis express] or if that happens automatically or maybe I just dont understand what the exception is about. The exception says 'a debugger is attached to iisexpress.exe but not cpnfigured to debug this unhandled exception. To debug this excpetion, detach the current debugger.'

My problem is that I also have Visual Studio installed on the same machine and I do not want to tamper with its settings at this stage but would like to use the same server for both SharpDevelop and Visual Studio. Can anyone help?

Question on using SharpZipLib in closed source applications

$
0
0

From what I read in the license terms it says:

"Bottom line In plain English this means you can use this library in commercial closed-source applications. "

 

Do I have to pack any Credtis file or other manifest to the distribution of my closed source product?

 

 

--

Christoph

 

Preventing delete of the file from zip

$
0
0

I use a password to zip some files. I can open that zip file using &zip utility and can delete a file. How can I prevent users from doing this? Means, is there anything we can do while zipping that can prevent users from deleting a file from the zip. Any help appreciated.

How to Create a Custom Control Library or a User Control Library

$
0
0

I'm missing the possibility to create a Custom Control Library or a User Control Library in the project wizard of SD. Is there a workaround?

IDE Shortcuts

$
0
0

Having used Delphi for around 20 years, I'm used to IDE shortcuts. For example, switching between Design and Source views by pressing F12.  Is there a way to define shortcut keys in #Develop 4.4?  I found a thread about doing that in version 3.X, but that didn't seem to apply to 4.4.

Awesome product, BTW.

 

Windows layout lost after run compiled

$
0
0

I'm used to open files in the left and right window layouts.

Each time I run compiled, all files go back in the same layout.

Is there a way (option, bypassing) to avoid this confused mix.


How to set read-only file property ?

$
0
0

Is there a way to set a read-only file property on specific files or all files in a project for instance ?

Thanks

Uncomment tool

$
0
0

Sharp develop supports commenting a block of code using a toolbar button but I could not find any tool to uncomment that. Is it available ?

Further, some code editors allows you to do select vertically by clicking on ALT button. If that feature was there, then I am still able to do this. (Check this http://notepad-plus.sourceforge.net/uk/site.htm) I do not think it is a easy task to implement this feature but it is really usefull. So you guys may add it to your plans

 

Prevent delete of files from zip

$
0
0

I use a password to zip some files. I can open that zip file using  a 7zip utility and can delete a file. How can I prevent users from doing this? Means, is there anything we can do while zipping that can prevent users from deleting a file from the zip. Any help appreciated.

 

Update: I cannot delete a file from one of the created zip files. It throws error "Cannot delete a file or folder". Not sure how I created that zip file.  I noticed that each zip entry has its Attribute set to "An". How do I make this happen (means add attribute "An" to each entry). which might solve my problem.

Add Formatting Toolbar In SharpDevelop IDE

$
0
0

Please add formatting toolbar in SharpDevelop IDE so that user need not got to format menu. If possible, please add all the toolbars that are available in Visual Studio

system.nullRefereneceEception Object reference not set

$
0
0

I write a small edit  i put text editor on a form and text to serach in another form i define delegate event but when fire the action send this error.

this the form where i write the text to find.

namespace editorlcc
{
    ///<summary>
    /// Description of FormFind.
    ///</summary>
    publicpartialclassFormFind : Form
    {
        
        publicMainFormmform;
        publicFormEditfmedit;
        
        publicdelegatevoid FindEditFile(string texto);
        publicevent FindEditFile SearchEditFile;
        
        publicFormFind(MainForm mform )
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
            InitializeComponent();
            this.mform = mform;

//            FormEdit fmedit= new FormEdit(mform);
//          fmedit= new FormEdit(mform);

            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
        }
        
        voidBtnFindClick(object sender, EventArgs e)
        { 
//          if(SearchEditFile != null)
//          {
              string TextFind=this.textBox1.Text;
              SearchEditFile( TextFind);
//              fmedit.FindTextEditFile(this.textBox1.Text);
            
//          }
        }
        
        voidFormFindLoad(object sender, EventArgs e)
        {
//            fmedit = new FormEdit(mform);
//            public delegate void FindEditFile(string texto);
//            public event FindEditFile SearchEditFile;
           
        }
        
    }
}

 

this the form for my editor file

namespace editorlcc
{
    ///<summary>
    /// Description of FormEdit.
    ///</summary>
    publicpartialclassFormEdit : Form
    {
        

        privateMainFormmform;
        publicFormFindfmfind;
        
//        public string tokens;
//        private string tokensmd;
//        private Regex rex ;
        publicRegexkeyWords = newRegex("mf|mn|tm|sg|sd|tc|ig|il|ic|eq|sq|,|;");
        publicRegexmacrodef = newRegex("md|mj");
        publicRegexspecialchars = newRegex(",|.|;");
        publicFormEdit(MainForm mform)
        {
            //
            // The InitializeComponent() call is required for Windows Forms designer support.
            //
//            FormFind  fmfind;
            
            InitializeComponent();
            this.mform = mform;
            this.fmfind = newFormFind(mform);
            
            mform.updatetextedit          += newMainForm.updateedit(updateprg);
            mform.return_rtftext          += newMainForm.get_richtextbox(getprgedit);
            mform.updated_title_edit      += newMainForm.update_title_edit(TitleWndedit);
            mform.sentfiletocontroler     += newMainForm.sendfiletocontroler(Sendtext);
            mform.curlineoneditfile       += newMainForm.getPositiononEdit(LinePosition);
            mform.CleanEditFile           += newMainForm.ClearEditFile(CleanTextEdit);
            mform.CopiedEditFile          += newMainForm.CopyEditFile( CopyTextEdit);
            mform.SelectedAllEditFile     += newMainForm.SelectEditFile( SelectedTextEdit);
            mform.SelectedPartialEditFile += newMainForm.SelectPartialEditFile(SelectPartTextEdit);
            mform.CutedEditFile       += newMainForm.CutEditFile(CutTextEdit);
            mform.DeselectedEditFile  += newMainForm.DeselectEditFile(DeselectTextEdit);
            mform.PastedEditFile      += newMainForm.PasteEditFile(PasteTextEdit);
            mform.ChangeFontEditFile  += newMainForm.changefontEdit(ChangeFontTextEdit);
            mform.UndoTextEditFile    += newMainForm.UndoEditFile(UndoChangeEdit);
            mform.DeletedTextEditFile += newMainForm.DeleteEditFile(DelEditTextFile);
            
//            fmfind.SearchEditFile     += new FormFind.FindEditFile(FindTextEditFile);
            fmfind.SearchEditFile     += newFormFind.FindEditFile(FindTextEditFile);
            //
            // TODO: Add constructor code after the InitializeComponent() call.
            //
        }
        
        voidFormEditShown(object sender, EventArgs e)
        {
    
        }

        publicvoidFindTextEditFile( string findtext)
        {
            if(richTextBoxEx1.Text.Length >0)
            {
              this.richTextBoxEx1.Find(findtext);
            }
        }

  }

}

 

I dont know if my fault is how i define de delegates or whats is wrong on this

i hope can help me.

thanks.

 

Viewing all 1764 articles
Browse latest View live