nim-lang / nimsuggest

idetools for the nim language
MIT License
42 stars 9 forks source link

[BUG] Cannot nimsuggest any nim files #134

Open madonuko opened 6 months ago

madonuko commented 6 months ago

Problem

/usr/lib/nim/compiler: aliasanalysis.nim ccgtypes.nim docgen2.nim installer.ini magicsys.nim nimeval.nim pipelines.nim sem.nim semtypes.nim typesrenderer.nim aliases.nim ccgutils.nim enumtostr.nim int128.nim main.nim nimlexbase.nim pipelineutils.nim semcall.nim semtypinst.nim varpartitions.nim ast.nim cgen.nim errorhandling.nim isolation_check.nim mapping.txt nimpaths.nim platform.nim semdata.nim sighashes.nim vm.nim astalgo.nim cgendata.nim evalffi.nim jsgen.nim modulegraphs.nim nimsets.nim plugins semexprs.nim sigmatch.nim vmconv.nim astmsgs.nim cgmeth.nim evaltempl.nim jstypes.nim modulepaths.nim nodejs.nim pluginsupport.nim semfields.nim sinkparameter_inference.nim vmdef.nim backendpragmas.nim closureiters.nim extccomp.nim lambdalifting.nim modules.nim nversion.nim pragmas.nim semfold.nim sizealignoffsetimpl.nim vmdeps.nim bitsets.nim cmdlinehelper.nim filter_tmpl.nim layouter.nim msgs.nim optimizer.nim prefixmatches.nim semgnrc.nim sourcemap.nim vmgen.nim btrees.nim commands.nim filters.nim lexer.nim ndi.nim options.nim procfind.nim seminst.nim spawn.nim vmhooks.nim ccgcalls.nim compiler.nimble gorgeimpl.nim liftdestructors.nim nilcheck.nim packagehandling.nim readme.md semmacrosanity.nim suggest.nim vmmarshal.nim ccgexprs.nim concepts.nim guards.nim liftlocals.nim nim packages.nim renderer.nim semmagic.nim syntaxes.nim vmops.nim ccgliterals.nim condsyms.nim hlo.nim lineinfos.nim nim.cfg parampatterns.nim renderverbatim.nim semobjconstr.nim tccgen.nim vmprofiler.nim ccgmerge_unused.nim debuginfo.nim ic linter.nim nim.nim parser.nim reorder.nim semparallel.nim transf.nim wordrecg.nim ccgreset.nim debugutils.nim idents.nim llstream.nim nim.nimble passaux.nim rodutils.nim sempass2.nim trees.nim
ccgstmts.nim depends.nim importer.nim lookups.nim nim1 passes.nim ropes.nim semstmts.nim treetab.nim
ccgthreadvars.nim dfa.nim index.nim lowerings.nim nimblecmd.nim pathutils.nim saturate.nim semstrictfuncs.nim typeallowed.nim
ccgtrav.nim docgen.nim injectdestructors.nim macrocacheimpl.nim nimconf.nim patterns.nim scriptconfig.nim semtempl.nim types.nim

/usr/lib/nim/lib: arch cycle.h deps.txt genode impure libnimrtl.so nimbase.h nimhcr.nim.cfg nimrtl.nim.cfg posix std system system_overview.rst wrappers core deprecated experimental genode_cpp js nim nimhcr.nim nimrtl.nim packages pure stdlib.nimble system.nim windows

See [Output of `tree /usr/lib/nim/lib`](https://gist.github.com/madonuko/e0c43da638e1ed8e8f216d3b95ea8e8e).

- Also, `nim` and `nimble` works just fine. Here's an example:

$ nim r test.nim Hint: used config file '/etc/nim/nim.cfg' [Conf] Hint: used config file '/etc/nim/config.nims' [Conf] Hint: used config file '/mnt/stuff/chubby/umupgrader/config.nims' [Conf] ...................................................................... CC: ../../../../usr/lib/nim/lib/system/exceptions.nim CC: ../../../../usr/lib/nim/lib/std/private/digitsutils.nim CC: ../../../../usr/lib/nim/lib/system/dollars.nim CC: ../../../../usr/lib/nim/lib/system.nim CC: test.nim Hint: [Link] Hint: mm: orc; threads: on; opt: none (DEBUG BUILD, -d:release generates faster code) 37310 lines; 3.117s; 37.66MiB peakmem; proj: /mnt/stuff/chubby/umupgrader/test.nim; out: /home/mado/.cache/nim/test_d/test_D8D8557ECD84DDFE687A7585D4E47DCF30A70A6C [SuccessX] Hint: /home/mado/.cache/nim/test_d/test_D8D8557ECD84DDFE687A7585D4E47DCF30A70A6C [Exec] hai


## Installation

$ nim -v Nim Compiler Version 2.0.2 [Linux: amd64] Compiled at 2024-03-20 Copyright (c) 2006-2023 by Andreas Rumpf

active boot switches: -d:release -d:nimUseLinenoise $ nimsuggest -v Nim Compiler Version 2.0.2 [Linux: amd64] Compiled at 2024-03-20 Copyright (c) 2006-2023 by Andreas Rumpf

active boot switches: -d:release --gc:markAndSweep


I compiled/installed nim manually.