Skip to content

Conversation

@wrexbe
Copy link
Contributor

@wrexbe wrexbe commented Jun 23, 2022

Puts AccessPermissions, and AccessAttribute under a different namespace when compiled on Robust.Analysers. This prevents hot reload from getting confused because the same classes appear in two different dlls. Hot reload is still buggy with rider, but it works some of the time after this change. I have better luck using hot reload with run, rather then debug.

@wrexbe wrexbe requested a review from PaulRitter as a code owner June 23, 2022 04:46
@PaulRitter PaulRitter merged commit 269d229 into space-wizards:master Jun 23, 2022
@PJB3005
Copy link
Member

PJB3005 commented Jun 24, 2022

This should not be behind a NETSTANDARD2_0 switch, there should be a separate define like ROBUST_ANALYZER_IMPL.

PJB3005 added a commit to PJB3005/space-station-14 that referenced this pull request Apr 14, 2024
As far as I can tell, Roslyn tests haven't worked since space-wizards#2976.

The tests used a pretty awful technique of linking the test code against the analyzer, so that the analyzer's copy of the relevant attributes got included into the test. This then broke when the namespace got changed by the linked PR.

Now the tests get an EmbeddedResource for the necessary test files compiled instead.

Also applied this to DependencyAssignAnalyzerTest because why not.
PJB3005 added a commit that referenced this pull request Apr 14, 2024
* Enable roslyn extension tests in CI

* I'll be real I kinda just hoped that last one would work. dotnet test's --help documentation is useless garbage so I couldn't tell if that was supported or not. Guess not.

* Actually fix the Roslyn tests.

As far as I can tell, Roslyn tests haven't worked since #2976.

The tests used a pretty awful technique of linking the test code against the analyzer, so that the analyzer's copy of the relevant attributes got included into the test. This then broke when the namespace got changed by the linked PR.

Now the tests get an EmbeddedResource for the necessary test files compiled instead.

Also applied this to DependencyAssignAnalyzerTest because why not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants