These are chat archives for mono/monodevelop

1st
Feb 2018
Marius Ungureanu
@Therzok
Feb 01 16:12
@germgerm it seems like you're hitting the max files open limit
/home/gerry/.nuget/packages/monodevelop.addins/0.4.1/build/MonoDevelop.Addins.targets(105,5): error MSB4018: System.IO.IOException: Too many open files
Which I assume can be bumped with ulimit
Mikayla Hutchinson
@mhutch
Feb 01 16:22
yeah ulimit will fix that
Mikayla Hutchinson
@mhutch
Feb 01 16:27
seems odd it's running out of handles so quickly
maybe msbuild?
g
@germgerm
Feb 01 16:33
ulimit is set to unlimited - I am attempting to compile from source and am running into a number of issues. A basic make install is looking for the bin directory at /usr/lib/monodevelop/bin but it is actually at /usr/local/lib/monodevelop/bin - changed GetDefaultMonoDevelopLocations to resolve. When I tried to build using the p:MDBinDir I had to specify a full path at which time it tried to process every assembly under monodevelop.
g
@germgerm
Feb 01 17:14
Going back to scratch, I removed AddinMaker directory, recloned and tried make install
It seemed as if things were maybe being built out of order due to builds dependency on AddinMaker itself so I tried Make install a few times but am always getting the same :
CoreCompile:
  /usr/lib/mono/4.5/csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG /highentropyva+ /reference:/usr/lib/mono/4.6.1-api/mscorlib.dll /reference:/usr/lib/mono/4.6.1-api/System.Core.dll /reference:/usr/lib/mono/4.6.1-api/System.dll /reference:/usr/lib/mono/4.6.1-api/System.Xml.dll /debug+ /debug:portable /optimize- /out:obj/Debug/MonoDevelop.AddinMaker.dll /subsystemversion:6.00 /resource:Properties/Manifest.addin.xml,Manifest.addin.xml /resource:"images/project-addin-32~dark~sel.png","MonoDevelop.AddinMaker.images.project-addin-32~dark~sel.png" /resource:"images/project-addin-32~dark~sel@2x.png","MonoDevelop.AddinMaker.images.project-addin-32~dark~sel@2x.png" /resource:"images/project-addin-32~dark.png","MonoDevelop.AddinMaker.images.project-addin-32~dark.png" /resource:"images/project-addin-32~dark@2x.png","MonoDevelop.AddinMaker.images.project-addin-32~dark@2x.png" /resource:"images/project-addin-32~sel.png","MonoDevelop.AddinMaker.images.project-addin-32~sel.png" /resource:"images/project-addin-32~sel@2x.png","MonoDevelop.AddinMaker.images.project-addin-32~sel@2x.png" /resource:images/project-addin-32.png,MonoDevelop.AddinMaker.images.project-addin-32.png /resource:"images/project-addin-32@2x.png","MonoDevelop.AddinMaker.images.project-addin-32@2x.png" /resource:"images/project-addin-template~dark.png","MonoDevelop.AddinMaker.images.project-addin-template~dark.png" /resource:"images/project-addin-template~dark@2x.png","MonoDevelop.AddinMaker.images.project-addin-template~dark@2x.png" /resource:images/project-addin-template.png,MonoDevelop.AddinMaker.images.project-addin-template.png /resource:"images/project-addin-template@2x.png","MonoDevelop.AddinMaker.images.project-addin-template@2x.png" /target:library /utf8output AddinProjectConfiguration.cs Properties/AssemblyInfo.cs Properties/AddinInfo.cs AddinReferencePropertyProvider.cs AddinReference.cs AddinCommands.cs AddAddinReferenceDialog.cs AddinHelpers.cs AddinMSBuildGlobalPropertyProvider.cs Editor/AddinManifestEditorExtension.cs Editor/ProjectTemplateEditorExtension.cs Editor/FileTemplateEditorExtension.cs Editor/SchemaBasedEditorExtension.cs Editor/SchemaAttribute.cs Editor/SchemaElement.cs Editor/ManifestSchema/RuntimeSchemaItem.cs Editor/ManifestSchema/DependenciesSchemaItem.cs Editor/ManifestSchema/ModuleSchemaItem.cs Editor/ManifestSchema/LocalizerSchemaItem.cs Editor/ManifestSchema/ExtensionNodeDefinitionElement.cs Editor/ManifestSchema/ExtensionPointElement.cs AddinBrowser/AddinNavigationPoint.cs AddinBrowser/AddinBrowserWidget.cs AddinBrowser/AddinBrowserViewContent.cs AddinBrowser/ExtensionPointNodeBuilder.cs AddinBrowser/DependencyFolderNodeBuilder.cs AddinBrowser/ExtensionPointFolderNodeBuilder.cs AddinBrowser/ExtensionNodeBuilder.cs AddinBrowser/ExtensionFolderNodeBuilder.cs AddinBrowser/AddinNodeBuilder.cs AddinBrowser/ModuleNodeBuilder.cs AddinBrowser/ModulesFolderNodeBuilder.cs AddinBrowser/AssembliesFolderNodeBuilder.cs AddinBrowser/FilesFolderNodeBuilder.cs AddinBrowser/AddinAssembly.cs AddinBrowser/AddinFile.cs AddinBrowser/AddinAssembliesFolder.cs AddinBrowser/AddinFilesFolder.cs AddinBrowser/AddinAssemblyNodeBuilder.cs AddinBrowser/AddinFileNodeBuilder.cs AddinBrowser/AddinTreeView.cs AddinBrowser/AddinDependencyNodeBuilder.cs AddinProjectNeedsMigrationFlavor.cs AddinProjectFlavor.cs AddinReferenceCollection.cs Editor/ManifestSchema/ExtensionNodeSetElement.cs Editor/ManifestSchema/ExtensionNodeElement.cs Editor/ManifestSchema/ExtensionElement.cs NodeBuilders/AddinReferenceNodeBuilder.cs NodeBuilders/AddinReferencesNodeBuilder.cs NodeBuilders/AddinProjectNodeBuilder.cs "/tmp/.NETFramework,Version=v4.6.1.AssemblyAttributes.cs"
