Aptana Studio
  1. Aptana Studio
  2. APSTUD-2842

Studio fails to create new file from template

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: None None
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Aptana Studio 3.0.3
    • Component/s: None
    • Labels:
      None
    • Environment:

      Aptana Studio 3, build: 3.0.3.201106291604
      Ubuntu 10.04

      Description

      CAVEAT : This happened on an Ubuntu 10.04 machine. I tried the same software build on an Ubuntu 10.10 machine (Aptana Studio 3, build: 3.0.3.201106291604) and observed a console-generated error, however on Ubuntu 10.10 Aptana closed the New File pop-up and went to file.

      If you try to complete test All-Editor.1.002 with YAML, you can open a new file (say, testfile.yaml), then click Next, select YAML from the list of templates, then click Finish. However, in the YAML context Finish is not functional (see attached console and log files).

      Steps to Replicate :

      1. Open Aptana Studio.
      2. Open new file (File > New > File).
      3. Select the parent folder and give the file a yaml extension (e.g., "test.yaml").
      4. Click Next button.
      5. Click the Finish button.

      Actual Results :

      File creation pop-up stays open and Aptana does not create a new file.

      Expected Results :

      Aptana should create new .yaml file.

      1. yamlFailConsole
        1 kB
        Joel Witt
      2. yamlFailLogFile
        18 kB
        Joel Witt

        Activity

        Hide
        Ingo Muschenetz added a comment -

        I think the fact it's a YAML file is a red herring--that's because there is no "lib" directory for the YAML ruble, so the path construction is incorrect. I'm solving that.

        The other issue (with the second log file) replicates something I've seen but never saw a stack trace for, and I think it is important. I'll try creating a new file and the finish button just doesn't do anything. No error message (and for me, nothing in the log file). Only restarting Studio fixes it.

        Related, I would suggest adding a little info logging to the process.

        Show
        Ingo Muschenetz added a comment - I think the fact it's a YAML file is a red herring--that's because there is no "lib" directory for the YAML ruble, so the path construction is incorrect. I'm solving that. The other issue (with the second log file) replicates something I've seen but never saw a stack trace for, and I think it is important. I'll try creating a new file and the finish button just doesn't do anything. No error message (and for me, nothing in the log file). Only restarting Studio fixes it. Related, I would suggest adding a little info logging to the process.
        Hide
        Michael Xia (Inactive) added a comment -

        Fixed the second part with the casting error.

        Show
        Michael Xia (Inactive) added a comment - Fixed the second part with the casting error.
        Hide
        Ingo Muschenetz added a comment -

        Modified template definition to remove the error.

        Show
        Ingo Muschenetz added a comment - Modified template definition to remove the error.
        Hide
        Clayton Headley (Inactive) added a comment -

        Verified fixed. Closing report.

        Show
        Clayton Headley (Inactive) added a comment - Verified fixed. Closing report.

          People

          • Assignee:
            Ingo Muschenetz
            Reporter:
            Joel Witt (Inactive)
          • Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: