profile
viewpoint
rubyide rubyide IDE support for ruby

startedrubyide/vscode-ruby

started time in 10 hours

PR opened rubyide/vscode-ruby

Update `decreaseIndentPattern` to match Atom

Atom's decreaseIndentPattern handles cases like this:

@date = Date.today()
@name = "Test Name"

@data = {
  id: 8,
  foo: Foo.new(
    id: 1,
    phone_number: "412-555-7640"
  ),
  bar: Bar.new(
    id: 1,
    name: "Valentine",
    vin: "DF5S6HFG365HGDCVG",
    status: :AVAILABLE
  ),
  start_time: start_time.to_s,
  end_time: end_time.to_s,
  cost: 23.45,
  rating: 3,
}
+1 -1

0 comment

1 changed file

pr created time in 21 hours

fork kaidamasaki/vscode-ruby

Provides Ruby language and debugging support for Visual Studio Code

https://marketplace.visualstudio.com/items?itemName=rebornix.Ruby

fork in a day

issue commentrubyide/vscode-ruby

Syntax highlighting issue with safe navigation operator

@minkir014 Potentially. VSCode activates grammars based on the detected language type at the bottom and whether that language declares other languages can be "embedded". If that parent language doesn't declare embedded languages then there's not much that can be done from a highlighting perspective.

@bbugh The coloring is based on the matching scopes and whatever your theme has specified for those scopes. The grammar would need to change to the appropriate scope. You commented on the exact upstream issue for this: atom/language-ruby#167. You could open a PR against that repo to fix it and then I could pull it in.

ob-stripe

comment created time in a day

issue openedrubyide/vscode-ruby

Linters quit working

Your environment

  • vscode-ruby version: 0.24.1
  • Ruby version: 2.5.5
  • Ruby version manager (if any): rvm
  • VS Code version: 1.36.1
  • Operating System: OSX
  • Using language server? (eg useLanguageServer is true?)

Expected behavior

linters work

Actual behavior

linters quit working

Rubocop and Reek quit working in the past week. I uninstalled the Ruby extension and reinstalled and reek worked again but then magically quit working the next time I opened the folder in VSCode.

Here is my settings.json

{
    "window.zoomLevel": 2,
    "[python]": {
        "editor.tabSize": 4
    },
    "[go]": {
        "editor.tabSize": 4
    },
    "editor.formatOnSave": true,
    "editor.formatOnSaveTimeout": 5000,
    "editor.tabSize": 2,
    "files.insertFinalNewline": true,
    "files.trimTrailingWhitespace": true,
    "editor.minimap.enabled": false,
    "editor.rulers": [
        80
    ],
    // Basic settings: turn linter(s) on
    "ruby.lint": {
        "reek": true
    }
}

created time in a day

issue commentrubyide/vscode-ruby

Migrate tree-sitter and tree-sitter-ruby to WASM distribution

WASM support was started over the weekend. Just need to test a few things out and verify the solution works cross-platform. VSCode does not officially support WASM in extensions so want to make sure this is functioning as expected.

wingrunr21

comment created time in a day

issue commentrubyide/vscode-ruby

No prebuilt binaries found (target=undefined ...)

#506 is the tracking issue for the WASM move. I'll use this issue to represent the general problem (eg I'll close this after shipping the WASM support and people verify it is working).

LMolr

comment created time in a day

issue commentrubyide/vscode-ruby

No prebuilt binaries found (target=undefined ...)

I started work on moving over to the WASM version this weekend. Almost done but need to test a few things as it isn't a direct swap-out and VSCode doesn't officially support WASM in extensions.

LMolr

comment created time in a day

issue commentrubyide/vscode-ruby

No prebuilt binaries found (target=undefined ...)

Same, tried the workaround but no change. Using the latest insiders version on Mac.

LMolr

comment created time in a day

issue commentrubyide/vscode-ruby

Emmet isn't recognised in erb

Many thanks, @frogandcode. You just addressed the exact problem I was having. I had edited de config file and added "emmet.includeLanguages": {"erb":"html"}, but it wasn't working. Then I looked at the right lower corner of the editor and I saw that the language association for html.erb was "Plain text", and erb wasn't among the options to choose from. I installed Simple Ruby ERB and changed the language association to erb and now Emmet Abbreviation works perfectly in my html.erb files :)

resting

comment created time in 4 days

startedrubyide/vscode-ruby

started time in 4 days

PR opened rubyide/vscode-ruby

Improve documentation on snippets

WIP still need to be done.

  • [] The build passes
  • [] TSLint is mostly happy
  • [] Prettier has been run
+8 -0

0 comment

1 changed file

pr created time in 4 days

fork rhuanbarreto/vscode-ruby

Provides Ruby language and debugging support for Visual Studio Code

https://marketplace.visualstudio.com/items?itemName=rebornix.Ruby

fork in 4 days

issue commentrubyide/vscode-ruby

Syntax highlighting issue with safe navigation operator

The issue described in the original post is still present, though! My editor matches the screen shots. Variables using object&.something are not correctly colored.

ob-stripe

comment created time in 5 days

issue commentrubyide/vscode-ruby

No prebuilt binaries found (target=undefined ...)

Yes, the build was successful

LMolr

comment created time in 5 days

issue commentrubyide/vscode-ruby

Syntax highlighting issue with safe navigation operator

@wingrunr21 He added some lines in a coffee script file. Can this be the cause to this issue?

ob-stripe

comment created time in 5 days

startedrubyide/vscode-ruby

started time in 5 days

issue commentrubyide/vscode-ruby

No prebuilt binaries found (target=undefined ...)

Welllllll awesome.

@ranjan-purbey did it build the binary successfully? There must be a bug in prebuild-install.

I'm prioritizing #506 immediately.

LMolr

comment created time in 5 days

issue commentrubyide/vscode-ruby

No prebuilt binaries found (target=undefined ...)

For a workaround (note you'll need build tooling installed on your machine):

cd ~/.vscode/extensions/rebornix.ruby-0.24.0/server/node_modules/tree-sitter-ruby
npm install # this should trigger prebuild-install to build a binary but it will be for node.js not electron
npx prebuild -t 4.0.4 -r electron --strip

This should get a binary built on your machine

Same error even with this workaround

LMolr

comment created time in 5 days

issue commentrubyide/vscode-ruby

No prebuilt binaries found (target=undefined ...)

Same issue for me on v0.24.1

LMolr

comment created time in 5 days

issue commentrubyide/vscode-ruby

No prebuilt binaries found (target=undefined ...)

Sorry, but still getting the error on v0.24.1

LMolr

comment created time in 5 days

issue openedrubyide/vscode-ruby

Migrate tree-sitter and tree-sitter-ruby to WASM distribution

Move tree-sitter and tree-sitter-ruby to use a WASM build instead of prebuilt binaries. This should yield a better user experience + allow us to drop prebuild.

More info here

created time in 5 days

issue commentrubyide/vscode-ruby

language server crashing on latest vscode

v0.24.1 was just published with the updated binaries

paranoidaditya

comment created time in 5 days

issue commentrubyide/vscode-ruby

No prebuilt binaries found (target=undefined ...)

v0.24.1 was just published

LMolr

comment created time in 5 days

release rubyide/vscode-ruby

v0.24.1

released time in 5 days

created tagrubyide/vscode-ruby

tagv0.24.1

Provides Ruby language and debugging support for Visual Studio Code

created time in 5 days

push eventrubyide/vscode-ruby

Stafford Brunk

commit sha 1259baf82a7cd0e38ce1fc35f12f6b01a44b43b9

Bump tree-sitter-ruby to v0.15.1

view details

Stafford Brunk

commit sha db79753395696d4952f2363b1fe86d5027bd57b7

v0.24.1

view details

push time in 5 days

issue commentrubyide/vscode-ruby

Syntax highlighting issue with safe navigation operator

It is already in the grammar

https://github.com/rubyide/vscode-ruby/blob/master/syntaxes/ruby.cson.json#L2111-L2119

ob-stripe

comment created time in 5 days

issue commentrubyide/vscode-ruby

Syntax highlighting issue with safe navigation operator

According to this PR, they have support for the safe navigation operator since 2015: https://github.com/atom/language-ruby/pull/125

Is there an easy way to enable it for this extension?

ob-stripe

comment created time in 5 days

issue commentrubyide/vscode-ruby

[Feature Request]: Possible to lint whole project with rubocop and view errors in Problem pane?

Ok cool beans. I'll take this under consideration

breathe

comment created time in 5 days

issue commentrubyide/vscode-ruby

Improve documentation for snippets

Great. Please submit a PR

rhuanbarreto

comment created time in 5 days

issue commentrubyide/vscode-ruby

No prebuilt binaries found (target=undefined ...)

For a workaround (note you'll need build tooling installed on your machine):

cd ~/.vscode/extensions/rebornix.ruby-0.24.0/server/node_modules/tree-sitter-ruby
npm install # this should trigger prebuild-install to build a binary but it will be for node.js not electron
npx prebuild -t 4.0.4 -r electron --strip

This should get a binary built on your machine

LMolr

comment created time in 5 days

startedrubyide/vscode-ruby

started time in 6 days

issue commentrubyide/vscode-ruby

No prebuilt binaries found (target=undefined ...)

We are waiting for this to get merged. https://github.com/tree-sitter/tree-sitter-ruby/pull/108

LMolr

comment created time in 6 days

fork anjumrizwi/vscode-ruby

Provides Ruby language and debugging support for Visual Studio Code

https://marketplace.visualstudio.com/items?itemName=rebornix.Ruby

fork in 6 days

issue commentrubyide/vscode-ruby

No prebuilt binaries found (target=undefined ...)

Version: 1.36.1
Commit: 2213894ea0415ee8c85c5eea0d0ff81ecc191529
Date: 2019-07-08T22:55:08.091Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 5.0.0-20-generic snap
vscode-ruby: 0.24.0 - Jun 27 2019

I am on the latest stable release which got shipped a couple of days ago. I am still facing this issue. Are there any updates on this? Thank you

LMolr

comment created time in 6 days

issue openedrubyide/vscode-ruby

Improve documentation for snippets

I needed to go directly to the file in the extension and see the available snippets for the language and for erb. This could improve having more documentation on the main readme and on the wiki.

created time in 6 days

startedrubyide/vscode-ruby

started time in 7 days

startedrubyide/vscode-ruby

started time in 7 days

issue openedrubyide/vscode-ruby

Is there support for debugging using WSL remote?

Your environment

  • vscode-ruby version: 0.24.0
  • Ruby version: 2.5.2
  • Ruby version manager (if any): RVM
  • VS Code version: 1.36.0
  • Operating System: Windows_NT x64 10.0.18362
  • Using language server? (eg useLanguageServer is true?) Yes

I'm using VS Code with the remote extension (https://github.com/microsoft/vscode-remote-release). I'm running Ubuntu 18.04 on WSL and starting VS code with code . from within WSL. I've set up the following launch config:

        {
            "name": "Debug Rails server",
            "type": "Ruby",
            "request": "launch",
            "cwd": "${workspaceRoot}",
            "useBundler": true,
            "pathToBundler": "/home/ilya/.rvm/gems/ruby-2.5.3@my_project/bin/bundle",
            "pathToRDebugIDE": "/home/ilya/.rvm/gems/ruby-2.5.3@my_project/gems/ruby-debug-ide-0.7.0",
            "program": "${workspaceRoot}/bin/rails",
            "args": [
                "server",
                "-p",
                "3000"
            ]
        },

Expected behavior

I launch the "Debug Rails server" task and the debugging breakpoint is hit. I press "continue" and the web server continues to serve requests.

Actual behavior

What actually happens is that after I press "continue" the web server hangs and does not accept any more requests. Killing and re-starting the process is the only way to get it working again.

I'm wondering if it's something that I've misconfigured or is there no support for debugging using WSL remote?

created time in 8 days

issue closedrubyide/vscode-ruby

Language server fails VS Code v1.36.0

Your environment

  • vscode-ruby version: 0.24.0
  • Ruby version: 2.3.8
  • Ruby version manager (if any): rvm
  • VS Code version: 1.36.0
  • Operating System: MacOS 10.14.5
  • Using language server? (eg useLanguageServer is true?) yes

Expected behavior

I expect the language server to initialize and run in the latest version of VS Code.

Actual behavior

Server initialization fails

This and the next section should include screenshots, code samples, console output, etc. The more information we have to reproduce the better!

[Info  - 10:45:31 AM] Initializing Ruby language server...
[Info  - 10:45:31 AM] Rebuilding tree-sitter for local Electron version
[Error - 10:45:32 AM] Server initialization failed.
  Message: Request initialize failed with message: No prebuilt binaries found (target=undefined runtime=undefined arch=undefined libc=undefined platform=undefined)
  Code: -32603 

closed time in 8 days

raywagner88

issue commentrubyide/vscode-ruby

Language server fails VS Code v1.36.0

Agreed. I will push on upstream to get that PR merged so I can get this addressed.

raywagner88

comment created time in 8 days

issue commentrubyide/vscode-ruby

Language server fails VS Code v1.36.0

Dublicate #486

raywagner88

comment created time in 8 days

issue openedrubyide/vscode-ruby

Language server fails VS Code v1.36.0

Your environment

  • vscode-ruby version: 0.24.0
  • Ruby version: 2.3.8
  • Ruby version manager (if any): rvm
  • VS Code version: 1.36.0
  • Operating System: MacOS 10.14.5
  • Using language server? (eg useLanguageServer is true?) yes

Expected behavior

I expect the language server to initialize and run in the latest version of VS Code.

Actual behavior

Server initialization fails

This and the next section should include screenshots, code samples, console output, etc. The more information we have to reproduce the better!

[Info  - 10:45:31 AM] Initializing Ruby language server...
[Info  - 10:45:31 AM] Rebuilding tree-sitter for local Electron version
[Error - 10:45:32 AM] Server initialization failed.
  Message: Request initialize failed with message: No prebuilt binaries found (target=undefined runtime=undefined arch=undefined libc=undefined platform=undefined)
  Code: -32603 

created time in 8 days

issue commentrubyide/vscode-ruby

language server crashing on latest vscode

% npm install                                              2.6.3
added 389 packages from 755 contributors and audited 1925 packages in 6.016s
found 0 vulnerabilities

This didn't fix the issue though. Guess I'll wait for an upstream fix?

paranoidaditya

comment created time in 8 days

startedrubyide/vscode-ruby

started time in 9 days

issue commentrubyide/vscode-ruby

[Feature Request]: Possible to lint whole project with rubocop and view errors in Problem pane?

From my perspective, ideal behavior would look like this —

  1. Lint open files and relint them as edited (as currently being done)
  2. Option to run lint on whole project with all errors added to Problems pain
  3. Problems are clearable and the set of problems from linter in problem pane reflects the linter results for each file from the most recent linter execution pass available for that file ...
breathe

comment created time in 10 days

issue commentrubyide/vscode-ruby

Debugger Improvements

@andrewmcodes I signed up for it but it's still in beta. Thank you for your support though.

I have not made a ton of progress against this for a few reasons:

  1. Language server support has been taking up more time. It is quite difficult to keep up with the pace of VSCode development as a single dev working on this in his (limited) free time. This in addition to a user base who expect full support for features even when they are still in the Insiders release (like remote environments were).
  2. I'm trying to build out test suite coverage and better ways for the OS community to contribute. I think this will ultimately bring about better pacing of development and release

I am currently setting up a project plan and am aiming for a v1 release by RubyConf this year

wingrunr21

comment created time in 10 days

issue closedrubyide/vscode-ruby

language server crashing on latest vscode

Your environment

  • vscode-ruby version: 0.24.0
  • Ruby version: 2.6.3
  • Ruby version manager (if any): chruby
  • VS Code version: Version 1.36.0 (1.36.0)
  • Operating System: macOS Mojave 10.14.5 (18F132)
  • Using language server? Yes

Expected behavior

Should start up

Actual behavior

[Info  - 3:33:07 PM] Initializing Ruby language server...
[Info  - 3:33:07 PM] Rebuilding tree-sitter for local Electron version
[Error - 3:33:07 PM] Server initialization failed.
  Message: Request initialize failed with message: No prebuilt binaries found (target=undefined runtime=undefined arch=undefined libc=undefined platform=undefined)
  Code: -32603 

closed time in 10 days

paranoidaditya

issue commentrubyide/vscode-ruby

language server crashing on latest vscode

I'm closing this as this is a dup of #486

paranoidaditya

comment created time in 10 days

issue commentrubyide/vscode-ruby

[Feature Request]: Possible to lint whole project with rubocop and view errors in Problem pane?

At the moment no. This would be doable but a few possible snags:

  • We had multiple user requests here to not show rubocop issues for files that were not active in the editor
  • Would those problem pane flags be "clearable"?
breathe

comment created time in 10 days

issue commentrubyide/vscode-ruby

language server crashing on latest vscode

This is known and we already have a PR upstream to fix it.

If you have build tooling installed on your system you can perform the following:

cd ~/.vscode/extensions/rebornix.ruby-0.24.0/server
npm install

That should trigger prebuild to build the binary

paranoidaditya

comment created time in 10 days

issue commentrubyide/vscode-ruby

Debugger Improvements

@wingrunr21 Is adding support for repl for running only or for debugging with breakpoints???

wingrunr21

comment created time in 11 days

issue commentrubyide/vscode-ruby

Debugger Improvements

@andrewmcodes you can start by adding a PR for adding support for debugger-xml

wingrunr21

comment created time in 11 days

issue commentrubyide/vscode-ruby

Debugger Improvements

@wingrunr21 I would love to sponsor you to fix some of these if you can apply for the GitHub sponsor program?

wingrunr21

comment created time in 12 days

issue commentrubyide/vscode-ruby

Rubocop warnings with zero length do not show up in editor

Just want to add I’m also seeing this issue on a ruby 2.6.3 project. Tried a few things anencephaly have been looking into the code and will update with a solution or PR if I find the problem.

trkoch

comment created time in 12 days

issue commentrubyide/vscode-ruby

language server crashing on latest vscode

the last vscode is using node v69 and the last tree-sitter-ruby is against v64 and isn't founding the url to download:

https://github.com/tree-sitter/tree-sitter-ruby/releases/download/v0.15.0/tree-sitter-ruby-v0.15.0-electron-v69-linux-x64.tar.gz

we have to wait to tree-sitter-ruby generate a new release in that case ?

btw: the last message with undefined values, seems related to prebuildInstall.download https://github.com/rubyide/vscode-ruby/blob/master/server/src/util/rebuilder.ts#L38

isn't sending all the data to show the error: https://github.com/prebuild/prebuild-install/blob/04be92d2ead6459741e0fb64cc44735f6c2fa519/download.js#L66

paranoidaditya

comment created time in 12 days

startedrubyide/vscode-ruby

started time in 12 days

issue openedrubyide/vscode-ruby

language server crashing on latest vscode

Your environment

  • vscode-ruby version: 0.24.0
  • Ruby version: 2.6.3
  • Ruby version manager (if any): chruby
  • VS Code version: Version 1.36.0 (1.36.0)
  • Operating System: macOS Mojave 10.14.5 (18F132)
  • Using language server? Yes

Expected behavior

Should start up

Actual behavior

[Info  - 3:33:07 PM] Initializing Ruby language server...
[Info  - 3:33:07 PM] Rebuilding tree-sitter for local Electron version
[Error - 3:33:07 PM] Server initialization failed.
  Message: Request initialize failed with message: No prebuilt binaries found (target=undefined runtime=undefined arch=undefined libc=undefined platform=undefined)
  Code: -32603 

created time in 13 days

startedrubyide/vscode-ruby

started time in 15 days

issue closedrubyide/vscode-ruby

Problems at the language server and linting

Your environment

  • vscode-ruby version: 0.23.0
  • Ruby version: ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin18]
  • Ruby version manager (if any): rbenv
  • VS Code version: 1.35.1
  • Operating System: MacOS X 10.14.5
  • Using language server? (eg useLanguageServer is true?) Yes
  • Rubocop version: 0.72.0 (using Parser 2.6.2.1, running on ruby 2.6.2 x86_64-darwin18)

Actual behavior

Linting is not working even though I enabled in the config:

    "ruby.format": "rubocop",
    "ruby.intellisense": "rubyLocate",
    "ruby.codeCompletion": "rcodetools",
    "ruby.lint": {
        "rubocop": {
            "lint": true,
            "rails": true
        }
    },
    "[ruby]": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "rebornix.ruby"
    },
    "ruby.useLanguageServer": true,

