Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-1524

Liferay SDK dir include Chinese character will cause gibberish

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.2.0
    • Fix Version/s: 2.1.1
    • Labels:
      None
    • Environment:
      Liferay IDE 2.1.0.201404271717-ga1

      Description

      Reproduce steps:

      1.set up a SDK that include Chinese character in the path ,like "D:\迅雷下载\liferay-plugins-sdk-7.0.0\liferay-plugins-sdk-7.0.0"
      2.restart IDE .open error log , will see error "Could not detect the sdk version."
      3.open Preferences>>Liferay>>Installed Plugin SDK ,the Location is not readable now and can not detected

      error log:
      Could not detect the sdk version.
      java.io.FileNotFoundException: D:\杩呴浄涓嬭浇\liferay-plugins-sdk-7.0.0\liferay-plugins-sdk-7.0.0\build.properties (系统找不到指定的路径。)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(FileInputStream.java:146)
      at com.liferay.ide.sdk.core.SDKUtil.readSDKVersion(SDKUtil.java:221)
      at com.liferay.ide.sdk.core.SDK.getVersion(SDK.java:632)
      at com.liferay.ide.sdk.ui.InstalledSDKsCompostite$SDKLabelProvider.getColumnText(InstalledSDKsCompostite.java:120)
      at org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:70)
      at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:152)
      at org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:400)
      at org.eclipse.jface.viewers.CheckboxTableViewer.doUpdateItem(CheckboxTableViewer.java:168)
      at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:485)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
      at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
      at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2167)
      at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:712)
      at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:650)
      at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh(AbstractTableViewer.java:637)
      at org.eclipse.jface.viewers.StructuredViewer$7.run(StructuredViewer.java:1508)
      at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1443)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 40 weeks, 4 days ago

                Packages

                Version Package
                2.1.1