Skip to content

Can't Add LibreOffice SDK configuration #145

Description

@vselivanow

When trying to add the LibreOffice SDK (Window > Preferences > LibreOffice Plugin > SDK Configuration > Add LibreOffice SDK configuration) nothing happens (or for a moment it shows the error "SDK version has to be at least 2.0.4").
The program is actually trying to find the file "uno_skeletonmaker.exe " while he "uno-skeletonmaker.exe"

A code snippet from the SDK.java, which is located in the package org.libreoffice.ide.eclipse.core.internal.model:

 String binName = getCommand("uno-skeletonmaker"); //$NON-NLS-1$
 if (!path.append(binName).toFile().exists()) {
       throw new InvalidConfigException(Messages.getString("SDK.MinSdkVersionError"), //$NON-NLS-1$
           InvalidConfigException.INVALID_SDK_HOME);
 }

...

public String getCommand(String command) {
    if (Platform.getOS().equals(Platform.OS_WIN32)) {
        command = command.replace('-', '_');
        command += ".exe"; //$NON-NLS-1$
    }
    return command;
}

Temporary solution:

When adding the SDK to the "pathToLibreOfficeSDK\sdk\bin" directory, rename "uno-skeletonmaker.exe" to "uno_skeletonmaker.exe".
After adding the SDK configuration, return it to its original state.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions