Skip to content

Instantly share code, notes, and snippets.

Alan McGovern alanmcgovern

  • Microsoft
  • Ireland
Block or report user

Report or block alanmcgovern

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:de9c7331195b31b9be6ebc9d8d725665
2017-11-14T18:12:28.7889820Z Found: /Applications/Xcode.app
2017-11-14T18:12:28.7912950Z Found: /Applications/Xcode8.app
2017-11-14T18:12:28.7932670Z Found: /Applications/Xcode81.app
2017-11-14T18:12:28.7947490Z Found: /Applications/Xcode82.app
2017-11-14T18:12:28.7961530Z Found: /Applications/Xcode83.app
2017-11-14T18:12:28.7975590Z Found: /Applications/Xcode9.app
2017-11-14T18:12:28.7989630Z Found: /Applications/Xcode91.app
2017-11-14T18:12:28.8003710Z Found: /Applications/Xcode_8.1.app
2017-11-14T18:12:28.8017660Z Found: /Applications/Xcode_8.2.1.app
2017-11-14T18:12:28.8033340Z Found: /Applications/Xcode_8.2.app
View foo.csproj
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{F7C4DB5D-5A5B-424C-8B06-8D76556C3B4E}</ProjectGuid>
<OutputType>Library</OutputType>
View refcounting.c
#include <glib-object.h>
#include <dlfcn.h>
#include <signal.h>
#include <string.h>
#include <stdlib.h>
#include <execinfo.h>
#define BACKTRACE_DEPTH 50
View code
var docId = ws.GetDocumentId (projectId, part.SourceTree.FilePath);
var document = ws.GetDocument (docId, cancellationToken);
var root = await document.GetSyntaxRootAsync (cancellationToken).ConfigureAwait (false);```
View gist:0e6b90c09b52ae475fd45d682eb18028
ERROR [2016-10-14 11:17:51Z]: An unhandled exception has occured. Terminating Xamarin Studio? False
NuGet.Protocol.Core.Types.FatalProtocolException: Package 'Xamarin.Forms.2.3.2.127' is not found on source '/Users/alan/Downloads/Cycle7_Windows_Debug_1022_artifacts'.
at NuGet.PackageManagement.PackageDownloader+<GetDownloadResourceResultAsync>d__1.MoveNext () [0x00244] in <69f0e0fa5c6543ad921c406861195e0e>:0
ERROR [2016-10-14 11:17:54Z]: An unhandled exception has occured. Terminating Xamarin Studio? False
NuGet.Protocol.Core.Types.FatalProtocolException: Package 'Xamarin.Android.Support.v7.AppCompat.23.3.0' is not found on source '/Users/alan/Downloads/Cycle7_Windows_Debug_1022_artifacts'.
at NuGet.PackageManagement.PackageDownloader+<GetDownloadResourceResultAsync>d__1.MoveNext () [0x00244] in <69f0e0fa5c6543ad921c406861195e0e>:0
ERROR [2016-10-14 11:17:54Z]: An unhandled exception has occured. Terminating Xamarin Studio? False
NuGet.Protocol.Core.Types.FatalProtocolException: Package 'Xamarin.Android
View gist:7a0f2424eb0612f54013e6b1fd497783
diff --git a/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs b/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs
index c3671e0..4320f7f 100644
--- a/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs
+++ b/Xamarin.Designer.iOS/MonoTouch.Design.Server/TypeSystem/Loader.cs
@@ -422,6 +422,7 @@ namespace MonoTouch.Design
}
CreateConstraintsForFrame (view);
+ AttachConstraints (view, context, false);
View patch.diff
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildFileFormat.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildFileFormat.cs
index 12a69d7..e4a7060 100644
--- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildFileFormat.cs
+++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.MSBuild/MSBuildFileFormat.cs
@@ -174,7 +174,9 @@ namespace MonoDevelop.Projects.MSBuild
internal async Task WriteFile (FilePath file, object obj, ProgressMonitor monitor)
{
if (slnFileFormat.CanWriteFile (obj, this)) {
+ Console.WriteLine ("await slnFileFormat.WriteFile (file, obj, true, monitor);");
await slnFileFormat.WriteFile (file, obj, true, monitor);
View error
FATAL ERROR [2016-01-21 17:39:06Z]: An unhandled exception has occured. Terminating Xamarin Studio? True
System.NullReferenceException: Object reference not set to an instance of an object
at Microsoft.CodeAnalysis.RecoverableTextAndVersion.InitRecoverable (Microsoft.CodeAnalysis.TextAndVersion textAndVersion) <0x1e3dffd0 + 0x00015> in <filename unknown>:0
at Microsoft.CodeAnalysis.RecoverableTextAndVersion+<GetValueAsync>d__12.MoveNext () <0x1e304d60 + 0x00413> in <filename unknown>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /private/tmp/source-mono-4.3.1/bockbuild-xamarin/profiles/mono-mac-xamarin/build-root/mono-x86/external/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:143
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x00047] in /private/tmp/source-mono-4.3.1/bockbuild-xamarin/profiles/
View foo.cs
async Task DragConnectionLineAsync (DesignerItem item, Point location)
{
if (!Renderer.CaptureMouse ())
return;
IPhoneDesignerItem source;
var scene = item as SceneDesignerItem;
if (scene != null)
source = scene.ViewController;
else
View foo.cs
async Task DragConnectionLineAsync (DesignerItem item, Point location)
{
if (!Renderer.CaptureMouse ())
return;
IPhoneDesignerItem source;
var scene = item as SceneDesignerItem;
if (scene != null)
source = scene.ViewController;
else
You can’t perform that action at this time.