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

Consistent restarts on lite-xl and Vscode due to missing configs. #387

Open
lsnellm1 opened this issue Feb 18, 2025 · 2 comments
Open

Consistent restarts on lite-xl and Vscode due to missing configs. #387

lsnellm1 opened this issue Feb 18, 2025 · 2 comments

Comments

@lsnellm1
Copy link

It seems that the server is asking for various configs, but the ReadMe never specifies where the configs are supposed to be, or how to tell serve-d to look for them. This is on the nightly release, but AFAIK this was also a problem on the most recent stable version as well.

lite-xl log here:
Image

@WebFreak001
Copy link
Member

for the config logs: serve-d is using standard values if you haven't configured any overrides, see

struct D
{
@serdeOptional:
Nullable!(string, string[]) stdlibPath = Nullable!(string, string[])("auto");
string dcdClientPath = "dcd-client", dcdServerPath = "dcd-server";
string dubPath = "dub";
string dmdPath = "dmd";
bool enableLinting = true;
bool enableSDLLinting = true;
bool enableStaticLinting = true;
bool enableDubLinting = true;
bool enableAutoComplete = true;
bool enableAutoImportCompletions = true;
bool enableFormatting = true;
bool enableIndex = true;
bool enableDMDImportTiming = false;
bool enableCoverageDecoration = true;
bool enableGCProfilerDecorations = true;
bool enableDCDHighlight = true;
bool enableFallbackHighlight = true;
bool neverUseDub = false;
string[] projectImportPaths;
string dubConfiguration;
string dubArchType;
string dubBuildType;
string dubCompiler;
bool overrideDfmtEditorconfig = true;
bool aggressiveUpdate = false; // differs from default code-d settings on purpose!
DubUpgradeAction forceDownloadDependencies = DubUpgradeAction.ask;
bool argumentSnippets = false;
bool scanAllFolders = true;
string[] disabledRootGlobs;
string[] extraRoots;
string manyProjectsAction = ManyProjectsAction.ask;
int manyProjectsThreshold = 6;
string lintOnFileOpen = "project";
bool dietContextCompletion = false;
bool generateModuleNames = true;
}
struct DFmt
{
@serdeOptional:
bool alignSwitchStatements = true;
string braceStyle = "allman";
bool outdentAttributes = true;
bool spaceAfterCast = true;
bool splitOperatorAtLineEnd = false;
bool selectiveImportSpace = true;
bool compactLabeledStatements = true;
string templateConstraintStyle = "conditional_newline_indent";
bool spaceBeforeFunctionParameters = false;
bool singleTemplateConstraintIndent = false;
bool spaceBeforeAAColon = false;
bool keepLineBreaks = true;
bool singleIndent = true;
}
struct DScanner
{
@serdeOptional:
string[] ignoredKeys;
string[] excludedFiles;
}
struct SDL
{
@serdeOptional:
bool enableFormatting = true;
bool whitespaceAroundEquals = false;
int backslashTempIndent = 2;
}
struct Editor
{
@serdeOptional:
JsonValue[] rulers;
int tabSize;
int[] parseRulers() const
{
int[] ret;
foreach (value; rulers)
{
switch (value.kind)
{
case JsonValue.Kind.object:
auto obj = value.get!(StringMap!JsonValue);
if (auto v = "column" in obj)
{
ret ~= cast(int) v.get!long;
}
break;
case JsonValue.Kind.integer:
ret ~= cast(int) value.get!long;
break;
default:
break;
}
}
return ret;
}
}
struct Git
{
@serdeOptional:
string path = "git";
}

Do you have the exit code or other logs when it restarts? It might just be segfaulting due to some other issue

@lsnellm1
Copy link
Author

Do you know where the logs might be stored? I don't see any specific exit codes in lite-xl's log, at the very least. Everything else is just saying it's loading, and then restarting because the config is messed up.

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

No branches or pull requests

2 participants