You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 31, 2023. It is now read-only.
Using language server? (eg useLanguageServer is true in your configuration?) No
Expected behavior
For linting and formatting to work in a new rails project with standardrb.
Actual behavior
The extension fails to start when opening a Ruby file in a new Rails project. The extension host log window gives the following output:
[2021-11-03 13:23:50.173] [exthost] [error] TypeError: u[t] is not a constructor
at c._runLinters (/home/aries/.vscode/extensions/rebornix.ruby-0.28.1/dist/client/ruby.js:9:100387)
at c.run (/home/aries/.vscode/extensions/rebornix.ruby-0.28.1/dist/client/ruby.js:9:98899)
at t.LintCollection.run (/home/aries/.vscode/extensions/rebornix.ruby-0.28.1/dist/client/ruby.js:9:97999)
at r (/home/aries/.vscode/extensions/rebornix.ruby-0.28.1/dist/client/ruby.js:9:94677)
at Array.forEach (<anonymous>)
at Object.t.registerLinters (/home/aries/.vscode/extensions/rebornix.ruby-0.28.1/dist/client/ruby.js:9:95207)
at /home/aries/.vscode/extensions/rebornix.ruby-0.28.1/dist/client/ruby.js:1:78681
at Generator.next (<anonymous>)
at /home/aries/.vscode/extensions/rebornix.ruby-0.28.1/dist/client/ruby.js:1:77907
at new Promise (<anonymous>)
at r (/home/aries/.vscode/extensions/rebornix.ruby-0.28.1/dist/client/ruby.js:1:77655)
at t.activate (/home/aries/.vscode/extensions/rebornix.ruby-0.28.1/dist/client/ruby.js:1:78420)
at Function._callActivateOptional (/opt/visual-studio-code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:99:15028)
at Function._callActivate (/opt/visual-studio-code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:99:14704)
at /opt/visual-studio-code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:99:12907
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Promise.all (index 1)
Activity
lucasprag commentedon Dec 17, 2021
I'm also having the same problem.
My settings are just:
However, if I use rubocop, it works and I can see linting warnings on my code.
I tried removing all ruby related extensions and others as well.
lucasprag commentedon Dec 17, 2021
Hey @wingrunr21 and @rebornix, is there anything I can do to help with this issue? 🙏
I tried building the project locally following the instructions on developing.md#getting-started, but I get this error:
It sounds like this dependency might be wrong. I think that's the case because I can't find a package called "web-tree-sitter-ruby" on npm. However I'm able to find one called tree-sitter-ruby and it even matches the most recent version on your
package.json, which is0.19.0, but I'm not sure exactly what is happening 🤔wingrunr21 commentedon Jan 3, 2022
web-tree-sitter-rubyis in thepackagesdirectory. It isn't wrong 😉navels commentedon Apr 4, 2022
I got hit with this today as well.
Update: ah, I had rebuilt my dev container and hadn't yet run
bundle install:-)