Search Unity

  1. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Bug Permission Denied with MonoDevelop on a Script (Project was created originally on Windows version)

Discussion in 'Linux Editor' started by CyRaid, Sep 21, 2015.

  1. CyRaid

    CyRaid

    Joined:
    Mar 31, 2015
    Posts:
    99
    System.UnauthorizedAccessException: Permission denied ---> Mono.Unix.UnixIOException: Permission denied [EACCES].
    --- End of inner exception stack trace ---
    at Mono.Unix.UnixMarshal.ThrowExceptionForLastError () [0x00000] in <filename unknown>:0
    at Mono.Unix.UnixFileSystemInfo.GetFileSystemEntry (System.String path) [0x00000] in <filename unknown>:0
    at Sharpen.Unix.UnixFileHelper.GetUnixFileInfo (System.String path) [0x00000] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/external/ngit/Sharpen.Unix/UnixFileHelper.cs:12
    at Sharpen.Unix.UnixFileHelper.LastModified (Sharpen.FilePath path) [0x00000] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/external/ngit/Sharpen.Unix/UnixFileHelper.cs:79
    at Sharpen.FilePath.LastModified () [0x00000] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/external/ngit/Sharpen/Sharpen/FilePath.cs:179
    at NGit.Storage.File.FileSnapshot.Save (Sharpen.FilePath path) [0x00000] in <filename unknown>:0
    at NGit.Storage.File.FileBasedConfig.Load () [0x00009] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/external/ngit/NGit/NGit.Storage.File/FileBasedConfig.cs:122
    at NGit.Storage.File.FileRepository.LoadSystemConfig () [0x00000] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/external/ngit/NGit/NGit.Storage.File/FileRepository.cs:193
    at NGit.Storage.File.FileRepository..ctor (BaseRepositoryBuilder options) [0x00067] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/external/ngit/NGit/NGit.Storage.File/FileRepository.cs:147
    at NGit.Storage.File.FileRepository..ctor (Sharpen.FilePath gitDir) [0x00000] in <filename unknown>:0
    at NGit.Storage.File.FileRepository..ctor (System.String gitDir) [0x00000] in <filename unknown>:0
    at MonoDevelop.VersionControl.Git.LocalGitRepository..ctor (System.String path) [0x00000] in <filename unknown>:0
    at MonoDevelop.VersionControl.Git.GitRepository..ctor (FilePath path, System.String url) [0x00024] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs:73
    at MonoDevelop.VersionControl.Git.GitVersionControl.GetRepositoryReference (FilePath path, System.String id) [0x0007f] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitVersionControl.cs:61
    at MonoDevelop.VersionControl.Git.GitVersionControl.GetRepositoryReference (FilePath path, System.String id) [0x0009c] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitVersionControl.cs:65
    at MonoDevelop.VersionControl.VersionControlService.GetRepositoryReference (System.String path, System.String id) [0x00017] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlService.cs:199
    at MonoDevelop.VersionControl.VersionControlService.GetRepository (IWorkspaceObject entry) [0x00028] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlService.cs:185
    at MonoDevelop.VersionControl.VersionControlFileSystemExtension.GetRepository (FilePath path) [0x00020] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlFileSystemExtension.cs:29
    at MonoDevelop.VersionControl.VersionControlFileSystemExtension.CanHandlePath (FilePath path, Boolean isDirectory) [0x0001b] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/VersionControlFileSystemExtension.cs:20
    at MonoDevelop.Core.FileService.GetFileSystemForPath (System.String path, Boolean isDirectory) [0x00012] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FileService.cs:283
    at MonoDevelop.Core.FileService.RequestFileEdit (System.String fileName) [0x00000] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core/FileService.cs:246
    at MonoDevelop.SourceEditor.SourceEditorView.CheckReadOnly (Int32 line) [0x0001d] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1021
    at Mono.TextEditor.TextEditorData.CanEdit (Int32 line) [0x00010] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditorData.cs:502
    at Mono.TextEditor.EditMode.InsertCharacter (UInt32 unicodeKey) [0x00000] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/EditMode.cs:115
    at Mono.TextEditor.SimpleEditMode.HandleKeypress (Key key, UInt32 unicodeKey, ModifierType modifier) [0x00043] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/SimpleEditMode.cs:421
    at Mono.TextEditor.EditMode.InternalHandleKeypress (Mono.TextEditor.TextEditor editor, Mono.TextEditor.TextEditorData data, Key key, UInt32 unicodeChar, ModifierType modifier) [0x0000e] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/EditMode.cs:49
    at Mono.TextEditor.TextArea.SimulateKeyPress (Key key, UInt32 unicodeChar, ModifierType modifier) [0x00008] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextArea.cs:913
    at Mono.TextEditor.TextEditor.SimulateKeyPress (Key key, UInt32 unicodeChar, ModifierType modifier) [0x00000] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextEditor.cs:836
    at MonoDevelop.SourceEditor.SourceEditorWidget.MonoDevelop.Ide.Gui.Content.ITextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorWidget.cs:144
    at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109
    at MonoDevelop.DocFood.DocFoodTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00008] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/MonoDevelop.DocFood/MonoDevelop.DocFood/DocFoodTextEditorExtension.cs:63
    at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109
    at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109
    at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109
    at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00099] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:100
    at MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs:204
    at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109
    at MonoDevelop.CSharp.Formatting.CSharpTextEditorIndentation.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00523] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Formatting/CSharpTextEditorIndentation.cs:357
    at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109
    at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109
    at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109
    at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109
    at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109
    at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109
    at MonoDevelop.Debugger.ExceptionCaughtTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x0005f] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ExceptionCaughtDialog.cs:439
    at MonoDevelop.SourceEditor.ExtensibleTextEditor.ExtensionKeyPress (Key key, UInt32 ch, ModifierType state) [0x00000] in /home/builduser/buildslave/monodevelop/build/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:249
     
  2. sirnuke

    sirnuke

    Joined:
    Aug 10, 2015
    Posts:
    4
    Seems pretty clearly a file permission issue. Did you copy the files over using a different UNIX user than you are running Mono as? Maybe root (sudo)? What are the file permissions (check using ls, or right click -> properties or similar) of the script?

    It'd be nice if MonoDevelop handled this better, though I wouldn't hold your breath.
     
  3. CyRaid

    CyRaid

    Joined:
    Mar 31, 2015
    Posts:
    99
    Actually it's weird.. The problem turned out to be because of git.. I even checked the permissions. I created the git when on Windows, but didn't work when in Linux.. So I removed the ".git" directory, and re-initialized it, and it worked after..
     
unityunity