Skip to content
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

serve-d fails to initialize: Failed processing notification: mir.ion.exception.IonException: unexpected Ion type #364

Open
redthing1 opened this issue Apr 11, 2024 · 3 comments
Labels

Comments

@redthing1
Copy link

redthing1 commented Apr 11, 2024

I am on the Nightly release channel of serve-d on osx aarch64.

serve-d standalone v0.8.0-beta.15
Included features: "d", "workspaces"
Built: Thu Apr  4 02:26:06 2024
with compiler LDC v2.107 on osx aarch64
dub, dfmt and dscanner are bundled within (compiled in)
2024-04-11T12:44:18.645 [error] serverbase.d:427:__lambda2 Failed processing notification: mir.ion.exception.IonException@../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/exception.d(297): IonException: unexpected Ion type
----------------
??:? pure nothrow @trusted rt.critical_.D_CRITICAL_SECTION* core.lifetime._d_newitemT!(rt.critical_.D_CRITICAL_SECTION)._d_newitemT() [0x102f07027]
mir.ion.exception.IonException@../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/exception.d(297): IonException: unexpected Ion type
----------------
??:? pure nothrow @trusted rt.critical_.D_CRITICAL_SECTION* core.lifetime._d_newitemT!(rt.critical_.D_CRITICAL_SECTION)._d_newitemT() [0x102f07027]
[Info  - 12:44:20 PM] Connection to server got closed. Server will restart.
serve-d standalone v0.8.0-beta.15
Included features: "d", "workspaces"
Built: Thu Apr  4 02:26:06 2024
with compiler LDC v2.107 on osx aarch64
dub, dfmt and dscanner are bundled within (compiled in)
2024-04-11T12:44:20.104 [error] serverbase.d:427:__lambda2 Failed processing notification: mir.ion.exception.IonException@../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/exception.d(297): IonException: unexpected Ion type
----------------

It then goes into a crash loop.

Relevant code: https://github.com/Pure-D/serve-d/blob/master/serverbase/source/served/serverbase.d#L418-L439

@redthing1
Copy link
Author

I tried downgrading but I still have this issue. Not sure why, because it worked for months until 15 min ago when I decided to update.

@redthing1
Copy link
Author

redthing1 commented Apr 11, 2024

And here is a detailed log, from running serve-d from source:

serve-d standalone v0.8.0-beta.15
Included features: "d", "workspaces"
Built: Thu Apr 11 13:08:33 2024
with compiler LDC v2.106 on osx aarch64
dub, dfmt and dscanner are bundled within (compiled in)
2024-04-11T13:09:30.976 [trace] serverbase.d:464:run Started reading from stdin
2024-04-11T13:09:30.976 [trace] serverbase.d:468:run RPC started
2024-04-11T13:09:31.001 [trace] serverbase.d:122:processRequest Initializing
2024-04-11T13:09:31.001 [trace] extension.d:236:initialize initialize params:
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 	processId: 70676
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 	rootPath?: /Users/user/code/myproj
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 	rootUri: file:///Users/user/code/myproj
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 	initializationOptions?: <null>
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 	capabilities:
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 		workspace?:
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 			applyEdit?: true
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 			workspaceEdit?:
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 				documentChanges?: true
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 				resourceOperations?: [create, rename, delete_]
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 				failureHandling?: textOnlyTransactional
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 				normalizesLineEndings?: true
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 				changeAnnotationSupport?:
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 					groupsOnLabel?: true
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 			didChangeConfiguration?:
2024-04-11T13:09:31.001 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 			didChangeWatchedFiles?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 			symbol?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 			executeCommand?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 			workspaceFolders?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 			configuration?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 			semanticTokens?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				refreshSupport?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 			codeLens?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				refreshSupport?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 			fileOperations?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				didCreate?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				willCreate?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				didRename?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				willRename?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				didDelete?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				willDelete?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 		textDocument?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 			synchronization?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				willSave?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				willSaveWaitUntil?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				didSave?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 			completion?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				completionItem?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					snippetSupport?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					commitCharactersSupport?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					documentationFormat?: [markdown, plaintext]
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					deprecatedSupport?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					preselectSupport?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					tagSupport?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 						valueSet: [deprecated_]
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					insertReplaceSupport?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					resolveSupport?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 						properties: ["documentation", "detail", "additionalTextEdits"]
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					insertTextModeSupport?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 						valueSet: [asIs, adjustIndentation]
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					labelDetailsSupport?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				completionItemKind?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					valueSet?: [text, method, function_, constructor, field, variable, class_, interface_, module_, property, unit, value, enum_, keyword, snippet, color, file, reference, folder, enumMember, constant, struct_, event, operator, typeParameter]
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				contextSupport?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 			hover?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				contentFormat?: [markdown, plaintext]
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 			signatureHelp?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				signatureInformation?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					documentationFormat?: [markdown, plaintext]
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					parameterInformation?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 						labelOffsetSupport?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 					activeParameterSupport?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				contextSupport?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 			declaration?:
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.002 [trace] extension.d:237:initialize 				linkSupport?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			definition?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				linkSupport?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			typeDefinition?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				linkSupport?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			implementation?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				linkSupport?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			references?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			documentHighlight?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			documentSymbol?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				symbolKind?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 					valueSet?: [file, module_, namespace, package_, class_, method, property, field, constructor, enum_, interface_, function_, variable, constant, string, number, boolean, array, object, key, null_, enumMember, struct_, event, operator, typeParameter]
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				hierarchicalDocumentSymbolSupport?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				tagSupport?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 					valueSet: [deprecated_]
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				labelSupport?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			codeAction?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				codeActionLiteralSupport?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 					codeActionKind:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 						valueSet: [empty, quickfix, refactor, refactorExtract, refactorInline, refactorRewrite, source, sourceOrganizeImports]
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				isPreferredSupport?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				disabledSupport?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dataSupport?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				resolveSupport?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 					properties: ["edit"]
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				honorsChangeAnnotations?: false
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			codeLens?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			documentLink?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				tooltipSupport?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			colorProvider?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			formatting?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			rangeFormatting?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			onTypeFormatting?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			rename?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				prepareSupport?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				prepareSupportDefaultBehavior?: identifier
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				honorsChangeAnnotations?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			publishDiagnostics?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				relatedInformation?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				tagSupport?:
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 					valueSet: [unnecessary, deprecated_]
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				versionSupport?: false
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				codeDescriptionSupport?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 				dataSupport?: true
2024-04-11T13:09:31.003 [trace] extension.d:237:initialize 			foldingRange?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				rangeLimit?: 5000
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				lineFoldingOnly?: true
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 			selectionRange?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 			linkedEditingRange?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 			callHierarchy?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 			semanticTokens?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				dynamicRegistration?: true
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				requests:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 					range?: true
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 					full?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 						delta?: true
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				tokenTypes: ["namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator"]
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				tokenModifiers: ["declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary"]
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				formats: [relative]
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				overlappingTokenSupport?: false
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				multilineTokenSupport?: false
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 			moniker?: <null>
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 		window?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 			workDoneProgress?: true
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 			showMessage?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				messageActionItem?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 					additionalPropertiesSupport?: true
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 			showDocument?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				support: true
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 		general?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 			regularExpressions?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				engine: ECMAScript
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				version_?: ES2020
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 			markdown?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				parser: marked
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 				version_?: 1.1.0
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 		experimental?: <null>
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 	trace?: off
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 	workspaceFolders:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 		isSet: true
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 		embed: [WorkspaceFolder("file:///Users/user/code/myproj", "myproj")]
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 	clientInfo?:
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 		name: Visual Studio Code
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 		version_?: 1.86.2
2024-04-11T13:09:31.004 [trace] extension.d:237:initialize 	locale?: en-us
2024-04-11T13:09:31.004 [trace] serverbase.d:128:processRequest Initialized
2024-04-11T13:09:31.030 [trace] serverbase.d:370:__lambda3 Calling notification method setupConfig_Initialized
2024-04-11T13:09:31.030 [trace] async.d:85:setTimeout Setting timeout for 250 ms
2024-04-11T13:09:31.042 [trace] serverbase.d:370:__lambda3 Calling notification method didChangeConfiguration
2024-04-11T13:09:31.043 [error] serverbase.d:428:__lambda2 Failed processing notification: RequestMessage(workspace/didChangeConfiguration: {"settings":{"d":{"servedPath":"/Users/user/code/serve-d/serve-d","stdlibPath":"auto","dcdClientPath":"/Users/user/.code-d/bin/dcd-client","dcdServerPath":"/Users/user/.code-d/bin/dcd-server","dubPath":"/opt/homebrew/bin/dub","dmdPath":"","enableLinting":true,"enableSDLLinting":true,"enableDubLinting":true,"enableStaticLinting":true,"enableAutoComplete":true,"enableFormatting":true,"enableDMDImportTiming":false,"enableCoverageDecoration":true,"enableGCProfilerDecorations":true,"neverUseDub":false,"projectImportPaths":[],"dubConfiguration":"","dubArchType":"","dubBuildType":"","dubCompiler":"/opt/homebrew/bin/ldc2","overrideDfmtEditorconfig":true,"aggressiveUpdate":true,"argumentSnippets":false,"betaStream":false,"servedReleaseChannel":"nightly","smartServedUpdates":true,"scanAllFolders":true,"disabledRootGlobs":[],"extraRoots":[], ... OMITTED ...):mir.ion.exception.IonException@../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/exception.d(297): IonException: unexpected Ion type
----------------
??:? object.Throwable.TraceInfo core.runtime.defaultTraceHandler(void*) [0x103279a37]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/deser/ion.d:136 pure @safe int mir.deser.ion.deserializeIon!(served.types.Configuration, false).deserializeIon!().deserializeIon(scope ref served.types.Configuration, scope const(ubyte)[]).__foreachbody3(const(char[])[], scope mir.ion.value.IonDescribedValue) [0x102773e5f]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/stream.d:42 pure @nogc @safe int mir.ion.stream.IonValueStream.opApply(scope int delegate(scope const(char[])[], scope mir.ion.value.IonDescribedValue) pure @nogc @safe).__lambda2(mir.ion.exception.IonErrorCode, const(char[])[], scope mir.ion.value.IonDescribedValue) [0x102ac7147]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/stream.d:233 const pure nothrow @nogc scope @trusted int mir.ion.stream.IonValueStream.opApply(scope int delegate(mir.ion.exception.IonErrorCode, const(char[])[], scope mir.ion.value.IonDescribedValue) pure nothrow @nogc @safe) [0x102ac7fbb]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/stream.d:247 const pure @nogc scope @trusted int mir.ion.stream.IonValueStream.opApply(scope int delegate(mir.ion.exception.IonErrorCode, const(char[])[], scope mir.ion.value.IonDescribedValue) pure @nogc @safe) [0x102ac706f]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/stream.d:39 const pure @nogc scope @safe int mir.ion.stream.IonValueStream.opApply(scope int delegate(scope const(char[])[], scope mir.ion.value.IonDescribedValue) pure @nogc @safe) [0x102ac7043]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/stream.d:54 const pure scope @trusted int mir.ion.stream.IonValueStream.opApply(scope int delegate(scope const(char[])[], scope mir.ion.value.IonDescribedValue) pure @safe) [0x102ac7173]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/deser/ion.d:134 pure @safe void mir.deser.ion.deserializeIon!(served.types.Configuration, false).deserializeIon!().deserializeIon(scope ref served.types.Configuration, scope const(ubyte)[]) [0x102773c03]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/deser/json.d:47 pure @safe void mir.deser.json.deserializeJson!(served.types.Configuration).deserializeJson(scope ref served.types.Configuration, scope const(char)[]).__lambda3!(mir.ion.internal.stage3.IonErrorInfo, const(ubyte[])).__lambda3(mir.ion.internal.stage3.IonErrorInfo, scope const(ubyte[])) [0x102773bab]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/internal/stage3.d:93 pure nothrow @nogc @trusted void mir.ion.internal.stage3.mir_json2ion(scope const(char)[], scope void delegate(mir.ion.internal.stage3.IonErrorInfoconst , ubyte[]) pure nothrow @nogc @safe) [0x102ac0367]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/internal/stage3.d:675 pure @trusted void mir.ion.internal.stage3.mir_json2ion(scope const(char)[], scope void delegate(mir.ion.internal.stage3.IonErrorInfoconst , ubyte[]) pure @safe) [0x102ac6ffb]
/Users/user/code/serve-d/protocol/source/served/lsp/jsonops.d:39 pure @safe served.types.Configuration served.lsp.jsonops.deserializeJson!(served.types.Configuration).deserializeJson(scope const(char)[]) [0x102773ac7]
/Users/user/code/serve-d/serverbase/source/served/utils/serverconfig.d:265 void served.extension.__mixin76.didChangeConfiguration(served.lsp.jsonops.RootJsonToken) [0x102746953]
/Users/user/code/serve-d/serverbase/source/served/utils/events.d:132 void served.types.lspRouter.eventProcessor.emitProtocol!(served.utils.events.protocolNotification, served.types.lspRouter.processNotify(served.lsp.protocol.RequestMessageRaw).__lambda3, false).emitProtocol(immutable(char)[], immutable(char)[]).__lambda4!(immutable(char)[], void function(served.lsp.jsonops.RootJsonToken)*, served.utils.events.protocolNotification).__lambda4(immutable(char)[], void function(served.lsp.jsonops.RootJsonToken)*, served.utils.events.protocolNotification).callSymbol() [0x10274657b]
/Users/user/code/serve-d/serverbase/source/served/serverbase.d:373 void served.types.lspRouter.processNotify(served.lsp.protocol.RequestMessageRaw).__lambda3!(immutable(char)[], void delegate(), served.utils.events.protocolNotification).__lambda3(immutable(char)[], void delegate(), served.utils.events.protocolNotification) [0x102745f0f]
/Users/user/code/serve-d/serverbase/source/served/utils/events.d:146 bool served.types.lspRouter.eventProcessor.emitProtocol!(served.utils.events.protocolNotification, served.types.lspRouter.processNotify(served.lsp.protocol.RequestMessageRaw).__lambda3, false).emitProtocol(immutable(char)[], immutable(char)[]).__lambda4!(immutable(char)[], void function(served.lsp.jsonops.RootJsonToken)*, served.utils.events.protocolNotification).__lambda4(immutable(char)[], void function(served.lsp.jsonops.RootJsonToken)*, served.utils.events.protocolNotification) [0x10274651b]
/Users/user/code/serve-d/serverbase/source/served/utils/events.d:597 bool served.types.lspRouter.eventProcessor.__mixin10.iterateExtensionMethodsByUDA!(served.utils.events.protocolNotification, served.types.lspRouter.eventProcessor.emitProtocol!(served.utils.events.protocolNotification, served.types.lspRouter.processNotify(served.lsp.protocol.RequestMessageRaw).__lambda3, false).emitProtocol(immutable(char)[], immutable(char)[]).__lambda4, false).iterateExtensionMethodsByUDA() [0x102745087]
/Users/user/code/serve-d/serverbase/source/served/utils/events.d:117 bool served.types.lspRouter.eventProcessor.emitProtocol!(served.utils.events.protocolNotification, served.types.lspRouter.processNotify(served.lsp.protocol.RequestMessageRaw).__lambda3, false).emitProtocol(immutable(char)[], immutable(char)[]) [0x10265f793]
/Users/user/code/serve-d/serverbase/source/served/serverbase.d:369 void served.types.lspRouter.processNotify(served.lsp.protocol.RequestMessageRaw) [0x10265f2ff]
/Users/user/code/serve-d/serverbase/source/served/serverbase.d:423 void served.types.lspRouter.gotNotify(served.lsp.protocol.RequestMessageRaw).__lambda2() [0x10265fe17]
??:? fiber_entryPoint [0x10327af23]
2024-04-11T13:09:31.787 [trace] async.d:44:parallelMain Calling timeout
2024-04-11T13:09:31.787 [trace] serverconfig.d:382:syncConfiguration Sending workspace/configuration request for 
2024-04-11T13:09:31.787 [trace] serverbase.d:237:__lambda23 Calling request method addDependencySnippet
2024-04-11T13:09:31.800 [trace] serverbase.d:237:__lambda23 Calling request method addDependencySnippet
2024-04-11T13:09:31.812 [trace] serverbase.d:237:__lambda23 Calling request method addDependencySnippet
2024-04-11T13:09:31.823 [trace] serverbase.d:237:__lambda23 Calling request method addDependencySnippet
2024-04-11T13:09:31.835 [trace] serverbase.d:237:__lambda23 Calling request method addDependencySnippet
mir.ion.exception.IonException@../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/exception.d(297): IonException: unexpected Ion type
----------------
??:? object.Throwable.TraceInfo core.runtime.defaultTraceHandler(void*) [0x103279a37]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/deser/ion.d:136 pure @safe int mir.deser.ion.deserializeIon!(served.types.Configuration, false).deserializeIon!().deserializeIon(scope ref served.types.Configuration, scope const(ubyte)[]).__foreachbody3(const(char[])[], scope mir.ion.value.IonDescribedValue) [0x102773e5f]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/stream.d:42 pure @nogc @safe int mir.ion.stream.IonValueStream.opApply(scope int delegate(scope const(char[])[], scope mir.ion.value.IonDescribedValue) pure @nogc @safe).__lambda2(mir.ion.exception.IonErrorCode, const(char[])[], scope mir.ion.value.IonDescribedValue) [0x102ac7147]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/stream.d:233 const pure nothrow @nogc scope @trusted int mir.ion.stream.IonValueStream.opApply(scope int delegate(mir.ion.exception.IonErrorCode, const(char[])[], scope mir.ion.value.IonDescribedValue) pure nothrow @nogc @safe) [0x102ac7fbb]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/stream.d:247 const pure @nogc scope @trusted int mir.ion.stream.IonValueStream.opApply(scope int delegate(mir.ion.exception.IonErrorCode, const(char[])[], scope mir.ion.value.IonDescribedValue) pure @nogc @safe) [0x102ac706f]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/stream.d:39 const pure @nogc scope @safe int mir.ion.stream.IonValueStream.opApply(scope int delegate(scope const(char[])[], scope mir.ion.value.IonDescribedValue) pure @nogc @safe) [0x102ac7043]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/stream.d:54 const pure scope @trusted int mir.ion.stream.IonValueStream.opApply(scope int delegate(scope const(char[])[], scope mir.ion.value.IonDescribedValue) pure @safe) [0x102ac7173]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/deser/ion.d:134 pure @safe void mir.deser.ion.deserializeIon!(served.types.Configuration, false).deserializeIon!().deserializeIon(scope ref served.types.Configuration, scope const(ubyte)[]) [0x102773c03]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/deser/json.d:47 pure @safe void mir.deser.json.deserializeJson!(served.types.Configuration).deserializeJson(scope ref served.types.Configuration, scope const(char)[]).__lambda3!(mir.ion.internal.stage3.IonErrorInfo, const(ubyte[])).__lambda3(mir.ion.internal.stage3.IonErrorInfo, scope const(ubyte[])) [0x102773bab]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/internal/stage3.d:93 pure nothrow @nogc @trusted void mir.ion.internal.stage3.mir_json2ion(scope const(char)[], scope void delegate(mir.ion.internal.stage3.IonErrorInfoconst , ubyte[]) pure nothrow @nogc @safe) [0x102ac0367]
/Users/user/code/serve-d/../../../.dub/packages/mir-ion/2.2.1/mir-ion/source/mir/ion/internal/stage3.d:675 pure @trusted void mir.ion.internal.stage3.mir_json2ion(scope const(char)[], scope void delegate(mir.ion.internal.stage3.IonErrorInfoconst , ubyte[]) pure @safe) [0x102ac6ffb]
/Users/user/code/serve-d/protocol/source/served/lsp/jsonops.d:39 pure @safe served.types.Configuration served.lsp.jsonops.deserializeJson!(served.types.Configuration).deserializeJson(scope const(char)[]) [0x102773ac7]
/Users/user/code/serve-d/serverbase/source/served/utils/serverconfig.d:265 void served.extension.__mixin76.didChangeConfiguration(served.lsp.jsonops.RootJsonToken) [0x102746953]
/Users/user/code/serve-d/serverbase/source/served/utils/events.d:132 void served.types.lspRouter.eventProcessor.emitProtocol!(served.utils.events.protocolNotification, served.types.lspRouter.processNotify(served.lsp.protocol.RequestMessageRaw).__lambda3, false).emitProtocol(immutable(char)[], immutable(char)[]).__lambda4!(immutable(char)[], void function(served.lsp.jsonops.RootJsonToken)*, served.utils.events.protocolNotification).__lambda4(immutable(char)[], void function(served.lsp.jsonops.RootJsonToken)*, served.utils.events.protocolNotification).callSymbol() [0x10274657b]
/Users/user/code/serve-d/serverbase/source/served/serverbase.d:373 void served.types.lspRouter.processNotify(served.lsp.protocol.RequestMessageRaw).__lambda3!(immutable(char)[], void delegate(), served.utils.events.protocolNotification).__lambda3(immutable(char)[], void delegate(), served.utils.events.protocolNotification) [0x102745f0f]
/Users/user/code/serve-d/serverbase/source/served/utils/events.d:146 bool served.types.lspRouter.eventProcessor.emitProtocol!(served.utils.events.protocolNotification, served.types.lspRouter.processNotify(served.lsp.protocol.RequestMessageRaw).__lambda3, false).emitProtocol(immutable(char)[], immutable(char)[]).__lambda4!(immutable(char)[], void function(served.lsp.jsonops.RootJsonToken)*, served.utils.events.protocolNotification).__lambda4(immutable(char)[], void function(served.lsp.jsonops.RootJsonToken)*, served.utils.events.protocolNotification) [0x10274651b]
/Users/user/code/serve-d/serverbase/source/served/utils/events.d:597 bool served.types.lspRouter.eventProcessor.__mixin10.iterateExtensionMethodsByUDA!(served.utils.events.protocolNotification, served.types.lspRouter.eventProcessor.emitProtocol!(served.utils.events.protocolNotification, served.types.lspRouter.processNotify(served.lsp.protocol.RequestMessageRaw).__lambda3, false).emitProtocol(immutable(char)[], immutable(char)[]).__lambda4, false).iterateExtensionMethodsByUDA() [0x102745087]
/Users/user/code/serve-d/serverbase/source/served/utils/events.d:117 bool served.types.lspRouter.eventProcessor.emitProtocol!(served.utils.events.protocolNotification, served.types.lspRouter.processNotify(served.lsp.protocol.RequestMessageRaw).__lambda3, false).emitProtocol(immutable(char)[], immutable(char)[]) [0x10265f793]
/Users/user/code/serve-d/serverbase/source/served/serverbase.d:369 void served.types.lspRouter.processNotify(served.lsp.protocol.RequestMessageRaw) [0x10265f2ff]
/Users/user/code/serve-d/serverbase/source/served/serverbase.d:423 void served.types.lspRouter.gotNotify(served.lsp.protocol.RequestMessageRaw).__lambda2() [0x10265fe17]
??:? fiber_entryPoint [0x10327af23]
[Info  - 1:09:33 PM] Connection to server got closed. Server will restart.

@redthing1 redthing1 changed the title serve-d fails to initialize after updating to VSCode 1.87.2 serve-d fails to initialize: Failed processing notification: mir.ion.exception.IonException: unexpected Ion type Apr 11, 2024
@redthing1
Copy link
Author

I believe I found the issue: looks like my settings synced at the same time the update happened. The problematic part of the config:

    "editor.rulers": [
        {
            "color": "#e2c75b",
            "column": 160
        },
        {
            "color": "#ee3656",
            "column": 180
        }
    ],

I had done this earlier based on this comment on another issue; looks like setting the above settings causes initialization to fail in this way?

I'm not sure what about it causes the crash, but I can definitely reproduce that adding in the above config makes it crash with the above error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants