-
Notifications
You must be signed in to change notification settings - Fork 867
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
[Bug] "Exception: The server disconnected unexpectedly." when running in Azure Devops #9855
Comments
It seems to be thrown by following lines when calling docfx 2.76.0 using roslyn 4.9.2 packages. and |
Same problem here on a local project, after update from Here's the output:
|
Is it able to provide reproduceable files? I've tried to reproduce problems with Azure Pipelines with following settings. azure-pipelines.yml
|
Here is the config file: {
"metadata": [{
"src": [{
"files": ["Core/Core.csproj"],
"src": "../"
}, {
"files": ["Nodes/Nodes.csproj", "Execution/Execution.csproj"],
"src": "../"
}],
"dest": "api",
"filter": "docfx-filter-config.yml",
"disableGitFeatures": true,
"disableDefaultFilter": false
}],
"build": {
"content": [{
"files": ["**.yml", "**.md"],
"exclude": "docfx-filter-config.yml"
}],
"resource": [{
"files": ["images/**"]
}],
"overwrite": [{
"files": ["**.md"],
"exclude": [
"obj/**",
"bin/**",
"_site/**"
]
}],
"dest": "../public",
"_globalMetadata": {
"_appTitle": "MyTest™",
"_enableSearch": true
},
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"template": ["default"],
"postProcessors": [],
"noLangKeyword": false,
"keepFileLink": false,
"cleanupCacheHistory": true,
"disableGitFeatures": true,
"force": true
}
} With the filter file being: apiRules:
- include:
uidRegex: ^Company\.Project\.Core.+
- exclude:
uidRegex: _[^.]+$ I hope this would help. |
@thejonan
As far as I've confirmed your configs. I've created sample project to load project file with roslyn API. (samples.zip) Please try following steps.
|
The crash occurs both on my Mac:
, and on a CI pipeline, based on docker's image: I'm targeting running
which I guess is understood, given that I don't have net8 installed, but if I change your project's target to net7.0, then the result is:
Very important aspect, as I've mentioned, is that with version |
@thejonan
As noted above. It's expected to be caused by updating Roslyn packages to So if it is able to detect minimum reproducible code/environment, It helps to resolve problems. |
Same problem here. until this is fixed, the workaround is to simply downgrade, then everything works. would've been very helpful to provide this solution in the answers |
Bump. Exact same exception:
|
Some of the possible causes are when running docfx with .NET 6 or .NET 7. I've confirmed it's reproduced by using docker-based build on Windows. In this case, one of the following exceptions will occur.
|
Thanks for the investigating and info update. I have downgraded for now and will be looking forward to the fix then :) |
There's a reported regression in docfx, which in turn seems to be because of a reported regression in Roslyn 4.9.2: - dotnet/docfx#9855 - dotnet/roslyn#72558 Current recommendation from docfx is to downgrade to 2.75.3 until Roslyn releases a fix so docfx can release with the fixed Roslyn dependency.
There's a reported regression in docfx, which in turn seems to be because of a reported regression in Roslyn 4.9.2: - dotnet/docfx#9855 - dotnet/roslyn#72558 Current recommendation from docfx is to downgrade to 2.75.3 until Roslyn releases a fix so docfx can release with the fixed Roslyn dependency.
Latest version of docfx 2.77.0 uses Roslyn On .NET 8 environment. docfx use latest version of Roslyn. |
Describe the bug
When running
docfx
to build my project documentation in Azure Devops, I getException: The server disconnected unexpectedly.
followed by a stack trace (see log below). The exact command run isdocfx docs/docfx.json --output 'D:\a\1\a\docs' --warningsAsErrors
.The docfx.json is the same as it has been previously successful runs. Will post a redacted version if needed.
The crash does not occur when running the same command locally on my machine, and I have not been able to reproduce is locally.
Log
To Reproduce
Steps to reproduce the behavior:
docfx
in Azure Devops on VM Imagewindows-2022
(Version20240403.1.0)Expected behavior
The docs should build succesfully.
Context (please complete the following information):
windows-2022
(Version 20240403.1.0)Additional context
The text was updated successfully, but these errors were encountered: