-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled exception. System.InvalidOperationException: Sequence contains no elements #167
Comments
latest beta version (1.0.0-beta04) should fix the error by ignoring the member but I'm curious why the the type is missing. Is it a private project or is it possible to know the member it fails for? You can set the log level to |
Here's the logs with LogLevel Debug
And here's a snippet from the class: /// <summary>
/// A layout element that sets the minimum/preferred width/height based on an aspect ratio
/// </summary>
[RequireComponent(typeof(RectTransform))]
public class AspectRatioLayoutElement: UIBehaviour, ILayoutElement {
public enum AspectMode {
None,
WidthControlsHeight,
HeightControlsWidth
}
public RectTransform rectTransform => (this.transform as RectTransform);
public AspectMode aspectMode {
get => _aspectMode;
set => _aspectMode = value;
}
[SerializeField]
private AspectMode _aspectMode = AspectMode.None;
public float aspectRatio {
get => _aspectRatio;
set => _aspectRatio = value;
}
[SerializeField]
private float _aspectRatio = 1.0f;
public bool aspectControlsMinSize {
get => _aspectControlsMinSize;
set => _aspectControlsMinSize = value;
}
[SerializeField]
private bool _aspectControlsMinSize = false;
public bool aspectControlsPreferredSize {
get => _aspectControlsPreferredSize;
set => _aspectControlsPreferredSize = value;
}
[SerializeField]
private bool _aspectControlsPreferredSize = true;
public float? flexibleWidth {
get => _flexibleWidth;
set => _flexibleWidth = value;
}
[SerializeField]
private NullableValue<float> _flexibleWidth = null;
public float? flexibleHeight {
get => _flexibleHeight;
set => _flexibleHeight = value;
}
[SerializeField]
private NullableValue<float> _flexibleHeight = null;
public int layoutPriority {
get => _layoutPriority;
set => _layoutPriority = value;
}
[SerializeField]
private int _layoutPriority = 1;
private Vector2? _lastRectSize = null;
// methods were defined here
} |
Also I tested 1.0.0-beta04 and it seems to be fixed. Thanks! |
The |
Sorry missed this notification. This is code for a unity project, and yea |
I'll see if I can replicate this issue and understand why the unity dll is not loaded in DefaultDocumentation to access its metadata, I know they are regenerating the csproj and managing the references a little different 🤔 |
When trying to generate documentation using the dotnet tool, I get this error.
Config:
Full stack trace:
The text was updated successfully, but these errors were encountered: