monodevelop icon indicating copy to clipboard operation
monodevelop copied to clipboard

Monodevelop fails on creating binary packages - REGRESSION

Open vkurien opened this issue 8 years ago • 28 comments

(1) OS: Ubuntu 16.04. (2) Monodevelop installed from PPA at https://www.monodevelop.com/download/. Version 7.7 and build 1869. (3) Binary package creation fails for both Linux and Windows though project builds successfully. This fails even on the bare Helloworld console project. It was working for the previous version and is a serious regression from prior functionality.

Detailed version information:
MonoDevelop
Version 7.7 (build 1869)
Installation UUID: 13e1f36b-9b05-4022-b9ea-55faded21839
	GTK+ 2.24.30 (Ambiance theme)

Mono Framework MDK
Runtime:
	Mono 5.16.0.220 (tarball Mon Nov 26 17:22:46 UTC 2018) (64-bit)

NuGet
Version: 4.7.0.5148

.NET Core
Runtime: /usr/share/dotnet/dotnet
Runtime Version: 2.0.5
SDK: /usr/share/dotnet/sdk/2.1.4/Sdks
SDK Version: 2.1.4
MSBuild SDKs: /usr/lib/mono/msbuild/15.0/bin/Sdks

Build Information
Release ID: 707001869
Git revision: f0f3d1d931d44682f076dde486ecec835f705b8d
Build date: 2018-11-29 14:54:14-05

Operating System
Linux
Linux 4.4.0-140-generic #166-Ubuntu SMP Wed Nov 14 20:09:47 UTC 2018 x86_64

==
Log
==

ERROR [2018-12-03 11:17:49Z]: Disabling glib logging for the rest of the session
INFO [2018-12-03 11:17:50Z]: Add-in loaded: MonoDevelop.Deployment.Linux
WARNING [2018-12-03 11:17:50Z]: Welcome Page news feed was not found.
INFO [2018-12-03 11:17:51Z]: Add-in loaded: MonoDevelop.VBBinding
INFO [2018-12-03 11:17:52Z]: Unable to parse version from directory. '/usr/share/dotnet/sdk/NuGetFallbackFolder'
INFO [2018-12-03 11:17:55Z]: Add-in loaded: MonoDevelop.UnitTesting.NUnit
WARNING [2018-12-03 11:17:55Z]: Unknown TargetFramework '.NETFramework,Version=v1.1' is being requested from SystemAssemblyService, returning empty TargetFramework
INFO [2018-12-03 11:17:57Z]: Add-in loaded: MonoDevelop.HexEditor
INFO [2018-12-03 11:17:59Z]: Add-in loaded: MonoDevelop.Debugger.Gdb
INFO [2018-12-03 11:17:59Z]: Add-in loaded: MonoDevelop.Debugger.Soft
ERROR [2018-12-03 11:18:10Z]: Package creation failed
System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Projects.Project+<>c__DisplayClass150_0.<RunMSBuildTarget>b__0 () [0x000e2] in <3891c1397ab441a7b22edc2cdc890787>:0 
  at MonoDevelop.Projects.Project.RunMSBuildTarget (MonoDevelop.Core.ProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.TargetEvaluationContext context) [0x00345] in <3891c1397ab441a7b22edc2cdc890787>:0 
  at MonoDevelop.Projects.Project.DoRunTarget (MonoDevelop.Core.ProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.TargetEvaluationContext context) [0x003d0] in <3891c1397ab441a7b22edc2cdc890787>:0 
   --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task`1[TResult].GetResultCore (System.Boolean waitCompletionNotification) <0x7fb7b8e66530 + 0x000a2> in <0f8aeac9d63d4b8aa575761bb4e65b79>:0 
  at System.Threading.Tasks.Task`1[TResult].get_Result () <0x7fb7b8e664e0 + 0x00034> in <0f8aeac9d63d4b8aa575761bb4e65b79>:0 
  at MonoDevelop.Deployment.DefaultDeployServiceExtension.GetProjectDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.Project project, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00056] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DeployServiceExtension.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionFolderItem entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002c] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DefaultDeployServiceExtension.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionFolderItem entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00022] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DeployServiceExtension.GetProjectDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.Project project, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000e] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DeployServiceExtension.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionFolderItem entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002c] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DeployServiceExtension.GetProjectDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.Project project, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000e] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.Linux.LinuxDeployExtension.GetProjectDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.Project project, MonoDevelop.Projects.ConfigurationSelector config) [0x00001] in <bd802a9e12004cf7838e24e92f0da97c>:0 
  at MonoDevelop.Deployment.DeployServiceExtension.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionFolderItem entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002c] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DeployService.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionFolderItem entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000c] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DeployService.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionFolderItem[] entries, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00013] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.PackageBuilder.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00008] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.Targets.BinariesZipPackageBuilder.OnBuild (MonoDevelop.Core.ProgressMonitor monitor, MonoDevelop.Deployment.DeployContext ctx) [0x000dd] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Projects.Project+<>c__DisplayClass150_0.<RunMSBuildTarget>b__0 () [0x000e2] in <3891c1397ab441a7b22edc2cdc890787>:0 
  at MonoDevelop.Projects.Project.RunMSBuildTarget (MonoDevelop.Core.ProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.TargetEvaluationContext context) [0x00345] in <3891c1397ab441a7b22edc2cdc890787>:0 
  at MonoDevelop.Projects.Project.DoRunTarget (MonoDevelop.Core.ProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.TargetEvaluationContext context) [0x003d0] in <3891c1397ab441a7b22edc2cdc890787>:0 <---

ERROR [2018-12-03 11:18:10Z]: Package creation failed
System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Projects.Project+<>c__DisplayClass150_0.<RunMSBuildTarget>b__0 () [0x000e2] in <3891c1397ab441a7b22edc2cdc890787>:0 
  at MonoDevelop.Projects.Project.RunMSBuildTarget (MonoDevelop.Core.ProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.TargetEvaluationContext context) [0x00345] in <3891c1397ab441a7b22edc2cdc890787>:0 
  at MonoDevelop.Projects.Project.DoRunTarget (MonoDevelop.Core.ProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.TargetEvaluationContext context) [0x003d0] in <3891c1397ab441a7b22edc2cdc890787>:0 
   --- End of inner exception stack trace ---
  at System.Threading.Tasks.Task`1[TResult].GetResultCore (System.Boolean waitCompletionNotification) <0x7fb7b8e66530 + 0x000a2> in <0f8aeac9d63d4b8aa575761bb4e65b79>:0 
  at System.Threading.Tasks.Task`1[TResult].get_Result () <0x7fb7b8e664e0 + 0x00034> in <0f8aeac9d63d4b8aa575761bb4e65b79>:0 
  at MonoDevelop.Deployment.DefaultDeployServiceExtension.GetProjectDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.Project project, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00056] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DeployServiceExtension.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionFolderItem entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002c] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DefaultDeployServiceExtension.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionFolderItem entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00022] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DeployServiceExtension.GetProjectDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.Project project, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000e] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DeployServiceExtension.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionFolderItem entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002c] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DeployServiceExtension.GetProjectDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.Project project, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000e] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.Linux.LinuxDeployExtension.GetProjectDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.Project project, MonoDevelop.Projects.ConfigurationSelector config) [0x00001] in <bd802a9e12004cf7838e24e92f0da97c>:0 
  at MonoDevelop.Deployment.DeployServiceExtension.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionFolderItem entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0002c] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DeployService.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionFolderItem entry, MonoDevelop.Projects.ConfigurationSelector configuration) [0x0000c] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.DeployService.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.SolutionFolderItem[] entries, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00013] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.PackageBuilder.GetDeployFiles (MonoDevelop.Deployment.DeployContext ctx, MonoDevelop.Projects.ConfigurationSelector configuration) [0x00008] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
  at MonoDevelop.Deployment.Targets.BinariesZipPackageBuilder.OnBuild (MonoDevelop.Core.ProgressMonitor monitor, MonoDevelop.Deployment.DeployContext ctx) [0x000dd] in <4f1b4058d51d4d4baa06ff20d176b969>:0 
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Projects.Project+<>c__DisplayClass150_0.<RunMSBuildTarget>b__0 () [0x000e2] in <3891c1397ab441a7b22edc2cdc890787>:0 
  at MonoDevelop.Projects.Project.RunMSBuildTarget (MonoDevelop.Core.ProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.TargetEvaluationContext context) [0x00345] in <3891c1397ab441a7b22edc2cdc890787>:0 
  at MonoDevelop.Projects.Project.DoRunTarget (MonoDevelop.Core.ProgressMonitor monitor, System.String target, MonoDevelop.Projects.ConfigurationSelector configuration, MonoDevelop.Projects.TargetEvaluationContext context) [0x003d0] in <3891c1397ab441a7b22edc2cdc890787>:0 <---

INFO [2018-12-03 11:18:17Z]: 

vkurien avatar Dec 03 '18 19:12 vkurien

Sorry about the large fonts, No idea why they appeared

vkurien avatar Dec 03 '18 19:12 vkurien

Fixed up the formatting of the issue.

Therzok avatar Dec 03 '18 22:12 Therzok

Some line numbers would help here.

Therzok avatar Dec 03 '18 22:12 Therzok

What kind of line numbers are you referring to? These are from monodevelop text logs.

This issue also appears on a fresh install of Ubuntu 18.04 - so it affects both LTS versions of Ubuntu.

vkurien avatar Dec 04 '18 01:12 vkurien

@vkurien are PDBs shipped with MonoDevelop? You need to provide --debug to the start arguments for the stacktraces to show line number mapping.

Therzok avatar Dec 04 '18 05:12 Therzok

Thanks. Please bear with me here, I'm new to C# - since my background has been c++, python and golang. (1) I installed monodevelop from the Ubuntu bionic repository and added the debug symbols package. (2) monodevelop command line does not take a --debug flag and passing a --debug flag in the command line does not result in any line numbers in the log. As the logs indicate, this is a monodevelop issue that is present on both released version of Linux that was NOT present in the prior 7.5 version. Even worse, the 7.5 version has been removed from the PPA so I can't even downgrade.

It should be a very easy repro for the mono devs since it fails even with a the bare bones hello world project.

vkurien avatar Dec 04 '18 15:12 vkurien

A look see at the packages indicates that all the package builder did is to create a gzipped tarball of the release directory and added a shell script (which was NOT chmodded to be executable - another bug). I'll take care of that myself after doing the build. However, the makefile build project is broken as well.

vkurien avatar Dec 04 '18 17:12 vkurien

If it's a regression, what was the version where this was working?

knocte avatar Dec 06 '18 10:12 knocte

It worked last week in Ubuntu 16.04 and I believe the version was 7.5. The problem showed itself after an apt-get upgrade this week (Monday). But I don't see any prior history in the debian repository so I cannot confirm this and my apt-cache was blown away during a system upgrade to Ubuntu 18.04, else, I'd have downgraded.

vkurien avatar Dec 06 '18 15:12 vkurien

Hello? Is this another WONTFIX? I'd have thought that this would have made the triage bar

vkurien avatar Dec 19 '18 22:12 vkurien

also experiencing this, stopped working in current 16.04 ubuntu package (7.7).

pracplayopen avatar Dec 29 '18 04:12 pracplayopen

Hello, I am having same problem. I am running Mint 18.3 and I have two MonoDevelop installations, one in each VM. Both VMs are running the same version of Mint.

One VM is using Flatpak MonoDevelop (7.3.3 built 5, Mono 5.18.0.240) and I can use Project > Create Package > "Archive of Binaries" and it successfully producing a tar.gz file.

