Skip to content

Commit 359934c

Browse files
committed
Mkdir -p
1 parent e266df1 commit 359934c

File tree

1 file changed

+5
-2
lines changed
  • components/ide/jetbrains/launcher

1 file changed

+5
-2
lines changed

components/ide/jetbrains/launcher/main.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -808,9 +808,10 @@ func configureClientSideVMOptions(launchCtx *LaunchContext) error {
808808
if launchCtx.alias != "pycharm" {
809809
return nil
810810
}
811-
// ENT-849
812-
// Add -Dide.browser.jcef.enabled=false for PyCharm
813811
vmOptionsPath := launchCtx.clientVMOptionsFile
812+
if err := os.MkdirAll(filepath.Dir(vmOptionsPath), 0755); err != nil {
813+
return err
814+
}
814815
options, err := readVMOptions(vmOptionsPath)
815816
if err != nil {
816817
if errors.Is(err, fs.ErrNotExist) {
@@ -819,6 +820,8 @@ func configureClientSideVMOptions(launchCtx *LaunchContext) error {
819820
return err
820821
}
821822
}
823+
// ENT-849
824+
// Add -Dide.browser.jcef.enabled=false for PyCharm
822825
newOptions := deduplicateVMOption(options, []string{"-Dide.browser.jcef.enabled=false"}, func(l, r string) bool {
823826
return l == r
824827
})

0 commit comments

Comments
 (0)