Comments (2)
The order was reversed due to topological sort of classes declared in RBS (to process a superclass earlier, a subclass later).
Now, TypeProf outputs Matrix
, Vector
, and ExceptionForMatrix
. This is because TypeProf defines Matrix
and Vector
based on matrix.rbs, and then defines ExceptionForMatrix
based on lib/matrix.rb. I'm unsure if this is the best order, but this is where things are currently.
$ time bundle exec exe/typeprof ../ruby/lib/matrix.rb matrix.rbs
# Classes
class Matrix
...
end
class Vector
...
end
module ExceptionForMatrix
...
end
real 0m6.422s
user 0m6.322s
sys 0m0.091s
BTW, I've investigated the performance bottleneck in analysis of matrix.rb, and found a heavy but useless calculation. By removing it, now the analysis takes about a few seconds. (But note that it may become longer again in future by further precision improvement.)
from typeprof.
Now, TypeProf outputs Matrix, Vector, and ExceptionForMatrix. This is because TypeProf defines Matrix and Vector based on matrix.rbs, and then defines ExceptionForMatrix based on lib/matrix.rb. I'm unsure if this is the best order
Sounds perfect!
from typeprof.
Related Issues (20)
- undefined method: singleton HOT 1
- A feature to ignore errors on a specified line
- Error message with rbs_collection HOT 7
- Updating a Rails app to Ruby 3.1.2 breaks typrof HOT 1
- Importing RBS::AST::Members::ClassInstanceVariable is not supported yet
- Typing of dynamic methods and variables
- Fail to start TypeProf for IDE on zsh
- Typeprof failed to start when rbs_collection.lock.yaml doesn't exist.
- tests not working for 0.21.7 on ruby 3.1 HOT 1
- test dependency sider/goodcheck is gone HOT 1
- Rail's JSON support causes issues HOT 2
- URI require issue HOT 1
- Auto-commenting of methods doesn't handle multiple lines
- Enumerator expects 2 arguments
- Type `::Range` is generic but used as a non generic type
- Methods defined in a Struct.new block end up on parent module
- `include Enumerable` causes error
- Instance variables are sometimes incorrectly added to `Object` HOT 1
- Instance variables in subclasses sometimes are defined incorrectly HOT 2
- vscode error: typeprof running on wrong ruby HOT 4
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 typeprof.