Comments (3)
Hey @clxy. Do you have any break points or watches set? I've copied your set up, but can't duplicate the error.
from vscode-ruby.
No break points or watches.
But I tried add break points before and after 'it' block, Rspec just skiped without any message!
I tried again, This time I stepped into rspec core.
I got error like this:(only when step in)
Cannot evaluate self
NoMethodError: undefined method `[]' for nil:NilClass
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/rspec-core-3.5.3/lib/rspec/core/example.rb:77:in `description'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/rspec-core-3.5.3/lib/rspec/core/example.rb:218:in `inspect'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide/commands/variables.rb:132:in `execute'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide/ide_processor.rb:41:in `block (2 levels) in process_commands'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide/ide_processor.rb:34:in `each'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide/ide_processor.rb:34:in `block in process_commands'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide/ide_processor.rb:33:in `catch'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide/ide_processor.rb:33:in `process_commands'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide/event_processor.rb:58:in `line_event'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide/event_processor.rb:34:in `at_line'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/debase-0.2.1/lib/debase/context.rb:43:in `at_line'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/rspec-core-3.5.3/lib/rspec/core/example.rb:187:in `initialize'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/rspec-core-3.5.3/lib/rspec/core/example_group.rb:148:in `new'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/rspec-core-3.5.3/lib/rspec/core/example_group.rb:148:in `block in define_example_method'
d:/projects/RubyLib/spec/utils_rspec.rb:47:in `block (2 levels) in <top (required)>'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/rspec-core-3.5.3/lib/rspec/core/example_group.rb:385:in `module_exec'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/rspec-core-3.5.3/lib/rspec/core/example_group.rb:385:in `subclass'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/rspec-core-3.5.3/lib/rspec/core/example_group.rb:258:in `block in define_example_group_method'
d:/projects/RubyLib/spec/utils_rspec.rb:35:in `block in <top (required)>'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/rspec-core-3.5.3/lib/rspec/core/example_group.rb:385:in `module_exec'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/rspec-core-3.5.3/lib/rspec/core/example_group.rb:385:in `subclass'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/rspec-core-3.5.3/lib/rspec/core/example_group.rb:258:in `block in define_example_group_method'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/rspec-core-3.5.3/lib/rspec/core/dsl.rb:43:in `block in expose_example_group_alias'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/rspec-core-3.5.3/lib/rspec/core/dsl.rb:84:in `block (2 levels) in expose_example_group_alias_globally'
d:/projects/RubyLib/spec/utils_rspec.rb:7:in `<top (required)>'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide.rb:88:in `debug_load'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.1.beta2/lib/ruby-debug-ide.rb:88:in `debug_program'
D:/Ruby/Ruby21/lib/ruby/gems/2.1.0/gems/ruby-debug-ide-0.6.1.beta2/bin/rdebug-ide:130:in `<top (required)>'
D:/Ruby/Ruby21/bin/rdebug-ide:23:in `load'
D:/Ruby/Ruby21/bin/rdebug-ide:23:in `<main>'
Thank you for answering my question.
from vscode-ruby.
OK. I solved it!
My fault is setting wrong value to program.
Program must be rspec path.
...
{
"name": "RSpec - all",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "D:/Ruby/Ruby21/bin/rspec",
"args": [
"--pattern",
"${workspaceRoot}/spec/**/*_rspec.rb"
]
},
...
from vscode-ruby.
Related Issues (20)
- unable to execute bundle exec rubocop and reek, but the same commands work in terminal HOT 3
- Incorrect syntax highlighting following `/` characters used for division (instead of regex) HOT 1
- Syntax Errors Are Not Shown HOT 1
- Debug console suddenly stops working HOT 1
- Feature request: Break on exception and break on uncaught exception HOT 1
- Building the extension on an M1 Mac HOT 1
- Files: Default Language is interrupted HOT 1
- Add class name support to QuickOpen Symbol Search HOT 1
- ruby 3.x support HOT 2
- Pass args to the formatter HOT 1
- option to change default diagnostic level is missing HOT 1
- There was an error parsing `Gemfile`: No such file or directory HOT 1
- 50% of ruby debug-local-file sessions fail immediately on Windows 10 HOT 1
- Starting ruby LSP gives me `Cannot read properties of null (reading 'toString')` error HOT 1
- CMD + Click on a definition should show the best match first HOT 1
- Extension causes high cpu load
- Cannot Set Terminal Process Group: Inappropriate IOCTL for Device bash: no job control in this shell
- Fails when using special characters HOT 1
- Fatal exception in DebugThread loop: Only one usage of each socket address (protocol/network address/port) is normally permitted. - bind(2) for "127.0.0.1" port 1234
- Syntax highlighting issue if there's a double quote and an inline rescue
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 vscode-ruby.