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

Missing error messages for usage of PNimrodNode in non-compiletime code #14

Closed
ddlsmurf opened this issue Feb 10, 2011 · 0 comments
Closed
Assignees

Comments

@ddlsmurf
Copy link
Contributor

This compiles:
import macros
proc makeMacro: PObject =
result = nil
var p = makeMacro
This doesn't:
import macros
proc makeMacro: PNimrodNode =
result = nil
var p = makeMacro

Dump:
Hint: used config file '/Users/eric/Documents/Private/Code/nimrod/Compiler/Nimrod/config/nimrod.cfg' [Conf]
Hint: system [Processing]
Hint: test [Processing]
Hint: macros [Processing]
Hint: strutils [Processing]
Hint: parseutils [Processing]
Error: internal error: mapType
Traceback (most recent call last)
nimrod.nim(85)(?): nimrod
nimrod.nim(69)(?): HandleCmdLine
main.nim(194)(?): MainCommand
main.nim(120)(?): CommandCompileToC
main.nim(95)(?): CompileProject
main.nim(90)(?): CompileModule
passes.nim(134)(?): processModule
passes.nim(98)(?): processTopLevelStmt
cgen.nim(917)(?): myProcess
ccgstmts.nim(719)(?): genStmts
cgen.nim(677)(?): genProc
cgen.nim(659)(?): genProcNoForward
cgen.nim(654)(?): genProcPrototype
ccgtypes.nim(523)(?): genProcHeader
ccgtypes.nim(181)(?): genProcParams
ccgtypes.nim(122)(?): isInvalidReturnType
ccgtypes.nim(105)(?): mapType
msgs.nim(487)(?): InternalError
msgs.nim(457)(?): rawMessage
msgs.nim(454)(?): rawMessage
msgs.nim(410)(?): handleError
Error: unhandled exception: [Assertion failure] file: rod/msgs.nim line: 410
[EAssertionFailed]

@ghost ghost assigned Araq Jul 23, 2011
@Araq Araq closed this as completed in a72034a Mar 17, 2012
krux02 pushed a commit to krux02/Nim that referenced this issue Jan 11, 2022
This pull introduces the first iteration of CI for nimskull, targeting only x64 Linux

Current CI features:
- Compiler/stdlib testing
- Docgen

The CI exposes a "All check passed" status which can be used to enforce required checks.

Included with this pull are fixes to some tests that was failing.

Co-authored-by: Saem Ghani <saemghani+github@gmail.com>
Co-authored-by: flywind <xzsflywind@gmail.com>
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