From e78b774973e5569527b4b678f2d889772c232ee2 Mon Sep 17 00:00:00 2001 From: TeBeCo Date: Sat, 8 Aug 2026 21:33:41 +0400 Subject: [PATCH 1/7] move DiagnosticTest to testing project --- Leda.Test/DiagnosticTest.cs | 3 ++- Leda.Test/Leda.Test.csproj | 1 + {Leda.Test => Leda.Testing}/DiagnosticPrinter.cs | 2 +- Leda.Testing/Leda.Testing.csproj | 12 ++++++++++++ Scripts/GenerateResults.cs | 4 ++-- 5 files changed, 18 insertions(+), 4 deletions(-) rename {Leda.Test => Leda.Testing}/DiagnosticPrinter.cs (95%) create mode 100644 Leda.Testing/Leda.Testing.csproj diff --git a/Leda.Test/DiagnosticTest.cs b/Leda.Test/DiagnosticTest.cs index db2f8f5..fa935a9 100644 --- a/Leda.Test/DiagnosticTest.cs +++ b/Leda.Test/DiagnosticTest.cs @@ -1,4 +1,5 @@ using Leda.Lang; +using Leda.Testing; namespace Leda.Test; @@ -62,7 +63,7 @@ public DiagnosticTestData() var expectedDiagnostics = File.ReadAllText(Path.Join(ProjectPath, "results", filename + ".diagnostics")); var expectedCode = File.ReadAllText(Path.Join(ProjectPath, "results", filename + ".lua")); - Add(new TestScenario(filename, code, expectedDiagnostics, expectedCode)); + Add(new TheoryDataRow(new TestScenario(filename, code, expectedDiagnostics, expectedCode))); } } } \ No newline at end of file diff --git a/Leda.Test/Leda.Test.csproj b/Leda.Test/Leda.Test.csproj index 3ace533..cd93d7f 100644 --- a/Leda.Test/Leda.Test.csproj +++ b/Leda.Test/Leda.Test.csproj @@ -24,6 +24,7 @@ + diff --git a/Leda.Test/DiagnosticPrinter.cs b/Leda.Testing/DiagnosticPrinter.cs similarity index 95% rename from Leda.Test/DiagnosticPrinter.cs rename to Leda.Testing/DiagnosticPrinter.cs index 9f0fd65..0df3751 100644 --- a/Leda.Test/DiagnosticPrinter.cs +++ b/Leda.Testing/DiagnosticPrinter.cs @@ -1,6 +1,6 @@ using Leda.Lang; -namespace Leda.Test; +namespace Leda.Testing; public static class DiagnosticPrinter { diff --git a/Leda.Testing/Leda.Testing.csproj b/Leda.Testing/Leda.Testing.csproj new file mode 100644 index 0000000..59db0ff --- /dev/null +++ b/Leda.Testing/Leda.Testing.csproj @@ -0,0 +1,12 @@ + + + + net10.0 + enable + enable + + + + + + diff --git a/Scripts/GenerateResults.cs b/Scripts/GenerateResults.cs index 24b86b3..8ae606a 100644 --- a/Scripts/GenerateResults.cs +++ b/Scripts/GenerateResults.cs @@ -1,9 +1,9 @@ #:project ../Leda.Lang/Leda.Lang.csproj -#:project ../Leda.Test/Leda.Test.csproj +#:project ../Leda.Testing/Leda.Testing.csproj #:package Microsoft.Extensions.FileSystemGlobbing@10.0.7 using Leda.Lang; -using Leda.Test; +using Leda.Testing; using Microsoft.Extensions.FileSystemGlobbing; // Assumes the script's working directory is the solution's root. From 2d1d8fa3e32ebfc83f7b9733d437be403a3bed41 Mon Sep 17 00:00:00 2001 From: TeBeCo Date: Sat, 8 Aug 2026 21:34:28 +0400 Subject: [PATCH 2/7] use xunitv3 / mtpv2 --- Leda.Test/Leda.Test.csproj | 12 ++++-------- global.json | 10 ++++++++++ 2 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 global.json diff --git a/Leda.Test/Leda.Test.csproj b/Leda.Test/Leda.Test.csproj index cd93d7f..d468780 100644 --- a/Leda.Test/Leda.Test.csproj +++ b/Leda.Test/Leda.Test.csproj @@ -6,16 +6,12 @@ enable Nullable false - + Exe + true + - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - + diff --git a/global.json b/global.json new file mode 100644 index 0000000..522d128 --- /dev/null +++ b/global.json @@ -0,0 +1,10 @@ +{ + "sdk": { + "version": "10.0.302", + "rollForward": "latestMajor", + "allowPrerelease": true + }, + "test": { + "runner": "Microsoft.Testing.Platform" + } +} \ No newline at end of file From 04affe4b4a0be3e454e3169de483e08c2d1d315e Mon Sep 17 00:00:00 2001 From: TeBeCo Date: Sat, 8 Aug 2026 21:53:42 +0400 Subject: [PATCH 3/7] migrate to SLNX --- Leda.sln | 34 ---------------------------------- Leda.slnx | 6 ++++++ 2 files changed, 6 insertions(+), 34 deletions(-) delete mode 100644 Leda.sln create mode 100644 Leda.slnx diff --git a/Leda.sln b/Leda.sln deleted file mode 100644 index 764d8ec..0000000 --- a/Leda.sln +++ /dev/null @@ -1,34 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Leda.Lang", "Leda.Lang\Leda.Lang.csproj", "{0B743190-3FC6-4235-B49B-E1C6D73004C2}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Leda.Cli", "Leda.Cli\Leda.Cli.csproj", "{07895619-2681-47F7-9D06-1891BB881192}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Leda.LSP", "Leda.LSP\Leda.LSP.csproj", "{2671D4B0-EACE-4661-92A2-1F5CB77F3E5C}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Leda.Test", "Leda.Test\Leda.Test.csproj", "{90A411B7-C375-4F59-BFF6-0036D2EDB8CC}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {0B743190-3FC6-4235-B49B-E1C6D73004C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0B743190-3FC6-4235-B49B-E1C6D73004C2}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0B743190-3FC6-4235-B49B-E1C6D73004C2}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0B743190-3FC6-4235-B49B-E1C6D73004C2}.Release|Any CPU.Build.0 = Release|Any CPU - {07895619-2681-47F7-9D06-1891BB881192}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {07895619-2681-47F7-9D06-1891BB881192}.Debug|Any CPU.Build.0 = Debug|Any CPU - {07895619-2681-47F7-9D06-1891BB881192}.Release|Any CPU.ActiveCfg = Release|Any CPU - {07895619-2681-47F7-9D06-1891BB881192}.Release|Any CPU.Build.0 = Release|Any CPU - {2671D4B0-EACE-4661-92A2-1F5CB77F3E5C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2671D4B0-EACE-4661-92A2-1F5CB77F3E5C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2671D4B0-EACE-4661-92A2-1F5CB77F3E5C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2671D4B0-EACE-4661-92A2-1F5CB77F3E5C}.Release|Any CPU.Build.0 = Release|Any CPU - {90A411B7-C375-4F59-BFF6-0036D2EDB8CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {90A411B7-C375-4F59-BFF6-0036D2EDB8CC}.Debug|Any CPU.Build.0 = Debug|Any CPU - {90A411B7-C375-4F59-BFF6-0036D2EDB8CC}.Release|Any CPU.ActiveCfg = Release|Any CPU - {90A411B7-C375-4F59-BFF6-0036D2EDB8CC}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection -EndGlobal diff --git a/Leda.slnx b/Leda.slnx new file mode 100644 index 0000000..0fda1c3 --- /dev/null +++ b/Leda.slnx @@ -0,0 +1,6 @@ + + + + + + From fa5c79b36f26c95f85eafd15ea1319cabd3137ab Mon Sep 17 00:00:00 2001 From: TeBeCo Date: Sat, 8 Aug 2026 21:54:19 +0400 Subject: [PATCH 4/7] lint --- Leda.Test/Leda.Test.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Leda.Test/Leda.Test.csproj b/Leda.Test/Leda.Test.csproj index d468780..aa2854b 100644 --- a/Leda.Test/Leda.Test.csproj +++ b/Leda.Test/Leda.Test.csproj @@ -7,7 +7,7 @@ Nullable false Exe - true + true From 89cbc38e55ad74bb6fbab9693bc48933f071d776 Mon Sep 17 00:00:00 2001 From: TeBeCo Date: Sat, 8 Aug 2026 21:55:00 +0400 Subject: [PATCH 5/7] doens't matter ... copilot crap --- global.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/global.json b/global.json index 522d128..0343cee 100644 --- a/global.json +++ b/global.json @@ -1,7 +1,7 @@ { "sdk": { "version": "10.0.302", - "rollForward": "latestMajor", + "rollForward": "latestPatch", "allowPrerelease": true }, "test": { From 8f9315203b4cb57426a51a68969689b26818bbe7 Mon Sep 17 00:00:00 2001 From: TeBeCo Date: Sat, 8 Aug 2026 22:03:25 +0400 Subject: [PATCH 6/7] actual "dotnet new .gitignore" + patch weird riders ones existing --- .gitignore | 489 ++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 485 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index f400df3..5d4bc5e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,487 @@ -bin/ -obj/ -/packages/ +# from the previous incomplete .gitignore riderModule.iml /_ReSharper.Caches/ -.idea/ \ No newline at end of file + + +## Ignore Visual Studio temporary files, build results, and +## files generated by popular Visual Studio add-ons. +## +## Get latest from `dotnet new gitignore` + +# dotenv files +.env + +# User-specific files +*.rsuser +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Mono auto generated files +mono_crash.* + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +x64/ +x86/ +[Ww][Ii][Nn]32/ +[Aa][Rr][Mm]/ +[Aa][Rr][Mm]64/ +bld/ +[Bb]in/ +[Oo]bj/ +[Ll]og/ +[Ll]ogs/ + +# Visual Studio 2015/2017 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# Visual Studio 2017 auto generated files +Generated\ Files/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUnit +*.VisualState.xml +TestResult.xml +nunit-*.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# Benchmark Results +BenchmarkDotNet.Artifacts/ + +# .NET +project.lock.json +project.fragment.lock.json +artifacts/ + +# Tye +.tye/ + +# ASP.NET Scaffolding +ScaffoldingReadMe.txt + +# StyleCop +StyleCopReport.xml + +# Files built by Visual Studio +*_i.c +*_p.c +*_h.h +*.ilk +*.meta +*.obj +*.iobj +*.pch +*.pdb +*.ipdb +*.pgc +*.pgd +*.rsp +# but not Directory.Build.rsp, as it configures directory-level build defaults +!Directory.Build.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*_wpftmp.csproj +*.log +*.tlog +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# Visual Studio Trace Files +*.e2e + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# AxoCover is a Code Coverage Tool +.axoCover/* +!.axoCover/settings.json + +# Coverlet is a free, cross platform Code Coverage Tool +coverage*.json +coverage*.xml +coverage*.info + +# Visual Studio code coverage results +*.coverage +*.coveragexml + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +# Note: Comment the next line if you want to checkin your web deploy settings, +# but database connection strings (with potential passwords) will be unencrypted +*.pubxml +*.publishproj + +# Microsoft Azure Web App publish settings. Comment the next line if you want to +# checkin your Azure Web App publish settings, but sensitive information contained +# in these scripts will be unencrypted +PublishScripts/ + +# NuGet Packages +*.nupkg +# NuGet Symbol Packages +*.snupkg +# The packages folder can be ignored because of Package Restore +**/[Pp]ackages/* +# except build/, which is used as an MSBuild target. +!**/[Pp]ackages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/[Pp]ackages/repositories.config +# NuGet v3's project.json files produces more ignorable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directories and files +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt +*.appx +*.appxbundle +*.appxupload + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!?*.[Cc]ache/ + +# Others +ClientBin/ +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.jfm +*.pfx +*.publishsettings +orleans.codegen.cs + +# Including strong name files can present a security risk +# (https://github.com/github/gitignore/pull/2483#issue-259490424) +#*.snk + +# Since there are multiple workflows, uncomment next line to ignore bower_components +# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) +#bower_components/ + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm +ServiceFabricBackup/ +*.rptproj.bak + +# SQL Server files +*.mdf +*.ldf +*.ndf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings +*.rptproj.rsuser +*- [Bb]ackup.rdl +*- [Bb]ackup ([0-9]).rdl +*- [Bb]ackup ([0-9][0-9]).rdl + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat +node_modules/ + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio 6 auto-generated workspace file (contains which files were open etc.) +*.vbw + +# Visual Studio 6 auto-generated project file (contains which files were open etc.) +*.vbp + +# Visual Studio 6 workspace and project file (working project files containing files to include in project) +*.dsw +*.dsp + +# Visual Studio 6 technical files +*.ncb +*.aps + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +# CodeRush personal settings +.cr/personal + +# Python Tools for Visual Studio (PTVS) +__pycache__/ +*.pyc + +# Cake - Uncomment if you are using it +# tools/** +# !tools/packages.config + +# Tabs Studio +*.tss + +# Telerik's JustMock configuration file +*.jmconfig + +# BizTalk build output +*.btp.cs +*.btm.cs +*.odx.cs +*.xsd.cs + +# OpenCover UI analysis results +OpenCover/ + +# Azure Stream Analytics local run output +ASALocalRun/ + +# MSBuild Binary and Structured Log +*.binlog + +# NVidia Nsight GPU debugger configuration file +*.nvuser + +# MFractors (Xamarin productivity tool) working folder +.mfractor/ + +# Local History for Visual Studio +.localhistory/ + +# Visual Studio History (VSHistory) files +.vshistory/ + +# BeatPulse healthcheck temp database +healthchecksdb + +# Backup folder for Package Reference Convert tool in Visual Studio 2017 +MigrationBackup/ + +# Ionide (cross platform F# VS Code tools) working folder +.ionide/ + +# Fody - auto-generated XML schema +FodyWeavers.xsd + +# VS Code files for those working on multiple tools +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +*.code-workspace + +# Local History for Visual Studio Code +.history/ + +# Windows Installer files from build outputs +*.cab +*.msi +*.msix +*.msm +*.msp + +# JetBrains Rider +*.sln.iml +.idea/ + +## +## Visual studio for Mac +## + + +# globs +Makefile.in +*.userprefs +*.usertasks +config.make +config.status +aclocal.m4 +install-sh +autom4te.cache/ +*.tar.gz +tarballs/ +test-results/ + +# content below from: https://github.com/github/gitignore/blob/main/Global/macOS.gitignore +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# content below from: https://github.com/github/gitignore/blob/main/Global/Windows.gitignore +# Windows thumbnail cache files +Thumbs.db +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +$RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +# Vim temporary swap files +*.swp From 1d4eb2f1c7e79854a44c64a0b8aa01311f208a55 Mon Sep 17 00:00:00 2001 From: TeBeCo Date: Sat, 8 Aug 2026 22:22:00 +0400 Subject: [PATCH 7/7] add Nullable in Leda.Testing --- Leda.Testing/Leda.Testing.csproj | 1 + 1 file changed, 1 insertion(+) diff --git a/Leda.Testing/Leda.Testing.csproj b/Leda.Testing/Leda.Testing.csproj index 59db0ff..60c15c4 100644 --- a/Leda.Testing/Leda.Testing.csproj +++ b/Leda.Testing/Leda.Testing.csproj @@ -4,6 +4,7 @@ net10.0 enable enable + Nullable