Comments (5)
This seems like a nimterop bug, I'll try to reproduce this and talk about this to @genotrance.
Meanwhile, make sure that you're running latest nimterop and regex, they have caused some problems for me on devel.
(oops, closed accidentally)
from euwren.
Unfortunately nimterop does not have ARC support yet, you'll have to use a different GC for the time being.
from euwren.
Alright. Thanks for checking into this. Here's hoping they can get that fixed up soon!
from euwren.
This isn't a nimterop issue. If you compile just src/euwren/private/wren.nim
with --gc:arc
, it builds fine. If you add a cDebug()
and write the wrapper to a file and compile that output (eliminating nimterop beyond that point), that works too. If you import this static wrapper and compile euwren.nim
, it fails as described in this issue.
There's something in euwren.nim
that is breaking with arc but it is totally unclear which specific line is causing this. There is no hint for what the issue is. Here's the stack trace from koch temp
. Hopefully, @Araq has some ideas.
/home/dir/nimdevel/compiler/nim.nim(118) nim
/home/dir/nimdevel/compiler/nim.nim(95) handleCmdLine
/home/dir/nimdevel/compiler/cmdlinehelper.nim(77) loadConfigsAndRunMainCommand
/home/dir/nimdevel/compiler/main.nim(190) mainCommand
/home/dir/nimdevel/compiler/main.nim(92) commandCompileToC
/home/dir/nimdevel/compiler/modules.nim(143) compileProject
/home/dir/nimdevel/compiler/modules.nim(84) compileModule
/home/dir/nimdevel/compiler/passes.nim(216) processModule
/home/dir/nimdevel/compiler/passes.nim(86) processTopLevelStmt
/home/dir/nimdevel/compiler/sem.nim(604) myProcess
/home/dir/nimdevel/compiler/sem.nim(572) semStmtAndGenerateGenerics
/home/dir/nimdevel/compiler/semstmts.nim(2303) semStmt
/home/dir/nimdevel/compiler/semexprs.nim(1006) semExprNoType
/home/dir/nimdevel/compiler/semexprs.nim(2801) semExpr
/home/dir/nimdevel/compiler/importer.nim(218) evalImport
/home/dir/nimdevel/compiler/importer.nim(188) impMod
/home/dir/nimdevel/compiler/importer.nim(158) myImportModule
/home/dir/nimdevel/compiler/modules.nim(98) importModule
/home/dir/nimdevel/compiler/modules.nim(84) compileModule
/home/dir/nimdevel/compiler/passes.nim(216) processModule
/home/dir/nimdevel/compiler/passes.nim(86) processTopLevelStmt
/home/dir/nimdevel/compiler/sem.nim(604) myProcess
/home/dir/nimdevel/compiler/sem.nim(572) semStmtAndGenerateGenerics
/home/dir/nimdevel/compiler/semstmts.nim(2303) semStmt
/home/dir/nimdevel/compiler/semexprs.nim(1006) semExprNoType
/home/dir/nimdevel/compiler/semexprs.nim(2786) semExpr
/home/dir/nimdevel/compiler/semstmts.nim(2082) semProc
/home/dir/nimdevel/compiler/semstmts.nim(2001) semProcAux
/home/dir/nimdevel/compiler/semexprs.nim(1764) semProcBody
/home/dir/nimdevel/compiler/semexprs.nim(2768) semExpr
/home/dir/nimdevel/compiler/semstmts.nim(2243) semStmtList
/home/dir/nimdevel/compiler/semexprs.nim(2679) semExpr
/home/dir/nimdevel/compiler/semexprs.nim(2271) semMagic
/home/dir/nimdevel/compiler/semexprs.nim(988) semDirectOp
/home/dir/nimdevel/compiler/semexprs.nim(888) afterCallActions
/home/dir/nimdevel/compiler/ast.nim(1100) magicsAfterOverloadResolution
/home/dir/nimdevel/lib/system/fatal.nim(49) sysFatal
Error: unhandled exception: 'sym' is not accessible using discriminant 'kind' of type 'TNode' [FieldError]
FAILURE
from euwren.
@genotrance, right. I already encountered at least two more issues where euwren triggered some edge case in the compiler in the past, I may be able to debug this myself somehow.
Unfortunately I wasn't able to report them properly since I wasn't able to reproduce them in a minimal example.
from euwren.
Related Issues (16)
- Enums HOT 1
- Constructor aliasing HOT 1
- Code restructuring HOT 2
- Exception handling in foreign procs HOT 2
- Tuples HOT 1
- Documentation generator
- Inline procs HOT 1
- Symbol aliasing HOT 1
- Inheritance in type checking
- Explicit static methods HOT 1
- Generate foreign binding code implicitly HOT 1
- Improve type check messages HOT 1
- Foreign types are not supported as return types from foreign procs HOT 1
- Allow for foreign types without constructors HOT 1
- List support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from euwren.