In the VM that does NOT use Flatpak MonoDevelop, that is it is a normal apt installed MonoDevelop, (7.7 (build 1869). Mono Version Mono version 5.18.0.225, using the same test library project, when instructed to produce the package, it simply runs through the normal process without error and then displaying "Package creation failed" and no tar.gz package file produced. I have followed the instructions in MonoDevelop web sites to install the key and apt-install all the monodevel etc packages.

I have also observed operational differences between Flatpak-MD and non-Flatpak-MD. For example, the Mono Documentation viewer is working in Flatpak-MD but failing in non-Flatpak-MD.

Are we supposed to be using Flatpak-MD?

Both MD versions do not produce the .pc file when the "Generate .pc file for the library" is checked for the library test project. In both version the "Deployment Services for Linux" extension is turned on. In Flatpak MD, it is version 7.7 while in non-Flatpak version it is 7.3.3

Does this feature actually work? Can someone please advise how to cause MD to generate the .pc file?

Thanks.

Johny

JohnyM01 avatar Jan 18 '19 07:01 JohnyM01

(Disclaimer: I'm not a MD dev nowadays)

I think, but I could be wrong, that the flatpak of MD is less stable than the deb/rpm packages. Also, I've seen people having issues in the past with nonUbuntu distros (such as Mint or Arch) due to subtle dependency differences caused by distro fragmentation, while I could not reproduce those issues in Ubuntu.

Given the above, I would recommend testing this feature with the official .deb file inside an Ubuntu 18.04 LTS first. If you cannot reproduce it this way, then Linux fragmentation is the culprit.

knocte avatar Jan 18 '19 07:01 knocte

Hello knocte,

Thanks for responding. I have now created a VM of Ubuntu 18.04 64 bit with 4G of RAM and dual processors. The VM initially has zero installation of mono and monodevelop. I simply followed the instructions given here https://www.monodevelop.com/download/#download-lin and apt-get install monodevelop.

I am surprise to hear your assessment and suspicion that the problems are caused by impurity in Mint as opposed to Ubuntu. If that is the case, MD is strangely very sensitive to different Linux. Mint is not exactly a new and odd ball distro and is used widely.

Without ado, I would like to differ from your assessment of Flatpak MD vs non-Flatpak that Flatpak version is less stable. In fact in my dealings, Flatpak MD installation is not only more stable but its features work better than non-Flatpak as the support seems to be more complete. It is understandable because the set up of Flatpak MD inside the container is taken care by the people who develop it. Whereas the non-Flatpak one depends largely on the knowledge of the installer whose machine may miss certain packages and thus certain features not working.

For example, "API Documentation" only works in Flatpak-MD and non-Flatpak MD in Mint 18.3, Ubuntu 18.04 fails badly throwing exception when invoked.

MD of all variants in all Linux in this study fails to generate .pc file. Can you advise me how to generate this? Is this a dud feature in MD?

Only Flatpak-MD is capable of generating the package in .tar.gz format. Not even MD in Ubuntu.

I notice that in Ubuntu my mono is only 5.16.0.200 while in Mint it is 5.18.0.225. The difference does not seem to make much difference in generating package as .pc file. They all fail.

Anyway, my experiment shows Ubuntu 18.04 is not any more better than Mint 18.3 (which is based on Ubuntu 16.04). They both produce the same problem.

BTW, it seem MonoDevelop web site has removed and downplayed the Flatpak-MD. It is hard to locate the monodevelop.flatpakref. Last year it was easy to find it.

Johny

JohnyM01 avatar Jan 18 '19 14:01 JohnyM01

Hello, I am having same problem. I am running Mint 18.3 and I have two MonoDevelop installations, one in each VM. Both VMs are running the same version of Mint.

One VM is using Flatpak MonoDevelop (7.3.3 built 5, Mono 5.18.0.240) and I can use Project > Create Package > "Archive of Binaries" and it successfully producing a tar.gz file.

In the VM that does NOT use Flatpak MonoDevelop, that is it is a normal apt installed MonoDevelop, (7.7 (build 1869). Mono Version Mono version 5.18.0.225, using the same test library project, when instructed to produce the package, it simply runs through the normal process without error and then displaying "Package creation failed" and no tar.gz package file produced. I have followed the instructions in MonoDevelop web sites to install the key and apt-install all the monodevel etc packages.

I have also observed operational differences between Flatpak-MD and non-Flatpak-MD. For example, the Mono Documentation viewer is working in Flatpak-MD but failing in non-Flatpak-MD.

Are we supposed to be using Flatpak-MD?

Both MD versions do not produce the .pc file when the "Generate .pc file for the library" is checked for the library test project. In both version the "Deployment Services for Linux" extension is turned on. In Flatpak MD, it is version 7.7 while in non-Flatpak version it is 7.3.3

Does this feature actually work? Can someone please advise how to cause MD to generate the .pc file?

Thanks.

Johny

this won't answer all your questions, but fwiw we've had problems with the package feature in most recent releases of MD. for past issues with flatpaks, we now build MD from source. as such looked into fixing package issue but it didn't appear simple (might have been a build configuration, though we've had same issue in flatpaks and dists). Looking at the source though it was pretty clear the package feature doesn't do very much and it only took a couple of minutes to replace the functionality with a generic script that does the same thing.

this script works great for all MD projects, we just keep copy in path somewhere for quick-packaging (we never used MD packaging for actual user/production distribution- just isolated testing and developer stuff- so YMMV).

#!/bin/sh
# usage:  makepkg.sh [pkg-name]
# if no pkg-name, will try to create package named after current directory, eg
# cd ~/src/code; makepkg.sh   # or put in MD build events
pkg=$1
ver=0.1.0
if [ -z $pkg ]; then
        pkg=$(pwd|grep -oE "[a-zA-Z0-9_]+$")
fi
curd=$(pwd)
curdd=$(pwd)/.
pver=$pkg-$ver
tarp=$curd/$pver.tar.gz
relp=$curd/$pver
echo "trying pkg: $pkg create -> $tarp"
rm -rf $relp
mkdir -p $relp
allbin=$(find $curdd -type f -iname '*.dll' -o -iname '*.exe' -o -iname '*.config'|grep -vE "Debug|\%temp\%"|grep bin|grep -vE "[0-9]+\.dll"|grep -v nunit| sed "s/\n/ /g")
for bin in $(echo "$allbin"); do
#       cp -vf $bin $relp
        cp -f $bin $relp
done
tar cvzf $tarp $relp
if [ $? = 0 ]; then
        sz=$(du -skh $tarp|cut -f1)
        echo "pkg ok at: $tarp $sz"
        exit 0
else
        echo errors making pkg: $tarp
        exit 1
fi

pracplayopen avatar Jan 19 '19 07:01 pracplayopen

Hello pracplayopen,

Thanks for your comment and effort to attempt fixing this.

Not sure if this helps. The Create Package only fails if one chooses to "Archive of Binaries". If you archive of sources, it creates the package successfully. Can't see why the content of the package makes such a difference.

From my shallow understanding of package, it appears it is just zippin up the dll and pdb into a compress archive. I will have a look at your bash script.

Fortunately the generation nuget package is working.

Thanks.

Johny.

JohnyM01 avatar Jan 19 '19 11:01 JohnyM01

Hey, build or distro discussions aside, what was missing in this report was a stacktrace with line numbers so that it can be easier to see where the null dereference is happening. @JohnyM01 or @vkurien can you provide one? Not sure if running MD from sources with make run does it, but IIRC this is one way of passing the flag --debug to the mono process when calling MonoDevelop, so that it can generate line numbers in the stacktrace.

knocte avatar Jan 19 '19 11:01 knocte

Hello,

I would gladly include --debug if it was in the list of command line argument of monodevelop, except that it isn't as listed here: MonoDevelop 7.7 Options: --no-splash Do not display splash screen (deprecated). --ipc-tcp Use the Tcp channel for inter-process communication. --new-window Do not open in an existing instance of MonoDevelop -h, -?, --help Show help --perf-log Enable performance counter logging --no-redirect Disable redirection of stdout/stderr to a log file file.ext;line;column Opens a file at specified integer line and column

I even ignore the above list to include --debug into the command line argument in the menu to no avail. No line number with the stack trace. Sorry.

Johny

JohnyM01 avatar Jan 19 '19 12:01 JohnyM01

Hello, Even without line number, I am attached an abridged version of the IDE.log showing my test environment and the run up of monodevelop and the Workbench in the hope that will shed some light.

It contains the stacktrace failing to create the package

Johny PackageCreationStackTrace_7.7.log

JohnyM01 avatar Jan 19 '19 13:01 JohnyM01

Please read my comment again: I didn't say that --debug is a command line argument of monodevelop, it's a command line argument of Mono.

So you don't place it this way: mono some/path/to/monodevelop.exe --debug, you place it here: mono --debug some/path/to/monodevelop.exe

knocte avatar Jan 19 '19 13:01 knocte