File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -81,20 +81,22 @@ def generate_gem_rbis
81
81
82
82
sig { params ( gems : T ::Array [ String ] ) . void }
83
83
def execute_tapioca_gem_command ( gems )
84
- # Resetting BUNDLE_GEMFILE to root folder to use the project's Gemfile instead of Ruby LSP's composed Gemfile
85
- stdout , stderr , status = T . unsafe ( Open3 ) . capture3 (
86
- { "BUNDLE_GEMFILE" => "Gemfile" } ,
87
- "bundle" ,
88
- "exec" ,
89
- "tapioca" ,
90
- "gem" ,
91
- "--lsp_addon" ,
92
- *gems ,
93
- )
94
-
95
- log_message ( stdout ) unless stdout . empty?
96
- log_message ( stderr ) unless stderr . empty?
97
- @result . status = status
84
+ Bundler . with_unbundled_env do
85
+ # Resetting BUNDLE_GEMFILE to root folder to use the project's Gemfile instead of Ruby LSP's composed Gemfile
86
+ stdout , stderr , status = T . unsafe ( Open3 ) . capture3 (
87
+ { "BUNDLE_GEMFILE" => "Gemfile" } ,
88
+ "bundle" ,
89
+ "exec" ,
90
+ "tapioca" ,
91
+ "gem" ,
92
+ "--lsp_addon" ,
93
+ *gems ,
94
+ )
95
+
96
+ log_message ( stdout ) unless stdout . empty?
97
+ log_message ( stderr ) unless stderr . empty?
98
+ @result . status = status
99
+ end
98
100
end
99
101
100
102
sig { params ( gems : T ::Array [ String ] ) . void }
You can’t perform that action at this time.
0 commit comments