From d7543ed1251e71613bfaa68fc034e25829eec4af Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 11 Nov 2025 11:46:14 +0100 Subject: [PATCH] make nimsuggest compile again --- compiler/passes.nim | 4 ++-- compiler/suggest.nim | 2 +- nimsuggest/nimsuggest.nim | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/compiler/passes.nim b/compiler/passes.nim index c7c7fc5e3e..5047ed1085 100644 --- a/compiler/passes.nim +++ b/compiler/passes.nim @@ -173,7 +173,7 @@ proc compileModule*(graph: ModuleGraph; fileIdx: FileIndex; flags: TSymFlags, fr let filename = AbsoluteFile toFullPath(graph.config, fileIdx) if result == nil: result = newModule(graph, fileIdx) - result.flags.incl flags + result.incl flags registerModule(graph, result) processModuleAux("import") else: @@ -185,7 +185,7 @@ proc compileModule*(graph: ModuleGraph; fileIdx: FileIndex; flags: TSymFlags, fr replayStateChanges(graph.packed.pm[m.int].module, graph) replayGenericCacheInformation(graph, m.int) elif graph.isDirty(result): - result.flags.excl sfDirty + result.excl sfDirty # reset module fields: initStrTables(graph, result) result.ast = nil diff --git a/compiler/suggest.nim b/compiler/suggest.nim index 7be74f5190..5c3265dba2 100644 --- a/compiler/suggest.nim +++ b/compiler/suggest.nim @@ -590,7 +590,7 @@ when defined(nimsuggest): let infoAsInt = info.infoToInt for infoB in s.allUsages: if infoB.infoToInt == infoAsInt: return - s.allUsages.add(info) + s.allUsagesImpl.add(info) proc findUsages(g: ModuleGraph; info: TLineInfo; s: PSym; usageSym: var PSym) = if g.config.suggestVersion == 1: diff --git a/nimsuggest/nimsuggest.nim b/nimsuggest/nimsuggest.nim index 6144352f05..0e303cafae 100644 --- a/nimsuggest/nimsuggest.nim +++ b/nimsuggest/nimsuggest.nim @@ -1151,9 +1151,9 @@ proc executeNoHooksV3(cmd: IdeCmd, file: AbsoluteFile, dirtyfile: AbsoluteFile, # ideSug/ideCon performs partial build of the file, thus mark it dirty for the # future calls. graph.markDirtyIfNeeded(file.string, fileIndex) - graph.recompilePartially(fileIndex) + graph.recompilePartially(fileIndex) let m = graph.getModule fileIndex - incl m.flags, sfDirty + incl m, sfDirty of ideOutline: let n = parseFile(fileIndex, graph.cache, graph.config) graph.iterateOutlineNodes(n, graph.fileSymbols(fileIndex).deduplicateSymInfoPair(false))