Search Issue Tracker

Fixed in 1.1.2

Votes

37

Found in [Package]

1.0.7

Issue ID

1173165

Regression

Yes

[Mac] A new script is not being opened as a different tab when using VSCode

Package: VS Code

-

How to reproduce:
1. Create a new Unity Project
2. Make sure VSCode is set as a default text editor
3. Create two scripts
4. Open the first script, then open the second one

Expected results: Both scripts are opened in VSCode in separate tabs
Actual results: Only first opened script is shown in VSCode

Reproducible with: 2019.2.0a12, 2019.2.0f1, 2019.3.0a11 (package ver 1.0.7)
Not reproducible with: 2017.4.31f1, 2018.4.5f1, 2019.1.13f1, 2019.2.0a11

Additional notes:
1. It was tested on OS X 10.14.2 and 10.14.4. The issue reproduces on 10.14.2. On 10.14.4 VSCode opens it's welcome screen only
2. Package versions 1.0.2 and 1.0.3 throw Win32Exceptions on a Mac, however, the issue does not reproduce

Resolved in package version 1.1.2

Comments (12)

  1. C588d6e51490389e9fbe3537c2146a21?d=mm

    juanfornos

    Sep 11, 2019 00:14

    Never mind, I updated to Unity 2019.2.4f1 and the version 1.1.2 is now available in the package manager. Thanks!

  2. C588d6e51490389e9fbe3537c2146a21?d=mm

    juanfornos

    Sep 10, 2019 16:04

    AMROC: Thanks for the info! Which version of Unity are you running? The version 1.1.2 isn't available to me on the Package Manager (Unity 2019.2.0f1) and doesn't appear on the package changelog yet. That's why I thought it wasn't available to the public yet.

  3. 7e44554d18abcbb2431b9b50c3665f9d?d=mm

    amroc

    Sep 09, 2019 16:24

    JUANFORNOS & MUCKEL: 1.1.2 is available for me from the package manager, I updated it on the 6th of September.

  4. C588d6e51490389e9fbe3537c2146a21?d=mm

    juanfornos

    Sep 09, 2019 14:59

    MUCKEL: It seems the version 1.1.2 isn't available to the public yet: https://docs.unity3d.com/Packages/com.unity.ide.vscode@1.0/changelog/CHANGELOG.html

    Meanwhile you can workaround this by running this script after each time you open Unity (set PROJECT_PATH with your project's path)

    sed -i '' 's/\$\"\\\"{GetDefaultApp}/$"-n \\\"{GetDefaultApp}/g' ${PROJECT_PATH}/Library/PackageCache/com.unity.ide.vscode@1.0.7/Editor/VSCodeScriptEditor.cs

  5. 442822f19717c17f47be232a9530ce96?d=mm

    Muckel

    Sep 06, 2019 14:35

    bug is still present!!!
    Unity what are you doing?
    where is the QA and bug testing...

  6. 431e3f6995b933a58d035e0ca9ecb775?d=mm

    jirimotejlek

    Aug 29, 2019 16:42

    Basically, Visual Studio Code doesn't work with Unity on macOS.
    Since editing scripts seems like a quite vital functionality for any IDE, how does this issue still exist after three unity releases is a mystery to me.

  7. Dc0930f6c9bb690f6093f393a6775462?d=mm

    Conferno

    Aug 27, 2019 12:58

    Yes, this is annoying. I have this bug too

  8. 2c384879e08341715def01d889d16404?d=mm

    antpaw

    Aug 09, 2019 09:38

    as pointed out here https://forum.unity.com/threads/cant-get-vscode-to-work-properly-with-unity.538224/

    this seams to fix it : Arguments = $"-n \"{GetDefaultApp}\" --args {arguments}",

  9. Be64981832ac5735e86623663400e103?d=mm

    tboebb

    Aug 09, 2019 07:32

    I can confirm it as well.
    This is very annoying.

  10. Ec610d8fe44e47a0efa2603accdd19d4?d=mm

    unity_2L-MlLDX1uzHPg

    Aug 08, 2019 07:19

    Can confirm, this happens since I updated Unity to 2019.2.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.