Comments (8)
Okay. Reopening this issue. (I don't think I have bandwidth to do this for a while, but someone else would have!)
from rbs.
FYI, a report about this on the truffleruby tracker: oracle/truffleruby#2691
from rbs.
Good point!
I decided to use RubyVM::AbstractSyntaxTree
because it's included MRuby and doesn't require additional dependencies. One option would be to make prototype
commands an external library and uses parser
gem (or something else if exists.)
from rbs.
because it's included MRuby
You mean CRuby, right? I think MRuby doesn't have RubyVM
.
One option would be to make
prototype
commands an external library and usesparser
gem (or something else if exists.)
Right, I think that would make sense.
I think moving and stabilizing AbstractSyntaxTree
would also be valuable, it seems a few gems decided to use RubyVM::AbstractSyntaxTree
but do not realize this is making the gem not portable across Ruby implementations, and using something experimental and unstable. (Just moving under ExperimentalFeatures
would also be an option if not making it stable at the same time)
from rbs.
Oh sorry, I mixed CRuby and MRI...
It's great to me too if AbstractSyntaxTree
is stable and portable.
I think showing a better error message and exit gracefully is the first step we can do now.
from rbs.
I don't think printing error messages is the best solution for this. Contributions for improvement are welcome.
from rbs.
Could we leave the issue opened?
The error message is an improvement but the original issue is still there: rbs prototype
only works on CRuby.
from rbs.
I posted a comment related to this on the RubyVM::AbstractSyntaxTree
on the CRuby tracker: https://bugs.ruby-lang.org/issues/14844#note-25
from rbs.
Related Issues (20)
- More improved support for `Struct` and `Data`.
- Migrate rbs prototype command information from soutaro/steep to ruby/rbs HOT 1
- Add in `&untyped` HOT 3
- Inconsistencies and Holes in with Grammar documentation HOT 4
- Support class redefinitions in runtime for rbs test mode HOT 7
- Somehow add metaprogramming to type parameters HOT 1
- Add Support for Non-Symbol Keyowrds
- Add support for `__END__` in rbs files HOT 1
- Add support for `alias $x $y` HOT 2
- Add support for `undef` HOT 2
- Thread/Fiber/Kernel#raise is incorrectly labeled HOT 3
- ConditionVariable#wait signature return is incorrect HOT 1
- TCPServer.new type signature incorrect
- `Proc::new` is the one that take the block, not `Proc#initialize`
- rbs/test: stack level too deep when calling super from prepend HOT 1
- "singleton(class with this mixin)" is not supported
- [RBS::Test] Cannot call `super` in block
- How to deal with gems with integrations
- Incorrrect signatures for ruby 3.3.0
- Type signature failures in net-http
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 rbs.