Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug External Editor arguments are messed up

Discussion in 'Linux' started by Cygon4, Oct 12, 2016.

  1. Cygon4

    Cygon4

    Joined:
    Sep 17, 2012
    Posts:
    382
    I'm trying to use Sublime Text with Unity on Linux, but it always gets the argument wrong.

    For example, if I have my Unity project folder at
    /mnt/devel/GameDev/SomeProject

    Then $(File) will pass the following argument to the external editor
    /mnt/devel/GameDev/SomeProject/"/mnt/devel/GameDev/SomeProject/Assets/SourceFile.cs"

    Could it be that Unity is combining paths using a method that does not support Linux path separators or something?
     
  2. DominoM

    DominoM

    Joined:
    Nov 24, 2016
    Posts:
    460
    The default passed filename passed to the external application gets extra quotes added, so you can make it work by using
    $(File) instead of '$(File)' - or was it "$(File)"? - So just remove the quotes form the External Script Editor Args and it should start working.
     
  3. Cygon4

    Cygon4

    Joined:
    Sep 17, 2012
    Posts:
    382
    Thanks! That actually fixed my issue :)