Also in the output pane I get this error:

[2019-06-27 09:32:04.851] [renderer1] [error] Cannot read property 'then' of undefined: TypeError: Cannot read property 'then' of undefined
	at Locate.listInFile (/Users/rhuan/.vscode/extensions/rebornix.ruby-0.23.0/out/locate/locate.js:69:29)
	at Object.provideDocumentSymbols (/Users/rhuan/.vscode/extensions/rebornix.ruby-0.23.0/out/providers/intellisense.js:55:31)
	at define.provideDocumentSymbols.a.asPromise (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:572:267)
	at t.asPromise.Promise (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:53:320)
	at new Promise (<anonymous>)
	at Object.t.asPromise (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:53:292)
	at _.provideDocumentSymbols (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:572:238)
	at define.$provideDocumentSymbols._withAdapter.e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:588:888)
	at j._withAdapter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:588:126)
	at j.$provideDocumentSymbols (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:588:866)
	at d._doInvokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:644:1006)
	at d._invokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:644:698)
	at d._receiveRequest (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:643:293)
	at d._receiveOneMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:642:141)
	at define.constructor._protocol.onMessage.e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:640:400)
	at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
	at a (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:176:766)
	at e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:176:812)
	at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
	at n.constructor.e.onMessage.e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:748:721)
	at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
	at a (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:176:766)
	at e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:176:812)
	at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
	at y._receiveMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:185:670)
	at define.constructor._socketDisposables.push._socketReader.onMessage.e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:182:981)
	at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
	at f.acceptChunk (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:179:532)
	at define.constructor._register._socket.onData.e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:178:869)
	at Socket.t (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:187:141)
	at Socket.emit (events.js:182:13)
	at addChunk (_stream_readable.js:279:12)
	at readableAddChunk (_stream_readable.js:264:11)
	at Socket.Readable.push (_stream_readable.js:219:10)
	at Pipe.onread (net.js:636:20)

Also on the output of the language server:

[Info  - 9:27:34 AM] Initializing Ruby language server...
[Info  - 9:27:34 AM] Rebuilding tree-sitter for local Electron version
[Info  - 9:27:34 AM] Rebuild succeeded!
Lint: executing rubocop -s /**************file.rb -f json -R -l...
invalid option: -R

For usage information, use --help

Lint: Received invalid JSON from rubocop:

Expected behavior

Linting occur normally.

closed time in 15 days

rhuanbarreto

issue commentrubyide/vscode-ruby

Problems at the language server and linting

After a vscode restart it's working.

rhuanbarreto

comment created time in 15 days

startedrubyide/vscode-ruby

started time in 16 days

startedrubyide/vscode-ruby

started time in 17 days

issue commentrubyide/vscode-ruby

Language server fails on the startup due to Cannot read property 'children' of undefined

This does not fail, I think because puts 'test' is recognized in the Outline:

module ROM
  class Relation
    def attr_ast(test, test)
      puts 'test'
    end
  end
end

So I think it just needs to add a check to make sure argumentList isn't undefined?

deepj

comment created time in 18 days

issue commentrubyide/vscode-ruby

Language server fails on the startup due to Cannot read property 'children' of undefined

This definitely has something to do with the attr_* handling code: https://github.com/rubyide/vscode-ruby/blob/master/server/src/util/RubyDocumentSymbol.ts#L48-L66

This doesn't fail, for example:

module Bundler
  class Thor
    module Base
      module ClassMethods
        def test(); end
      end
    end
  end
end

This does:

module ROM
  class Relation
    def attr_ast
      schema.map { |t| t.to_read_ast }
    end
  end
end
deepj

comment created time in 18 days

issue commentrubyide/vscode-ruby

`Request textDocument/documentSymbol failed` error when closing ruby file tab.

Read property 'then' was resolved by #499 I think?

viktor-evdokimov

comment created time in 18 days

issue commentrubyide/vscode-ruby

Language server fails on the startup due to Cannot read property 'children' of undefined

I created a more minimal reproduction case of this issue in #402:

module Bundler
  class Thor
    module Base
      module ClassMethods
        def attr_reader(); end
      end
    end
  end
end
deepj

comment created time in 18 days

issue commentrubyide/vscode-ruby

Plugin load failure

I think the 'then' issue was resolved?

klauern

comment created time in 18 days

issue commentrubyide/vscode-ruby

Language server fails sometimes

Even more minimal:

module Bundler
  class Thor
    module Base
      module ClassMethods
        def attr_reader(); end
      end
    end
  end
end
rxx

comment created time in 18 days

issue commentrubyide/vscode-ruby

Language server fails sometimes

Okay, I've minimized this from 18000 lines to 13, hopefully that's good enough :)

When I load this file, I get the following errors:

[Info  - 9:12:43 PM] Initializing Ruby language server...
[Info  - 9:12:43 PM] Rebuilding tree-sitter for local Electron version
[Info  - 9:12:43 PM] Rebuild succeeded!
TypeError: Cannot read property 'children' of undefined
    at Function.build (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.24.0/server/out/util/RubyDocumentSymbol.js:48:54)
    at DocumentSymbolAnalyzer.analyze (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.24.0/server/out/analyzers/DocumentSymbolAnalyzer.js:26:53)
    at Analyzer.analyzeNode (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.24.0/server/out/Analyzer.js:39:37)
    at walk (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.24.0/server/out/Analyzer.js:26:18)
    at walk (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.24.0/server/out/Analyzer.js:29:21)
    at walk (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.24.0/server/out/Analyzer.js:29:21)
    at walk (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.24.0/server/out/Analyzer.js:29:21)
    at walk (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.24.0/server/out/Analyzer.js:29:21)
    at walk (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.24.0/server/out/Analyzer.js:29:21)
    at Analyzer.analyze (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.24.0/server/out/Analyzer.js:34:9)
[Error - 9:12:44 PM] Request textDocument/documentSymbol failed.
  Message: Request textDocument/documentSymbol failed with message: Cannot read property 'documentSymbols' of undefined
  Code: -32603 
[Error - 9:12:44 PM] Request textDocument/foldingRange failed.
  Message: Request textDocument/foldingRange failed with message: Cannot read property 'foldingRanges' of undefined
  Code: -32603 

File:

module Bundler
  class Thor
    def self.package_name(name, _ = {}); end

    module Base
      def options(); end

      module ClassMethods
        def attr_reader(); end
      end
    end
  end
end
rxx

comment created time in 18 days

issue commentrubyide/vscode-ruby

Language server fails sometimes

Actually, I just noticed something really interesting.

image

Note the undefined in the line number gutter...

rxx

comment created time in 18 days

issue commentrubyide/vscode-ruby

Language server fails sometimes

I tried creating a minimal version of that file but unfortunately you have to reload the window every time you make a change or it'll just keep throwing these errors regardless of the file's contents.

rxx

comment created time in 18 days

issue commentrubyide/vscode-ruby

Language server fails sometimes

I'm having this same problem, I think I can reproduce it?

https://gist.github.com/connorshea/ca8fdc9bdd596d8a8be73ca0b6b74a73

[Info  - 7:56:50 PM] Initializing Ruby language server...
[Info  - 7:56:50 PM] Rebuilding tree-sitter for local Electron version
[Info  - 7:56:50 PM] Rebuild succeeded!
TypeError: Cannot read property 'children' of undefined
    at Function.build (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.23.0/server/out/util/RubyDocumentSymbol.js:48:54)
    at DocumentSymbolAnalyzer.analyze (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.23.0/server/out/analyzers/DocumentSymbolAnalyzer.js:26:53)
    at Analyzer.analyzeNode (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.23.0/server/out/Analyzer.js:39:37)
    at walk (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.23.0/server/out/Analyzer.js:26:18)
    at walk (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.23.0/server/out/Analyzer.js:29:21)
    at walk (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.23.0/server/out/Analyzer.js:29:21)
    at walk (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.23.0/server/out/Analyzer.js:29:21)
    at walk (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.23.0/server/out/Analyzer.js:29:21)
    at walk (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.23.0/server/out/Analyzer.js:29:21)
    at Analyzer.analyze (/Users/connorshea/.vscode/extensions/rebornix.ruby-0.23.0/server/out/Analyzer.js:34:9)
[Error - 7:57:49 PM] Request textDocument/foldingRange failed.
  Message: Request textDocument/foldingRange failed with message: Cannot read property 'foldingRanges' of undefined
  Code: -32603 
[Error - 7:57:51 PM] Request textDocument/foldingRange failed.
  Message: Request textDocument/foldingRange failed with message: Cannot read property 'foldingRanges' of undefined
  Code: -32603 
[Error - 7:58:02 PM] Request textDocument/documentHighlight failed.
  Message: Request textDocument/documentHighlight failed with message: Cannot read property 'rootNode' of undefined
  Code: -32603 
[Error - 7:58:02 PM] Request textDocument/documentHighlight failed.
  Message: Request textDocument/documentHighlight failed with message: Cannot read property 'rootNode' of undefined
  Code: -32603 
[Error - 7:58:03 PM] Request textDocument/documentHighlight failed.
  Message: Request textDocument/documentHighlight failed with message: Cannot read property 'rootNode' of undefined
  Code: -32603 
rxx

comment created time in 18 days

issue commentrubyide/vscode-ruby

Support goto definition for bundled gems ?

@wingrunr21 Please reopen, this is a valid feature request.

adamluzsi

comment created time in 18 days

issue commentrubyide/vscode-ruby

Sorry, but there is no formatter for 'ruby'-files installed.

Adding this setting in settings.js fixes that!

"files.associations": {
        "*.erb": "erb"
    }
doudou

comment created time in 18 days

issue openedrubyide/vscode-ruby

[Feature Request]: Possible to lint whole project with rubocop and view errors in Problem pane?

Hi - wondering if there is a way to configure a vscode task to run rubocop and process the output as Rubocop so that lint errors appear in problem pane over whole projec (not just currently active file).

Thanks!

created time in 19 days

release rubyide/vscode-ruby

v0.24.0

released time in 19 days

created tagrubyide/vscode-ruby

tagv0.24.0

Provides Ruby language and debugging support for Visual Studio Code

created time in 19 days

push eventrubyide/vscode-ruby

Stafford Brunk

commit sha e181da177274fd3495750c7b856c9bcd5ca849d7

Update RuboCop Rails option docs for RuboCop >= 0.72.0

view details

Stafford Brunk

commit sha df1b0a4c133f1c5d990163237a42797b8c8c9b6a

v0.24.0

view details

push time in 19 days

issue commentrubyide/vscode-ruby

Problems at the language server and linting

  • then was fixed in #499
  • You need to look at the output and see what is being run and returned. I can't magically see what's happening on your machine.
rhuanbarreto

comment created time in 19 days

push eventrubyide/vscode-ruby

Peter Zhu

commit sha a4f43d850f8a3b09596aba248aff7b620dbe4b28

Fix bug in locate.js

view details

Stafford Brunk

commit sha ea0c6a9ea6d62ad66a7534066130c80bd97790b9

Merge pull request #499 from peterzhu2118/locate-bugfix Fix bug in locate.js

view details

push time in 19 days

PR merged rubyide/vscode-ruby

Fix bug in locate.js

I encountered a bug where absPath in this.tree was false so waitForParse was assigned the value of this.parse(absParse). However, this.parse(absParse) does not have a return value so I was getting TypeError: Cannot read property 'then' of undefined at Locate.listInFile.

  • [x] The build passes
  • [x] TSLint is mostly happy
  • [x] Prettier has been run
+4 -2

0 comment

1 changed file

peterzhu2118

pr closed time in 19 days

issue commentrubyide/vscode-ruby

Problems at the language server and linting

After I removed the rails linting:

    "ruby.format": "rubocop",
    "ruby.intellisense": "rubyLocate",
    "ruby.codeCompletion": "rcodetools",
    "ruby.lint": {
        "rubocop": true
    },
    "[ruby]": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "rebornix.ruby"
    },
    "ruby.useLanguageServer": true,
  • Error in the extension host log still persist [renderer1] [error] Cannot read property 'then' of undefined: TypeError: Cannot read property 'then' of undefined at Locate.listInFile (/Users/rhuan/.vscode/extensions/rebornix.ruby-0.23.0/out/locate/locate.js:69:29)
  • No problems are reported in the problems tab for linting. So no linting yet
  • Linting command on the language server give no errors anymore.
rhuanbarreto

comment created time in 19 days

issue commentrubyide/vscode-ruby

Problems at the language server and linting

Rails cops were extracted to a separate gem in 0.72.0:

https://github.com/rubocop-hq/rubocop/issues/5976

rhuanbarreto

comment created time in 19 days

issue openedrubyide/vscode-ruby

Problems at the language server and linting

Your environment

  • vscode-ruby version: 0.23.0
  • Ruby version: ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin18]
  • Ruby version manager (if any): rbenv
  • VS Code version: 1.35.1
  • Operating System: MacOS X 10.14.5
  • Using language server? (eg useLanguageServer is true?) Yes
  • Rubocop version: 0.72.0 (using Parser 2.6.2.1, running on ruby 2.6.2 x86_64-darwin18)

Actual behavior

Linting is not working even though I enabled in the config:

    "ruby.format": "rubocop",
    "ruby.intellisense": "rubyLocate",
    "ruby.codeCompletion": "rcodetools",
    "ruby.lint": {
        "rubocop": {
            "lint": true,
            "rails": true
        }
    },
    "[ruby]": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "rebornix.ruby"
    },
    "ruby.useLanguageServer": true,

Also in the output pane I get this error:

[2019-06-27 09:32:04.851] [renderer1] [error] Cannot read property 'then' of undefined: TypeError: Cannot read property 'then' of undefined
	at Locate.listInFile (/Users/rhuan/.vscode/extensions/rebornix.ruby-0.23.0/out/locate/locate.js:69:29)
	at Object.provideDocumentSymbols (/Users/rhuan/.vscode/extensions/rebornix.ruby-0.23.0/out/providers/intellisense.js:55:31)
	at define.provideDocumentSymbols.a.asPromise (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:572:267)
	at t.asPromise.Promise (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:53:320)
	at new Promise (<anonymous>)
	at Object.t.asPromise (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:53:292)
	at _.provideDocumentSymbols (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:572:238)
	at define.$provideDocumentSymbols._withAdapter.e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:588:888)
	at j._withAdapter (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:588:126)
	at j.$provideDocumentSymbols (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:588:866)
	at d._doInvokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:644:1006)
	at d._invokeHandler (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:644:698)
	at d._receiveRequest (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:643:293)
	at d._receiveOneMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:642:141)
	at define.constructor._protocol.onMessage.e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:640:400)
	at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
	at a (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:176:766)
	at e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:176:812)
	at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
	at n.constructor.e.onMessage.e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:748:721)
	at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
	at a (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:176:766)
	at e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:176:812)
	at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
	at y._receiveMessage (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:185:670)
	at define.constructor._socketDisposables.push._socketReader.onMessage.e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:182:981)
	at u.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:47:720)
	at f.acceptChunk (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:179:532)
	at define.constructor._register._socket.onData.e (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:178:869)
	at Socket.t (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:187:141)
	at Socket.emit (events.js:182:13)
	at addChunk (_stream_readable.js:279:12)
	at readableAddChunk (_stream_readable.js:264:11)
	at Socket.Readable.push (_stream_readable.js:219:10)
	at Pipe.onread (net.js:636:20)

Also on the output of the language server:

[Info  - 9:27:34 AM] Initializing Ruby language server...
[Info  - 9:27:34 AM] Rebuilding tree-sitter for local Electron version
[Info  - 9:27:34 AM] Rebuild succeeded!
Lint: executing rubocop -s /**************file.rb -f json -R -l...
invalid option: -R

For usage information, use --help

Lint: Received invalid JSON from rubocop:

Expected behavior

Linting occur normally.

created time in 19 days

startedrubyide/vscode-ruby

started time in 20 days

PR opened rubyide/vscode-ruby

Fix bug in locate.js

I encountered a bug where absPath in this.tree was false so waitForParse was assigned the value of this.parse(absParse). However, this.parse(absParse) does not have a return value so I was getting TypeError: Cannot read property 'then' of undefined at Locate.listInFile.

  • [x] The build passes
  • [x] TSLint is mostly happy
  • [x] Prettier has been run
+4 -2

0 comment

1 changed file

pr created time in 20 days

fork peterzhu2118/vscode-ruby

Provides Ruby language and debugging support for Visual Studio Code

https://marketplace.visualstudio.com/items?itemName=rebornix.Ruby

fork in 20 days

startedrubyide/vscode-ruby

started time in 20 days

startedrubyide/vscode-ruby

started time in 20 days

issue openedrubyide/vscode-ruby

Wrong invalid erb syntax

Your environment

  • vscode-ruby version: 0.23.0
  • Ruby version: ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-darwin18]
  • Ruby version manager (if any): rbenv 1.1.2
  • VS Code version: Version 1.35.1 (1.35.1)
  • Operating System: macOS

Expected behavior

Valid erb syntax

Actual behavior

Invalid erb syntax

This what I get when I try to write dynamic attribute inside html opening tag:

Screenshot 2019-06-26 at 8 01 49 PM

created time in 20 days

startedrubyide/vscode-ruby

started time in 20 days

issue commentrubyide/vscode-ruby

There should be a parameter that can be used to set `--memory-limit`

I mean the rdebug-ide parameters

# rdebug-ide --help
Using ruby-debug-base 0.2.2
Usage: rdebug-ide is supposed to be called from RDT, NetBeans, RubyMine, or
       the IntelliJ IDEA Ruby plugin.  The command line interface to
       ruby-debug is rdebug.

Options:
    -h, --host HOST                  Host name used for remote debugging
    -p, --port PORT                  Port used for remote debugging
        --dispatcher-port PORT       Port used for multi-process debugging dispatcher
        --evaluation-timeout TIMEOUT evaluation timeout in seconds (default: 10)
        --evaluation-control         trace to_s evaluation
    -m, --memory-limit LIMIT         evaluation memory limit in mb (default: 10)
    -t, --time-limit LIMIT           evaluation time limit in milliseconds (default: 100)
        --stop                       stop when the script is loaded
    -x, --trace                      turn on line tracing
    -l, --load-mode                  load mode (experimental)
    -d, --debug                      Debug self - prints information for debugging ruby-debug itself
        --xml-debug                  Debug self - sends information <message>s for debugging ruby-debug itself
    -I, --include PATH               Add PATH to $LOAD_PATH
        --attach-mode                Tells that rdebug-ide is working in attach mode
        --key-value                  Key/Value presentation of hash items
        --ignore-port                Generate another port
        --keep-frame-binding         Keep frame bindings
        --disable-int-handler        Disables interrupt signal handler
        --rubymine-protocol-extensions
                                     Enable all RubyMine-specific incompatible protocol extensions
        --catchpoint-deleted-event   Enable chatchpointDeleted event
        --value-as-nested-element    Allow to pass variable's value as nested element instead of attribute

Common options:
    -v, --version                    Show version
Shihta

comment created time in 21 days

issue closedrubyide/vscode-ruby

Lint errors shown does not match bundle exec rubocop command.

Your environment

  • vscode-ruby version: 0.23.0
  • Ruby version: 2.4.6
  • Ruby version manager (if any): Running inside docker
  • VS Code version: 1.36.0
  • Operating System: MacOS
  • Using language server? (eg useLanguageServer is true?): No

Expected behavior

That lint errors underlined in the text editor window would match the errors caught by bundle exec rubocop, including configuration by inherited gems.

Actual behavior

In the editor, I see an error in my RSpec blocks for 'block has too many lines'. When I run bundle exec rubocop on the same file. I do not see the errors.

This and the next section should include screenshots, code samples, console output, etc. The more information we have to reproduce the better!

My rubocop config looks like this.

AllCops:
  TargetRubyVersion: 2.4.6
  Exclude:
    - 'node_modules/**/*'

inherit_gem:
  ramsey_cop:
    - default.yml

require: rubocop-performance

The ramsey_cop gem is an internal gem we have that has the following config in its rules.

Metrics/BlockLength:
  Exclude:
    - config/initializers/*
    - config/routes.rb
    - Gemfile
    - spec/**/*
    - test/**/*
    - "*.gemspec"
    - "**/*.rake"

My vscode config for anything related to ruby is this.

{
  "[ruby]": {
    "editor.formatOnSave": true
  },
  "ruby.format": "rubocop",
  "editor.formatOnSaveTimeout": 2500,
  "ruby.codeCompletion": false,
  "ruby.intellisense": "rubyLocate",
  "ruby.lint": {
    "rubocop": true
  },
  "ruby.useBundler": true
}

I also use the solargraph extension for goto definition. All of this is running inside of a docker container running centos, and running vscode through the docker remote development extension.

EDIT: I have discovered that if I put the configuration from our inherited gem straight into the local rubocop configuration file. The linting matches up one for one. I think now that this is definitely an issue with rubocop configuration inheritance, and how the extension interacts with it.

closed time in 21 days

RileyMathews

push eventrubyide/vscode-ruby

Just Me

commit sha 17b987aee3f581d3193342eaf2b5f4b5a4b8dbd5

Add rake task definition

view details

Stafford Brunk

commit sha 5ef63bb22d3f1bd806045f054281d0da0408c7fd

Merge pull request #497 from just806me/add-task-definition Add rake task definition

view details

push time in 22 days

PR merged rubyide/vscode-ruby

Add rake task definition

Add missing task definition for rake tasks. This allows some customization of auto-detected tasks (e.g never scan the task output). Without task definition VSCode shows 'Value is not accepted' error and ignores that task.

image

  • [x] The build passes
  • [x] TSLint is mostly happy
  • [ ] Prettier has been run
+18 -0

1 comment

1 changed file

just806me

pr closed time in 22 days

pull request commentrubyide/vscode-ruby

Add rake task definition

Great! Will merge when CI finishes

just806me

comment created time in 22 days

PR opened rubyide/vscode-ruby

Add rake task definition

Add task definition for rake tasks. This allows customization of auto-detected tasks (e.g never scan the task output). Without task definition VSCode shows 'Value is not accepted' error and ignores that task.

image

  • [x] The build passes
  • [x] TSLint is mostly happy
  • [ ] Prettier has been run
+18 -0

0 comment

1 changed file

pr created time in 22 days

fork just806me/vscode-ruby

Provides Ruby language and debugging support for Visual Studio Code

https://marketplace.visualstudio.com/items?itemName=rebornix.Ruby

fork in 22 days

more