Skip to content

bug(developer): Clone existing project lets you select uncloneable keyboards #15606

@thesunshade

Description

@thesunshade

Describe the bug

The new project > clone project from Keyman cloud permits the user to select an uncloneable project and gives no feedback on why the "OK" button remains unclickable or it gives an error message after clicking "OK" if it is clickable.

Test using "Sipon Phonetic Sinhala". This is a legacy keyboard without source code. The user should not be able to select a keyboard that can't be cloned.

Reproduce the bug

  1. Click New Project
  2. Select "clone project from Keyman cloud"
  3. Search for "sipon Phonetic Sinhala" keyboard
  4. Select it
  5. One of two things will happen.
  • either the "OK" button never becomes clickable or
  • You get the following Messages:
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Courier New;}}
{\colortbl ;\red26\green121\blue150;\red51\green51\blue51;\red107\green107\blue107;\red0\green0\blue0;\red102\green102\blue102;\red147\green97\blue21;\red201\green52\blue52;}
\viewkind4\uc1\pard\cf1\f0\fs16 xxx.kpj\cf2  - info: \cf3 "C:\\Program Files (x86)\\Keyman\\Keyman Developer\\kmc.cmd" "copy" "--out-path" "C:xxx\xxxDocuments\\Keyman Developer\\Projects\\xxx" "--log-format" "tsv" "--log-level" "info" "cloud:sipon%20phonetic%20sinhala"\cf4\par
\cf1 sipon%20phonetic%20sinhala\cf2  - info \cf5\ul KM05023\cf2\ulnone : \cf3 Copying project 'cloud:sipon%20phonetic%20sinhala' to 'C:xxx\xxxDocuments\\Keyman Developer\\Projects\\xxx'\cf4\par
\cf1 sipon%20phonetic%20sinhala\cf2  - info \cf5\ul KM05024\cf2\ulnone : \cf3 'cloud:sipon%20phonetic%20sinhala' copied to 'C:xxx\xxxDocuments\\Keyman Developer\\Projects\\xxx' successfully.\cf4\par
\cf1 sipon%20phonetic%20sinhala\cf2  - \cf6 warn \cf5\ul KM0B014\cf2\ulnone : The file 'keymanapp/keyboards/tree/master//legacy/s/sipon phonetic sinhala/sipon phonetic sinhala.kpj' could not be downloaded: Error downloading https://raw.githubusercontent.com/keymanapp/keyboards/refs/heads/master/legacy/s/sipon phonetic sinhala/sipon phonetic sinhala.kpj HTTP error 404: Not Found\cf4\par
\cf1 sipon%20phonetic%20sinhala\cf2  - \cf7 error \cf5\ul KM0B00E\cf2\ulnone : Project file '/legacy/s/sipon phonetic sinhala/sipon phonetic sinhala.kpj' is not valid: TypeError: The "list" argument must be an instance of SharedArrayBuffer, ArrayBuffer or ArrayBufferView.\cf4\par
\par
}

And no new project is created

Expected behavior

There should be a new project.

Related issues

No response

Keyman apps

  • Keyman for Android
  • Keyman for iPhone and iPad
  • Keyman for Linux
  • Keyman for macOS
  • Keyman for Windows
  • Keyman Developer
  • KeymanWeb
  • Other - give details at bottom of form

Keyman version

18.0.246

Operating system

Windows 11

Device

Windows laptop

Target application

No response

Browser

No response

Keyboard name

No response

Keyboard version

No response

Language name

No response

Additional context

No response

Metadata

Metadata

Assignees

Type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions