Comments (7)
This is expected. JET should report error when the interface is missing the required implementation.
from jet.jl.
This is expected. JET should report error when the interface is missing the required implementation.
but then why does it not complain in the second case? children(::Int)
is defined but children(::Any)
isn't
from jet.jl.
Because you're using the default unsound analysis mode. You can use report_package(...; mode=:sound)
to use the sound mode, although it usually results in lots of false positives reports.
from jet.jl.
Hi,
thanks for your quick answer, but I get the same error with :sound
julia> report_package("SCEngine";mode=:sound)
[toplevel-info] virtualized the context of Main (took 0.02 sec)
[toplevel-info] entered into /home/dani/source/repos/sc-engine/src/SCEngine.jl
[ Info: Loading module SCEngine
[toplevel-info] exited from /home/dani/source/repos/sc-engine/src/SCEngine.jl (took 2.527 sec)
[toplevel-info] analyzing from top-level definitions (2/2)
[toplevel-info] analyzed 2 top-level definitions (took 1.907 sec)
═════ 334 possible errors found ═════
┌ @ M.children(root)
│ no matching method found `children(::Any)`: M.children(root::Any)
from jet.jl.
I guess that the error message means you are missing any children
implementation.
from jet.jl.
ok, not a big deal since it's easy to add a single implementation. A more precise error message would be useful.
thanks!
from jet.jl.
To summarize:
- when there aren't any implementation: both
:basic
and:sound
mode should report an error - when there is some implementation available but the interface signature isn't fully covered: only the
:sound
mode should report an error
from jet.jl.
Related Issues (20)
- JET doesn't analyze expression given to `@btime` HOT 5
- false positive MethodErrorReport Base.@kwdef with non used parameter HOT 1
- Use depth-limited type printing, from Julia 1.10 HOT 1
- @test_opt without the printing HOT 2
- Ignore given function name in `JET.test_package`
- Incomplete types break JET on Julia 1.10 HOT 1
- More readable "no method was found" messages with !Matched indication HOT 1
- Stack overflow in inference HOT 1
- Include submodules in `target_modules`?
- UI feature request: better (or at least larger) callstack browser HOT 1
- JET error `invalid lookup expr` with new `public` keyword HOT 7
- Julia nightly (1.12) failures HOT 1
- errors on 1.11.0-rc1 HOT 2
- Interaction with `ChainRulesCore.@non_differentiable` HOT 2
- Possible regression in Julia 1.11 for throw block HOT 3
- `AnyFrameModule` error HOT 3
- JET doesn't find errors when run in the tests HOT 2
- `skip_unoptimized_throw_blocks` does not ignore error exceptions
- Significant regression in TTFX, Julia 1.11
- `JET.@report_trim` or similar to find issues that would prevent trimming 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 jet.jl.