Code Monkey home page Code Monkey logo

orbacle's People

Contributors

mostlyobvious avatar swistak35 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

orbacle's Issues

Indexing github.com/rails/rails fails

Steps to reproduce:

cd /tmp
git clone [email protected]:rails/rails.git
cd rails
orbaclerun -d . index

Output:

I, [2018-12-14T19:53:15.898905 #43432]  INFO -- : Reading...
I, [2018-12-14T19:53:15.978461 #43432]  INFO -- : Parsing...
W, [2018-12-14T19:53:16.519625 #43432]  WARN -- : Warning: Skipped ./actionpack/test/dispatch/request_test.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:18.380762 #43432]  WARN -- : Warning: Skipped ./actionpack/test/controller/parameter_encoding_test.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:20.711887 #43432]  WARN -- : Warning: Skipped ./activesupport/test/message_verifier_test.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:20.888659 #43432]  WARN -- : Warning: Skipped ./activesupport/test/logger_test.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:20.914131 #43432]  WARN -- : Warning: Skipped ./activesupport/test/inflector_test_cases.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:21.048705 #43432]  WARN -- : Warning: Skipped ./activesupport/test/core_ext/string_ext_test.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:22.276906 #43432]  WARN -- : Warning: Skipped ./activesupport/test/multibyte_test_helpers.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:22.562192 #43432]  WARN -- : Warning: Skipped ./activesupport/test/message_encryptor_test.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:22.796347 #43432]  WARN -- : Warning: Skipped ./activesupport/test/multibyte_chars_test.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:23.378087 #43432]  WARN -- : Warning: Skipped ./activesupport/lib/active_support/core_ext/digest/uuid.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:32.346659 #43432]  WARN -- : Warning: Skipped ./activerecord/test/cases/adapters/postgresql/bytea_test.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:32.770554 #43432]  WARN -- : Warning: Skipped ./activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:32.824835 #43432]  WARN -- : Warning: Skipped ./activerecord/test/cases/binary_test.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:39.395481 #43432]  WARN -- : Warning: Skipped ./actionview/test/template/template_test.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:42.258736 #43432]  WARN -- : Warning: Skipped ./actionmailer/test/mailers/base_mailer.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:42.399252 #43432]  WARN -- : Warning: Skipped ./actionmailer/test/base_test.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:43.072798 #43432]  WARN -- : Warning: Skipped ./activestorage/test/models/filename_test.rb because of Orbacle::RubyParser::SyntaxError
W, [2018-12-14T19:53:43.127565 #43432]  WARN -- : Warning: Skipped ./activestorage/test/service/shared_service_tests.rb because of Orbacle::RubyParser::SyntaxError
I, [2018-12-14T19:53:43.282151 #43432]  INFO -- : Building graph...
I, [2018-12-14T19:54:19.205790 #43432]  INFO -- : Typing...

...

/Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:570:in `block (2 levels) in connect_regular_args': undefined method `name' for #<Orbacle::GlobalTree::ArgumentsTree::Nested:0x00007fb854db32d8> (NoMethodError)
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:569:in `each'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:569:in `each_with_index'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:569:in `block in connect_regular_args'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:568:in `each'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:568:in `connect_regular_args'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:470:in `connect_actual_args_to_formal_args'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:535:in `block (2 levels) in connect_yields_to_block_lambda'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:532:in `each'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:532:in `block in connect_yields_to_block_lambda'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:530:in `each'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:530:in `connect_yields_to_block_lambda'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:510:in `handle_custom_message_send'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:452:in `handle_instance_send'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:416:in `block in handle_message_send'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/generic_type.rb:28:in `each_possible_type'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:407:in `handle_message_send'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:52:in `block in call'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/set.rb:306:in `each_key'
	from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/set.rb:306:in `each'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/typing_service.rb:48:in `call'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/indexer.rb:137:in `block in call'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/indexer.rb:19:in `measure'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/indexer.rb:137:in `call'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/engine.rb:14:in `index'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/command_line_interface.rb:71:in `index'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/command_line_interface.rb:57:in `call_command'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/lib/orbacle/command_line_interface.rb:52:in `call'
	from /Library/Ruby/Gems/2.3.0/gems/orbacle-0.2.1/exe/orbaclerun:6:in `<top (required)>'
	from /usr/local/bin/orbaclerun:22:in `load'
	from /usr/local/bin/orbaclerun:22:in `<main>'

Full output: https://gist.github.com/tsenart/0f22511d73ea1c79a833892451d177c9

orbacle running for 26 hours now..

Large code base maybe. 100,000 LOC. Old rails 4.2 app

Orbacle is indexing for more than a day..

Is that normal?

I just notice last issue is a year old.

Is it a recommended language server to use?

Built-ins - Object

BasicObject

  • == -- bool
  • ! -- bool
  • != -- bool
  • object_id -- integer
  • id -- integer
  • send / send - send method
  • equal? -- bool
  • instance_eval
  • instance_exec
  • method_missing
  • singleton_method_added
  • singleton_method_removed
  • singleton_method_undefined

Object

  • !~ operator -- boolean
  • <=> -- integer or nil
  • === -- bool
  • =~ -- ???
  • class
  • clone(freeze: true) -- an_object
  • define_singleton_method
  • display(port=$>) -- nil
  • dup -- an_object
  • enum_for
  • equal? -- bool
  • eql? -- bool
  • extend
  • frozen? -- bool
  • inspect -- string
  • instance_of?(class) -- bool
  • instance_variable_defined?(symbol/string) -- bool
  • instance_variable_get(string/symbol)
  • instance_variable_set(string/symbol, obj)
  • instance_variables -- array of symbols
  • is_a?(class) -- bool
  • itself -- an_object
  • kind_of?(class) -- bool
  • method(sym)
  • methods(regular=true) -- array of symbols
  • nil? -- bool
  • private_methods(all=true) -- array of symbols
  • protected_methods(all=true) -- array of symbols
  • public_method(sym)
  • public_methods(all=true) -- array of symbols
  • public_send(symbol/string [, args...])
  • remove_instance_variable(symbol)
  • respond_to?(symbol/string, include_all=false) -- bool
  • respond_to_missing?(symbol/string, include_all) -- bool
  • singleton_class
  • singleton_method(sym)
  • singleton_methods
  • taint -- an_object
  • tainted? -- bool
  • tap {|x| block } -- an_object
  • to_enum
  • to_s -- string
  • trust -- an_object
  • untaint -- an_object
  • untrust -- an_object
  • untrusted? -- bool
  • yield_self {|x| block } -- result of the block

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.