question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Error: Connection got disposed." flood

See original GitHub issue

I’ve encountered an issue with code-d with one specific package. As soon code-d is loaded it starts spamming “Request failed. Connection got disposed.”

serve-d v0.6.0 with workspace-d v3.5.0 Included features: “d”, “workspaces” Built: Sun May 3 02:09:22 2020 with bundled dub, dfmt, dscanner OS: Windows 10 x64

Steps to reproduce

mkdir codedissue
cd codedissue
dub init -n
dub add evael-ecs
dub build
code .

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
WebFreak001commented, Aug 18, 2021

ah sorry just saw you posted the dub configuration, can diagnose it myself

0reactions
HuskyNatorcommented, Jan 22, 2022

I think I found my personal issue. Was almost about to post an issue about. I dont know about @Superbelko 's configuration but after a long time of confusion (I never fixed my issue until only today!), I coincidentally found out dub does not support the use of the autodetect targetType inside a configurations configuration.

I’m not sure why this leads to such weird errors. I’ve created a small example project with the issue, but it doesn’t always show the same errors. It’s currently stuck on “downloading” (even though there’s no dependencies… not sure why this happened this time). It sometimes (though not always) looks comparable to the error also shown in issue #389.

All in all, to me it seems like there’s some issues with detecting/printing issues with incorrect/problematic dub.json files. If possible I’d like to ask if this can be improved, though I have no clue if that is viable.

Sidenote: For some reason commandline dub does not complain about my incorrect dub.json file. (It actually uses the incorrect configuration, though, even though a main is included in the source, it decides to use the library targetType given the autodetect targetType. This is very weird to me, I’m not even sure if this is a bug in dub (or if I should report it).

Recreating: Simply add a configuration that uses the autodetect targetType as one of its configurations:

{
	"authors": [
		"Author"
	],
	"copyright": "Copyright © 2021, Author",
	"description": "Some Description.",
	"license": "proprietary",
	"name":"name",
	"configurations": [
		{
			"name": "name",
			"targetType": "autodetect"
		}
	]
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

[VS Code] Connection got disposed. · Issue #245 - GitHub
Error : Connection got disposed. Steps to Reproduce: Go trough sign in process for live share using browser to get user code.
Read more >
Flooding and Sewage Back-ups: Home Care Guide - Mass.gov
Flooding and Sewage Back-ups: Home Care Guide. How to protect your home and family from disease-causing pathogens in the event of a flood...
Read more >
Repairing Your Flooded Home
Clean everything that got wet. Floodwaters pick up sewage and chemicals from roads, farms, factories, and stor- age buildings. Spoiled food and flooded...
Read more >
Protecting Building Utilities From Flood Damage - FEMA
If you ordered and received your copy of Protecting Building Utilites From Flood Damage directly from the FEMA Publications Center, you will automatically ......
Read more >
FLOOD REPAIR FACT SHEET | Master Electricians Australia
For portable electrical equipment the electrician must assess the damage and refer to the Australian Standard AS/NZS 3760, after which the appropriate disposal...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found