-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #210 from stride3d/master
Testing recent updates
- Loading branch information
Showing
8 changed files
with
121 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="row gy-5 gx-sm-5 mb-5"> | ||
{% assign latestPosts = collections.blog | reverse %} | ||
{% for post in latestPosts limit:3 %} | ||
<div class="col-md-4"> | ||
<div class="card mb-4 h-100"> | ||
<div class="card-body px-4 pt-4"> | ||
<h5 class="card-title">{{ post.data.title }}</h5> | ||
<div class="my-2 small text-secondary"> | ||
<i class="fa-solid fa-calendar-days me-1"></i> {%- include post/day.html date:post.date -%} | ||
</div> | ||
{%- if post.data.excerpt -%}{{ post.data.excerpt | md }}{%- else -%} | ||
{{ post.data.page.excerpt | md }}{%- endif -%} | ||
</div> | ||
<div class="px-4 mb-4"> | ||
<a href="{{ post.url }}" class="stretched-link btn btn-lg btn-outline-stride me-md-2">Read more</a> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,4 +153,5 @@ <h2 class="h1 mb-3">Our Featured Sponsors</h2> | |
</div> | ||
</div> | ||
</div> | ||
{% include blog-home.html %} | ||
</div> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
title: "A closer look: Diagnostic Analyzers with Roslyn" | ||
author: joreyk | ||
popular: false | ||
image: https://www.jenx.si/wp-content/uploads/2020/10/cs-roslyn-logo.png | ||
tags: ['.NET'] | ||
--- | ||
|
||
Let's take a closer look at the DiagnosticAnalyzer added in Stride.Core.CompilerServices | ||
|
||
--- | ||
|
||
Table of Contents: | ||
|
||
[[TOC]] | ||
|
||
Stride advances further in utility and features every week. | ||
This blog will cover the new `DiagnosticAnalyzer` features in `Stride.Core.CompilerServices` | ||
|
||
## What is a DiagnosticAnalyzer? | ||
|
||
A `DiagnosticAnalyzer` is a Roslyn feature to scan your code while you are typing in your IDE. | ||
C# uses them too, everytime you see a warning or red squiggly lines in your IDE, a `DiagnosticAanalyzer` get's triggered. | ||
This analyzation has `NOTHING` to do with telemetry. | ||
|
||
## What does it do? | ||
|
||
The new `Diagnostics` cover mostly [Serialization](https://doc.stride3d.net/latest/en/manual/scripts/serialization.html), the analyzers will create warnings when code is written that is incompatible with [Strides Serialization Rules of Thumb](https://doc.stride3d.net/latest/en/manual/scripts/serialization.html#rule-of-thumb). | ||
Each of the error codes follows this format `STRDIAGXXX` where X represents a number digit. | ||
Clicking on the error codes will open a help page which explains in depth why the `DiagnosticAnalyzer` got triggered and explains how to resolve the warning. | ||
The error code pages can be found [here](https://doc.stride3d.net/latest/en/diagnostics/) | ||
|
||
## Why? | ||
|
||
It should reduce the "Why is my property not appearing in the Editor?" moments. | ||
Often it's unclear why a property is not showing up in the editor. | ||
The analyzers should help to clarify these situations and help in developing in Stride | ||
|
||
## Current State | ||
|
||
The PR to add these Analyzers got merged. But there was no release yet which includes them. | ||
To test them now building the engine from source is an option. | ||
Else wait until the next release package of Stride. | ||
|
||
## For Engine Developers | ||
|
||
It's easy to add new analyzers to the engine. | ||
VS has a bug caused by .NET. | ||
This bug causes VS to only load once Roslyn at start up. | ||
To fix this after adding a new analyzer, compile the `Stride.Core.CompilerServices` and restart VS. | ||
|
||
## Summary | ||
|
||
It's a new quality of life feature to easier develop in Stride by getting immediate feedback about problems while coding. | ||
|
||
Thank you for reading 📖, and happy coding 💻👩💻👨💻! |