Araq / nimedit

NimEdit is the new upcoming slim IDE/editor for the Nim programming language. Currently it is hardly usable at all! It's been open sourced in the hope it will speed up its development process.
https://nim-lang.org/nimedit/
MIT License
108 stars 12 forks source link

window is displayed, but there are lots of errors in the console #21

Closed matkuki closed 5 months ago

matkuki commented 2 years ago

Tested on Windows and Linux and both display NimEdit, but there are a lot of errors in the right console window: image

C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(28, 8) Error: cannot open file: macros
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(43, 12) Error: undeclared identifier: 'bindSym'
candidates (edit distance, scope distance); see '--spellSuggest': 
 (3, 4): 'binDir' [var declared in C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\system\nimscript.nim(441, 5)]
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(43, 19) Error: attempting to call routine: 'bindSym'
  found 'bindSym' [unknown declared in C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(43, 12)]
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(43, 19) Error: attempting to call routine: 'bindSym'
  found 'bindSym' [unknown declared in C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(43, 12)]
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(43, 19) Error: expression 'bindSym' cannot be called
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(43, 19) Error: expression '' has no type (or is ambiguous)
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(43, 7) Error: 'let' symbol requires an initialization
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(44, 12) Error: undeclared identifier: 'newCall'
candidates (edit distance, scope distance); see '--spellSuggest': 
 (3, 4): 'readAll' [proc declared in C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\system\io.nim(581, 6)]
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(44, 20) Error: expression 'fn' has no type (or is ambiguous)
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(44, 19) Error: attempting to call routine: 'newCall'
  found 'newCall' [unknown declared in C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(44, 12)]
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(44, 19) Error: attempting to call routine: 'newCall'
  found 'newCall' [unknown declared in C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\bitops.nim(44, 12)]
... and many more lines of these errors

Could I get a hint please, of where to look to start fixing this?

Araq commented 2 years ago

Could I get a hint please, of where to look to start fixing this?

I think choosenim based installations are not really supported. Search for what paths are passed to "lib" in the NimScript layer.

matkuki commented 2 years ago

Adding the lib/core and lib/system to the nimscript search path fixes almost all except these 4 errors:

C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\core\macros.nim(1168, 49) template/generic instantiation of `$` from here
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\system\dollars.nim(145, 21) template/generic instantiation of `collectionToString` from here
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\system\dollars.nim(129, 67) Error: type mismatch
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\core\macros.nim(1168, 49) template/generic instantiation of `$` from here
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\system\dollars.nim(145, 21) template/generic instantiation of `collectionToString` from here
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\system\dollars.nim(136, 13) template/generic instantiation of `addQuoted` from here
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\system.nim(2930, 18) Error: type mismatch
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\strutils.nim(1497, 39) template/generic instantiation of `$` from here
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\system\dollars.nim(107, 69) Error: type mismatch
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\strutils.nim(1497, 39) template/generic instantiation of `$` from here
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\system\dollars.nim(111, 15) template/generic instantiation of `addQuoted` from here
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\system.nim(2930, 18) Error: type mismatch
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\pure\strutils.nim(1497, 39) template/generic instantiation of `$` from here
C:\Users\matic\.choosenim\toolchains\nim-1.6.8\lib\system\dollars.nim(107, 69) Error: type mismatch

Any hints on why there are these type mismatches?