Properties/AddinInfo.cs(4,12): error CS0246: The type or namespace name 'AddinAttribute' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(4,12): error CS0246: The type or namespace name 'Addin' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(11,12): error CS0246: The type or namespace name 'AddinNameAttribute' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(11,12): error CS0246: The type or namespace name 'AddinName' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(12,12): error CS0246: The type or namespace name 'AddinCategoryAttribute' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(12,12): error CS0246: The type or namespace name 'AddinCategory' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(13,12): error CS0246: The type or namespace name 'AddinDescriptionAttribute' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(13,12): error CS0246: The type or namespace name 'AddinDescription' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(14,12): error CS0246: The type or namespace name 'AddinAuthorAttribute' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(14,12): error CS0246: The type or namespace name 'AddinAuthor' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(6,2): error CS0246: The type or namespace name 'Namespace' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(7,2): error CS0246: The type or namespace name 'Version' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(8,2): error CS0246: The type or namespace name 'Url' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
AddinProjectConfiguration.cs(1,19): error CS0234: The type or namespace name 'Projects' does not exist in the namespace 'MonoDevelop' (are you missing an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(1,7): error CS0246: The type or namespace name 'Mono' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
Properties/AddinInfo.cs(2,7): error CS0246: The type or namespace name 'Mono' could not be found (are you missing a using directive or an assembly reference?) [/home/gerry/AddinMaker/AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
...
Alexander Jochum
@DarkCloud14
Feb 01 18:28
@germgerm if you want you can also build an addin without AddinMaker but then you've to add the MonoDevelop references manually, which in a single dev environment isn't a huge problem but as soon as you've others working on the project AddinMaker will help a lot with automatically resolving referenced MonoDevelop dlls..
Also debugging is made easier with AddinMaker but you can handle that also without AddinMaker if you want..
g
@germgerm
Feb 01 18:46
I have to be missing something, when make compiles AddinMaker.dll I don't see any references at all to anything to do with addins - which would explain why everything is undefined -
CoreCompile:
  /usr/lib/mono/4.5/csc.exe /noconfig /nowarn:1701,1702 /nostdlib+ /errorreport:prompt /warn:4 /define:DEBUG /highentropyva+ 
    /reference:/usr/lib/mono/4.6.1-api/mscorlib.dll 
    /reference:/usr/lib/mono/4.6.1-api/System.Core.dll 
    /reference:/usr/lib/mono/4.6.1-api/System.dll 
    /reference:/usr/lib/mono/4.6.1-api/System.Xml.dll 
    /debug+ /debug:portable /optimize- 
    /out:obj/Debug/MonoDevelop.AddinMaker.dll 
    /subsystemversion:6.00 
    /resource:Properties/Manifest.addin.xml,Manifest.addin.xml 
...
Alexander Jochum
@DarkCloud14
Feb 01 18:50
Not sure how the resolving is done when you use AddinMaker but as far as I see building AddinMaker requires AddinMaker to be installed or so
So if you don't have a working AddinMaker you can't build AddinMaker I guess, but I could be wrong here..
Marius Ungureanu
@Therzok
Feb 01 19:10
So, for references to be resolved, the MSBuild tasks from AddinMaker should be resolving MonoDevelop
so, the question is, is the monodevelop addin registry properly? I assume so, as a normal run of MonoDevelop does re-create the db if it's broken
It seems like when building AddinMaker, it expects monodevelop repository to be side-by-side
Marius Ungureanu
@Therzok
Feb 01 19:17
It doesn't necessarily need it installed, you can build it from commandline
It uses the nugets as bootstrap, so it should just work™
Marius Ungureanu
@Therzok
Feb 01 19:51
So, the only thing I see the need of AddinMaker being installed is having IDE integration for UI (i.e. showing addin references nodes, adding addin references, etc)
Mikayla Hutchinson
@mhutch
Feb 01 19:54
the msbuild build targets that come via nuget handle all the build/packaging logic
Alexander Jochum
@DarkCloud14
Feb 01 19:56
I think the problem is that at least on linux latest version of AddinMaker with MD 7.3.3 or later doesn't work at all and you get the errors @germgerm mentioned earlier.
the only thing I'm not sure about is if it's a problem of AddinMaker or the linux runtime of mono ...
I could reproduce it but a few minutes ago I update mono to 5.8.0 in my Linux VM and now MD doesn't work correctly anymore..
Mikayla Hutchinson
@mhutch
Feb 01 19:59
the addinmaker extension just allows you to create extension projects, add extension references, and run the extension with the debugger
all the build logic is in the package reference
my guess is that you need to restore nuget packages
msbuild /t:restore; msbuild
in the case of the new project at least
also - are you using xbuild or msbuild?
i doubt xbuild works
Alexander Jochum
@DarkCloud14
Feb 01 20:03
I can't say much about this anymore as my Linux VM is broken and in a state now that nothings works correctly anymore regarding mono but as I develop with VS for Mac and only test my addin on linux MD that isn't a huge problem for me..
I just tried to help @germgerm , tested if I could reproduce his problem and find a solution..
Alexander Jochum
@DarkCloud14
Feb 01 20:08
I opt out here as I can't contribute anything helpful
g
@germgerm
Feb 01 20:13
I looked through the project files and determined that the undefined's were because Tasks hadn't yet been built so I manually did msbuild *.csproj from the Tasks project directory - that resolved the undefineds but now I am back to the too many files - strace doesn't show anything obvious
g
@germgerm
Feb 01 20:21
@mhutch msbuild - building the new project from the command line hits the missing /usr/lib/monodevelop issue - I created a symlink to /usr/local/lib/monodevelop - now the build once again hits the too many files - so I am now hitting the same wall compiling either a new addin project or the addinmaker itself
Zhmayev Yaroslav
@salaros
Feb 01 20:29

=== ADDIN CREATORS ===

Heads up!
I've contacted @migueldeicaza regarding http://addins.monodevelop.com/ issue and after a short discussion
@mhutch has kindly implemented a workaround for those who had their addin builds stuck (e.g. my addin "WakaTime")
Now one can simply upload .mpack files manually!!! Yay!
Thank you @migueldeicaza and @mhutch!
image.png
Marius Ungureanu
@Therzok
Feb 01 20:29
@germgerm are you passing the path to monodevelop?
Alexander Jochum
@DarkCloud14
Feb 01 20:32
@salaros great news, thanks for the information!
Harry
@cra0zy
Feb 01 20:40
I don't think there was a single version of addin maker which actually worked properly out of the box on MD Linux
g
@germgerm
Feb 01 20:45
@Therzok I am trying it both ways - in both cases I am running in to 'too many files'
make install ARGS="/p:MDBinDir=/home/gerry/.setup/MD/monodevelop/main/build/bin /p:MDProfileVersion=7.0"
make install
Marius Ungureanu
@Therzok
Feb 01 20:50
make && make install?
make install doesn't have a dependency on amke
g
@germgerm
Feb 01 20:53
both
Marius Ungureanu
@Therzok
Feb 01 20:58
which distro is this?
ulimit prints unlimited, but the file handle limit is not unlimited
it's usually capped at 1024
the other option I see there is that there is a symlink that somehow can go infinitely recursive

so like, you have

/a/b
/a/b/c -> /a/b

and it infinitely traverse

traverses*
g
@germgerm
Feb 01 21:06
xubuntu
$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 17.10
Release:    17.10
Codename:    artful
g
@germgerm
Feb 01 22:08
no circular links found using : sudo find / -follow -printf ""
max files is huge, using sysdig, during the compile mono opens 1100 files well below the limit BUT is above the ulimit soft limit - changing the softlimit to 10000 fixes the too many files
~$ ulimit
unlimited
~$ ulimit -Hn
1048576
~$ ulimit -Sn
1024
~$ cat /proc/sys/fs/file-max
397340
now running into - missing AspNet & Autotools 7.4
Build FAILED.

"...AddinMaker/MonoDevelop.AddinMaker.sln" (default target) (1) ->
"...AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj" (default target) (2) ->
(_MDResolveAddinReferences target) -> 
  ...AddinMaker/MonoDevelop.Addins.Tasks/bin/Debug/MonoDevelop.Addins.targets(125,5): warning : The add-in '__MonoDevelop.CSharpBinding.AspNet,0.0.0.0' could not be updated because some of its dependencies are missing or not compatible: [...AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
...AddinMaker/MonoDevelop.Addins.Tasks/bin/Debug/MonoDevelop.Addins.targets(125,5): warning :   missing: AspNet,7.4 [...AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
  ...AddinMaker/MonoDevelop.Addins.Tasks/bin/Debug/MonoDevelop.Addins.targets(125,5): warning : The add-in '__MonoDevelop.CSharpBinding.Autotools,0.0.0.0' could not be updated because some of its dependencies are missing or not compatible: [...AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
...AddinMaker/MonoDevelop.Addins.Tasks/bin/Debug/MonoDevelop.Addins.targets(125,5): warning :   missing: Autotools,7.4 [...AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]


"...AddinMaker/MonoDevelop.AddinMaker.sln" (default target) (1) ->
"...AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj" (default target) (2) ->
(_MDResolveAddinReferences target) -> 
  ...AddinMaker/MonoDevelop.Addins.Tasks/bin/Debug/MonoDevelop.Addins.targets(125,5): error : There was an error while scanning assembly: /home/gerry/.setup/MD/monodevelop/main/build/AddIns/MonoDevelop.UnitTesting/VsTestConsole/x64/msdia140.dll: System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid. [...AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
...AddinMaker/MonoDevelop.Addins.Tasks/bin/Debug/MonoDevelop.Addins.targets(125,5): error :   at Mono.Cecil.PE.ImageReader.ReadOptionalHeaders (System.UInt16& subsystem, System.UInt16& dll_characteristics) [0x00067] in <fc739723e5a84499ae9c2d77c0b7f0fd>:0  [...AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
...
...AddinMaker/MonoDevelop.Addins.Tasks/bin/Debug/MonoDevelop.Addins.targets(125,5): error :   at Mono.Addins.Database.AddinScanner.ScanAssembly (Mono.Addins.IProgressStatus monitor, System.String filePath, Mono.Addins.Database.AddinScanResult scanResult, Mono.Addins.Description.AddinDescription& config) [0x0000e] in <986f8be547534289b2a0232bc26702be>:0  [...AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
  ...AddinMaker/MonoDevelop.Addins.Tasks/bin/Debug/MonoDevelop.Addins.targets(125,5): error : There was an error while scanning assembly: /home/gerry/.setup/MD/monodevelop/main/build/AddIns/MonoDevelop.UnitTesting/VsTestConsole/x86/msdia140.dll: System.BadImageFormatException: Format of the executable (.exe) or library (.dll) is invalid. [...AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
...AddinMaker/MonoDevelop.Addins.Tasks/bin/Debug/MonoDevelop.Addins.targets(125,5): error :   at Mono.Cecil.PE.ImageReader.ReadOptionalHeaders (System.UInt16& subsystem, System.UInt16& dll_characteristics) [0x00067] in <fc739723e5a84499ae9c2d77c0b7f0fd>:0  [...AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
...
...AddinMaker/MonoDevelop.Addins.Tasks/bin/Debug/MonoDevelop.Addins.targets(125,5): error :   at Mono.Addins.CecilReflector.Reflector.LoadAssembly (System.String file) [0x00000] in <4d7d1af62c3947eb9546bd407d4fa95b>:0  [...AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]
...AddinMaker/MonoDevelop.Addins.Tasks/bin/Debug/MonoDevelop.Addins.targets(125,5): error :   at Mono.Addins.Database.AddinScanner.ScanAssembly (Mono.Addins.IProgressStatus monitor, System.String filePath, Mono.Addins.Database.AddinScanResult scanResult, Mono.Addins.Description.AddinDescription& config) [0x0000e] in <986f8be547534289b2a0232bc26702be>:0  [...AddinMaker/MonoDevelop.AddinMaker/MonoDevelop.AddinMaker.csproj]

    2 Warning(s)
    2 Error(s)
g
@germgerm
Feb 01 23:16
monodevelop/main/build/Addins/ contains both AspNet/MonoDevelop.AspNet.dll & MonoDevelop.Autotools/MonoDevelop.Autotool.dll with Addin:Version=7.4