Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Repl / Interpreter
    • Labels:

      Description

      I just spent considerable time trying to launch scala in a windows 7 x64 environment. The problem and solution are here: http://stackoverflow.com/questions/430376/batch-files-vista-x64-if-and-parenthesis

      Basically, SCALA_HOME is C:\Program Files (x86)\scala . In batch files, variables in 'if' statements are expanded before the 'if' statement is parsed. The parenthesis confuses the parser

      This problem will probably become more and more common as more people switch to new computers.

        Activity

        Hide
        Ittay Dror added a comment -
        Show
        Ittay Dror added a comment - Maybe the comment here: http://marsbox.com/blog/howtos/batch-file-programfiles-x86-parenthesis-anomaly/ is useful
        Hide
        Paul Phillips added a comment -

        Coincidentally I installed windows 7 this weekend just to try to deal with some of its issues a little bit. I am checking in some work today but I don't know whether this issue is deal with or not: I habitually avoid installing things in directories full of parentheses and spaces. I'll have to clear it and reinstall things as if I'm not paranoid about exactly this kind of issue.

        Show
        Paul Phillips added a comment - Coincidentally I installed windows 7 this weekend just to try to deal with some of its issues a little bit. I am checking in some work today but I don't know whether this issue is deal with or not: I habitually avoid installing things in directories full of parentheses and spaces. I'll have to clear it and reinstall things as if I'm not paranoid about exactly this kind of issue.
        Hide
        Paul Phillips added a comment -

        Replying to [comment:1 ittayd]:
        > Maybe the comment here: http://marsbox.com/blog/howtos/batch-file-programfiles-x86-parenthesis-anomaly/ is useful

        Can you give me enough detail to understand why scala is being installed in "C:\Program Files (x86)" in your environment and not in mine? I have that directory, and there are things in it, but both java and scala by default installed into "C:\Program Files". I am using Windows 7 Ultimate 64-bit.

        Show
        Paul Phillips added a comment - Replying to [comment:1 ittayd] : > Maybe the comment here: http://marsbox.com/blog/howtos/batch-file-programfiles-x86-parenthesis-anomaly/ is useful Can you give me enough detail to understand why scala is being installed in "C:\Program Files (x86)" in your environment and not in mine? I have that directory, and there are things in it, but both java and scala by default installed into "C:\Program Files". I am using Windows 7 Ultimate 64-bit.
        Hide
        Ittay Dror added a comment -

        About Java, you probably downloaded the 64bit version. I use the 32 bit.

        About Scala, I don't know how the installer chooses where to install, but it probably ends up next to the JDK.

        Show
        Ittay Dror added a comment - About Java, you probably downloaded the 64bit version. I use the 32 bit. About Scala, I don't know how the installer chooses where to install, but it probably ends up next to the JDK.
        Hide
        Paul Phillips added a comment -

        Replying to [comment:4 ittayd]:
        > About Java, you probably downloaded the 64bit version. I use the 32 bit.
        >
        > About Scala, I don't know how the installer chooses where to install, but it probably ends up next to the JDK.

        Right on both counts. Thanks.

        Show
        Paul Phillips added a comment - Replying to [comment:4 ittayd] : > About Java, you probably downloaded the 64bit version. I use the 32 bit. > > About Scala, I don't know how the installer chooses where to install, but it probably ends up next to the JDK. Right on both counts. Thanks.
        Hide
        Commit Message Bot added a comment -

        (extempore in r25996) Delayed expansion in scala.bat.

        Closes SI-4019.

        Show
        Commit Message Bot added a comment - (extempore in r25996 ) Delayed expansion in scala.bat. Closes SI-4019 .

          People

          • Assignee:
            Unassigned
            Reporter:
            Ittay Dror
            TracCC:
            Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development