Running dotnet test test/FsAutoComplete.Tests.Lsp/FsAutoComplete.Tests.Lsp.fsproj directly on a clean repository fails in gotoTest
Maintainers usually reply within 2 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start with gotoTest and signatureGotoTests in the LSP test project, then inspect how DotnetCli.build is used for TestCases/GoToCSharp/GoToCSharp.csproj. Run dotnet test test/FsAutoComplete.Tests.Lsp/FsAutoComplete.Tests.Lsp.fsproj from a clean checkout. Done means the GoToCSharp assembly exists before gotoTest initializes its workspace and the direct test command succeeds.
Written by the indexing model from the issue text.
Description
Version
v0.85.0
Dotnet Info
.NET SDK:
Version: 10.0.112
Commit: 95017c711e
Workload version: 10.0.100-manifests.63b36e85
MSBuild version: 18.0.11
Runtime Environment:
OS Name: arch
OS Version:
OS Platform: Linux
RID: arch-x64
Base Path: /usr/share/dotnet/sdk/10.0.112/
.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.
Host:
Version: 10.0.12
Architecture: x64
Commit: 95017c711e
.NET SDKs installed:
10.0.112 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.12 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.12 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
DOTNET_CLI_TELEMETRY_OPTOUT [1]
global.json file:
Not found
Steps to reproduce
-
Clear build artifacts in
test/FsAutoComplete.Tests.Lsp/TestCases/GoToCSharp/bin/ -
Run
dotnet test test/FsAutoComplete.Tests.Lsp/FsAutoComplete.Tests.Lsp.fsproj
Details
The sample workspace TestCases/GoToTests references TestCases/GoToCSharp/GoToCSharp.csproj, and External.fs uses GoToCSharp.Class1. Currently, signatureGotoTests compiles GoToCSharp.csproj via DotnetCli.build. Because gotoTest runs before signatureGotoTests, the output assembly does not exist when gotoTest initializes its workspace.
I think you need to invoke DotnetCli.build for GoToCSharp before gotoTest initializes the server, or add an MSBuild build target to FsAutoComplete.Tests.Lsp.fsproj that builds GoToCSharp.csproj before running tests.
Logs
No response
Checklist
- I have looked through existing issues to make sure that this bug has not been reported before
- I have provided a descriptive title for this issue
- I have made sure that that this bug is reproducible on the latest version of the package
- I have provided all the information needed to reproduce this bug as efficiently as possible
- I or my company would be willing to contribute this fix
- Dominant language
- F#
- Stars
- 488
- Forks
- 172
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 7
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ionide/FsAutoComplete
-
Document agentic contribution workflowMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ionide/FsAutoComplete#1540 ·
Maintainers usually reply within 2 days
-
agentic-workflows automation repo-assist
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ionide/FsAutoComplete#1517 ·
Maintainers usually reply within 2 days
-
agentic-workflows automation repo-assist
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ionide/FsAutoComplete#1507 ·
Maintainers usually reply within 2 days
-
Difficulty 5/5 Over a week Newbie friendliness 12/100
ionide/FsAutoComplete#1555 · 1 comment ·
Maintainers usually reply within 2 days
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 63/100
ionide/FsAutoComplete#1547 · 1 comment ·
Maintainers usually reply within 2 days
All issues in ionide/FsAutoComplete
Similar issues
-
enhancement minor
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
testcontainers/testcontainers-node#1533 ·
Maintainers usually reply within 1 day
-
Two unary operator simulation tests select elaboration because their type metadata lacks a colonOpen
Difficulty 1/5 Under an hour Newbie friendliness 90/100
chipsalliance/sv-tests#9218 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
parcel-bundler/lightningcss#1370 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
FujiNetWIFI/fujinet-lib#115 · 1 comment ·
Maintainers usually reply within 1 day