os-js / OS.js

OS.js - JavaScript Web Desktop Platform
https://www.os-js.org/
Other
6.87k stars 819 forks source link

Menu doesnt open just a dot appears on click #162

Closed ta3pks closed 8 years ago

ta3pks commented 8 years ago

Edit by @andersevenrud: After lots of debugging we have noticed this only occurs on Chrome in Mint Linux on his computer. I have failed to replicate this on all of my computers and browsers -- which makes this soooo strange!

Edit It now also happens in Firefox after he was messing around a bit wtf

Edit After clearing the LocalStorage (settings in demo handler), it works fine. I suspect this might have something to do with the settings-filter I made for "hidden" applications....

Leaving this open until I retire it simply because I cannot replicate

screenshot from 2015-10-15 18 29 08 when i click the menu just a white dot appears that u see in the photo nothing happens

andersevenrud commented 8 years ago

This is a symptom of missing package manifest. If you followed the installation docs this should ideally not happen.

Try to run grunt manifest to re-create it (and then reload the client in your browser). If it does not work let me know so I can give further instructions on how to debug this problem

ta3pks commented 8 years ago

screenshot from 2015-10-15 18 44 39 the same still i restarted server as well and restarted the client nothing seems changed

andersevenrud commented 8 years ago

In the browser, open the Developer Console and enter this:

OSjs.Core.getMetadata()

You should see something like this:

{
    "ApplicationAbout": {
        "className": "ApplicationAbout",
        "name": "Om OS.js",
        "description": "Om OS.js",
        "names": {
            "no_NO": "Om OS.js",
            "pl_PL": "o OS.js",
            "de_DE": "Über OS.js",
            "ru_RU": "Об OS.js",
            "nl_NL": "Over OS.js",
            "vi_VN": "Thông tin về OS.js"
        },
        "descriptions": {
            "no_NO": "Om OS.js",
            "pl_PL": "o OS.js",
            "de_DE": "Über OS.js",
            "ru_RU": "Об OS.js",
            "nl_NL": "Over OS.js",
            "vi_VN": "Thông tin về OS.js"
        },
        "singular": true,
        "mime": null,
        "category": "system",
        "icon": "apps/help-browser.png",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/About/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/About/combined.css"
            }
        ],
        "type": "application",
        "path": "default/About",
        "build": {},
        "scope": "system"
    },
    "ApplicationCalculator": {
        "className": "ApplicationCalculator",
        "name": "Kalkulator",
        "names": {
            "no_NO": "Kalkulator",
            "ru_RU": "Калькулятор",
            "pl_PL": "Kalkulator",
            "nl_NL": "Rekenmachine",
            "vi_VN": "Máy tính"
        },
        "mime": null,
        "icon": "apps/calc.png",
        "category": "office",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/Calculator/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/Calculator/combined.css"
            }
        ],
        "type": "application",
        "path": "default/Calculator",
        "build": {},
        "description": "Kalkulator",
        "scope": "system"
    },
    "CoreWM": {
        "className": "CoreWM",
        "name": "OS.js Vinduhåndterer",
        "names": {
            "no_NO": "OS.js Vinduhåndterer",
            "pl_PL": "Manager Okien OS.js",
            "de_DE": "OS.js Fenster-Manager",
            "ru_RU": "OS.js Оконный менеджер",
            "nl_NL": "OS.js venster beheer",
            "vi_VN": "Quản lí cửa sổ OS.js"
        },
        "singular": true,
        "type": "windowmanager",
        "mime": null,
        "icon": "apps/gnome-window-manager.png",
        "splash": false,
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/CoreWM/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/CoreWM/combined.css"
            }
        ],
        "path": "default/CoreWM",
        "build": {},
        "description": "OS.js Vinduhåndterer",
        "scope": "system"
    },
    "ApplicationDraw": {
        "className": "ApplicationDraw",
        "name": "Tegne",
        "description": "Simpelt tegne-program",
        "names": {
            "no_NO": "Tegne",
            "pl_PL": "Rysowanie",
            "de_DE": "Zeichnen",
            "ru_RU": "Графический редактор",
            "nl_NL": "Tekenen",
            "vi_VN": "Vẽ"
        },
        "descriptions": {
            "no_NO": "Simpelt tegne-program",
            "pl_PL": "Prosta aplikacja do rysowania",
            "de_DE": "Einfaches Zeichen-Programm",
            "ru_RU": "Простой графический редактор",
            "nl_NL": "Eenvoudig tekenprogramma",
            "vi_VN": "Phần mềm vẽ đơn giản"
        },
        "mime": [
            "^image"
        ],
        "category": "graphics",
        "icon": "categories/gnome-graphics.png",
        "compability": [
            "canvas"
        ],
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/Draw/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/Draw/combined.css"
            }
        ],
        "type": "application",
        "path": "default/Draw",
        "build": {},
        "scope": "system"
    },
    "ApplicationFileManager": {
        "className": "ApplicationFileManager",
        "name": "Fil-håndtering",
        "description": "Standard Fil-håndtering program",
        "names": {
            "no_NO": "Fil-håndtering",
            "pl_PL": "Manager Plików",
            "de_DE": "Dateimanager",
            "ru_RU": "Файловый менеджер",
            "nl_NL": "bestands beheer",
            "vi_VN": "Quản lí file"
        },
        "descriptions": {
            "no_NO": "Standard Fil-håndtering program",
            "pl_PL": "Domyślny Manager Plików",
            "de_DE": "Standardmäßiger Dateimanager",
            "ru_RU": "Стандартный файловый менеджер",
            "nl_NL": "Standaard bestands beheerder",
            "vi_VN": "Trình quản lí file mặc định"
        },
        "mime": null,
        "category": "utilities",
        "icon": "apps/file-manager.png",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/FileManager/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/FileManager/combined.css"
            }
        ],
        "type": "application",
        "path": "default/FileManager",
        "build": {},
        "scope": "system"
    },
    "ApplicationFirefoxMarketplace": {
        "className": "ApplicationFirefoxMarketplace",
        "name": "Firefox Marketplace (Experimental)",
        "description": "Firefox Marketplace",
        "mime": null,
        "icon": "./icon.png",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/FirefoxMarketplace/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/FirefoxMarketplace/combined.css"
            }
        ],
        "type": "application",
        "path": "default/FirefoxMarketplace",
        "build": {},
        "scope": "system"
    },
    "ApplicationMusicPlayer": {
        "className": "ApplicationMusicPlayer",
        "name": "Musikkspiller",
        "names": {
            "no_NO": "Musikkspiller",
            "pl_PL": "Odtwarzacz muzyki",
            "de_DE": "Musikspieler",
            "ru_RU": "Аудиоплеер",
            "nl_NL": "Audio speler",
            "vi_VN": "Nghe nhạc"
        },
        "mime": [
            "^audio",
            "osjs\\/playlist"
        ],
        "category": "multimedia",
        "icon": "status/audio-volume-high.png",
        "singular": true,
        "compability": [
            "audio"
        ],
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/MusicPlayer/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/MusicPlayer/combined.css"
            }
        ],
        "type": "application",
        "path": "default/MusicPlayer",
        "build": {},
        "description": "Musikkspiller",
        "scope": "system"
    },
    "ApplicationPreview": {
        "className": "ApplicationPreview",
        "name": "Forhåndsviser",
        "description": "Forhåndsvisning av bilde-filer",
        "names": {
            "no_NO": "Forhåndsviser",
            "pl_PL": "Podgląd",
            "de_DE": "Vorschau",
            "ru_RU": "Просмотрщик",
            "nl_NL": "Foto viewer",
            "vi_VN": "Trình xem ảnh"
        },
        "descriptions": {
            "no_NO": "Forhåndsvisning av bilde-filer",
            "pl_PL": "Podgląd zdjęć",
            "de_DE": "Bildervorschau",
            "ru_RU": "Просмотрщик изображений",
            "nl_NL": "Foto viewer",
            "vi_VN": "Trình xem ảnh"
        },
        "mime": [
            "^image",
            "^video"
        ],
        "category": "multimedia",
        "icon": "mimetypes/image.png",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/Preview/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/Preview/combined.css"
            }
        ],
        "type": "application",
        "path": "default/Preview",
        "build": {},
        "scope": "system"
    },
    "ApplicationProcessViewer": {
        "className": "ApplicationProcessViewer",
        "name": "Prosess oversikt",
        "description": "Se oversikt over kjørende prosesser",
        "names": {
            "no_NO": "Prosess oversikt",
            "pl_PL": "Procesy",
            "de_DE": "Prozess-Manager",
            "ru_RU": "Менеджер процессов",
            "nl_NL": "Proces manager",
            "vi_VN": "Xem tiến trình"
        },
        "descriptions": {
            "no_NO": "Se oversikt over kjørende prosesser",
            "pl_PL": "Zobacz działające procesy",
            "de_DE": "Laufende Prozesse verwalten",
            "ru_RU": "Менеджер запущенных процессов",
            "nl_NL": "Bekijk de lopende processen",
            "vi_VN": "Xem các tiến trình đang chạy"
        },
        "singular": true,
        "mime": null,
        "category": "system",
        "icon": "apps/gnome-monitor.png",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/ProcessViewer/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/ProcessViewer/combined.css"
            }
        ],
        "type": "application",
        "path": "default/ProcessViewer",
        "build": {},
        "scope": "system"
    },
    "ApplicationSettings": {
        "className": "ApplicationSettings",
        "name": "Instillinger",
        "names": {
            "no_NO": "Instillinger",
            "pl_PL": "Ustawienia",
            "de_DE": "Einstellungen",
            "ru_RU": "Настройки",
            "nl_NL": "Instellingen",
            "vi_VN": "Cài đặt"
        },
        "descriptions": {
            "no_NO": "Instillinger",
            "pl_PL": "Ustawienia",
            "de_DE": "Einstellungen",
            "ru_RU": "Настройки",
            "nl_NL": "Instellingen",
            "vi_VN": "Cài đặt"
        },
        "mime": null,
        "icon": "categories/applications-system.png",
        "category": "system",
        "singular": true,
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/Settings/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/Settings/combined.css"
            }
        ],
        "type": "application",
        "path": "default/Settings",
        "build": {},
        "description": "Instillinger",
        "scope": "system"
    },
    "ApplicationTextpad": {
        "className": "ApplicationTextpad",
        "name": "Tekstblokk",
        "description": "Simpel tekst redigering",
        "names": {
            "no_NO": "Tekstblokk",
            "pl_PL": "Notatnik",
            "de_DE": "Texteditor",
            "ru_RU": "Редактор текста",
            "nl_NL": "Notities",
            "vi_VN": "Trình sửa văn bản"
        },
        "descriptions": {
            "no_NO": "Simpel tekst redigering",
            "pl_PL": "Prosty edytor tekstu",
            "de_DE": "Einfacher Texteditor",
            "ru_RU": "Простой текстовый редактор",
            "nl_NL": "Eenvoudige Tekstverwerker",
            "vi_VN": "Trình sửa văn bản đơn giản"
        },
        "mime": [
            "^text",
            "inode\\/x\\-empty",
            "application\\/x\\-empty",
            "application\\/x\\-python",
            "application\\/javascript",
            "application\\/json"
        ],
        "category": "utilities",
        "icon": "apps/accessories-text-editor.png",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/Textpad/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/Textpad/combined.css"
            }
        ],
        "type": "application",
        "path": "default/Textpad",
        "build": {},
        "scope": "system"
    },
    "ApplicationWriter": {
        "className": "ApplicationWriter",
        "name": "Writer",
        "description": "Skriv riktekst dokumenter",
        "names": {
            "no_NO": "Writer",
            "pl_PL": "Writer",
            "de_DE": "Writer",
            "ru_RU": "Текстовый процессор",
            "nl_NL": "Tekstverwerker",
            "vi_VN": "Viết"
        },
        "descriptions": {
            "no_NO": "Skriv riktekst dokumenter",
            "pl_PL": "Twórz dokumenty rich text",
            "de_DE": "Verfassen Sie Rich-Text-Dokumente",
            "ru_RU": "Текстовый процессор",
            "nl_NL": "Tekst verwerker met opmaak",
            "vi_VN": "Xem, chỉnh sửa văn bản"
        },
        "mime": [
            "^text",
            "osjs\\/document"
        ],
        "category": "office",
        "icon": "apps/libreoffice34-writer.png",
        "compability": [
            "richtext"
        ],
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/Writer/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/Writer/combined.css"
            }
        ],
        "type": "application",
        "path": "default/Writer",
        "build": {},
        "scope": "system"
    }
}
ta3pks commented 8 years ago

screenshot from 2015-10-15 18 51 01 {

    "ApplicationAbout": {
        "className": "ApplicationAbout",
        "name": "About OS.js",
        "description": "About OS.js",
        "names": {
            "no_NO": "Om OS.js",
            "pl_PL": "o OS.js",
            "de_DE": "Über OS.js",
            "ru_RU": "Об OS.js",
            "nl_NL": "Over OS.js",
            "vi_VN": "Thông tin về OS.js"
        },
        "descriptions": {
            "no_NO": "Om OS.js",
            "pl_PL": "o OS.js",
            "de_DE": "Über OS.js",
            "ru_RU": "Об OS.js",
            "nl_NL": "Over OS.js",
            "vi_VN": "Thông tin về OS.js"
        },
        "singular": true,
        "mime": null,
        "category": "system",
        "icon": "apps/help-browser.png",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/About/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/About/combined.css"
            }
        ],
        "type": "application",
        "path": "default/About",
        "build": {},
        "scope": "system"
    },
    "ApplicationCalculator": {
        "className": "ApplicationCalculator",
        "name": "Calculator",
        "names": {
            "no_NO": "Kalkulator",
            "ru_RU": "Калькулятор",
            "pl_PL": "Kalkulator",
            "nl_NL": "Rekenmachine",
            "vi_VN": "Máy tính"
        },
        "mime": null,
        "icon": "apps/calc.png",
        "category": "office",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/Calculator/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/Calculator/combined.css"
            }
        ],
        "type": "application",
        "path": "default/Calculator",
        "build": {},
        "description": "Calculator",
        "scope": "system"
    },
    "CoreWM": {
        "className": "CoreWM",
        "name": "OS.js Window Manager",
        "names": {
            "no_NO": "OS.js Vinduhåndterer",
            "pl_PL": "Manager Okien OS.js",
            "de_DE": "OS.js Fenster-Manager",
            "ru_RU": "OS.js Оконный менеджер",
            "nl_NL": "OS.js venster beheer",
            "vi_VN": "Quản lí cửa sổ OS.js"
        },
        "singular": true,
        "type": "windowmanager",
        "mime": null,
        "icon": "apps/gnome-window-manager.png",
        "splash": false,
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/CoreWM/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/CoreWM/combined.css"
            }
        ],
        "path": "default/CoreWM",
        "build": {},
        "description": "OS.js Window Manager",
        "scope": "system"
    },
    "ApplicationDraw": {
        "className": "ApplicationDraw",
        "name": "Draw",
        "description": "Simple drawing application",
        "names": {
            "no_NO": "Tegne",
            "pl_PL": "Rysowanie",
            "de_DE": "Zeichnen",
            "ru_RU": "Графический редактор",
            "nl_NL": "Tekenen",
            "vi_VN": "Vẽ"
        },
        "descriptions": {
            "no_NO": "Simpelt tegne-program",
            "pl_PL": "Prosta aplikacja do rysowania",
            "de_DE": "Einfaches Zeichen-Programm",
            "ru_RU": "Простой графический редактор",
            "nl_NL": "Eenvoudig tekenprogramma",
            "vi_VN": "Phần mềm vẽ đơn giản"
        },
        "mime": [
            "^image"
        ],
        "category": "graphics",
        "icon": "categories/gnome-graphics.png",
        "compability": [
            "canvas"
        ],
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/Draw/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/Draw/combined.css"
            }
        ],
        "type": "application",
        "path": "default/Draw",
        "build": {},
        "scope": "system"
    },
    "ApplicationFileManager": {
        "className": "ApplicationFileManager",
        "name": "File Manager",
        "description": "The default file manager",
        "names": {
            "no_NO": "Fil-håndtering",
            "pl_PL": "Manager Plików",
            "de_DE": "Dateimanager",
            "ru_RU": "Файловый менеджер",
            "nl_NL": "bestands beheer",
            "vi_VN": "Quản lí file"
        },
        "descriptions": {
            "no_NO": "Standard Fil-håndtering program",
            "pl_PL": "Domyślny Manager Plików",
            "de_DE": "Standardmäßiger Dateimanager",
            "ru_RU": "Стандартный файловый менеджер",
            "nl_NL": "Standaard bestands beheerder",
            "vi_VN": "Trình quản lí file mặc định"
        },
        "mime": null,
        "category": "utilities",
        "icon": "apps/file-manager.png",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/FileManager/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/FileManager/combined.css"
            }
        ],
        "type": "application",
        "path": "default/FileManager",
        "build": {},
        "scope": "system"
    },
    "ApplicationFirefoxMarketplace": {
        "className": "ApplicationFirefoxMarketplace",
        "name": "Firefox Marketplace (Experimental)",
        "description": "Firefox Marketplace",
        "mime": null,
        "icon": "./icon.png",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/FirefoxMarketplace/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/FirefoxMarketplace/combined.css"
            }
        ],
        "type": "application",
        "path": "default/FirefoxMarketplace",
        "build": {},
        "scope": "system"
    },
    "ApplicationMusicPlayer": {
        "className": "ApplicationMusicPlayer",
        "name": "Music Player",
        "names": {
            "no_NO": "Musikkspiller",
            "pl_PL": "Odtwarzacz muzyki",
            "de_DE": "Musikspieler",
            "ru_RU": "Аудиоплеер",
            "nl_NL": "Audio speler",
            "vi_VN": "Nghe nhạc"
        },
        "mime": [
            "^audio",
            "osjs\\/playlist"
        ],
        "category": "multimedia",
        "icon": "status/audio-volume-high.png",
        "singular": true,
        "compability": [
            "audio"
        ],
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/MusicPlayer/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/MusicPlayer/combined.css"
            }
        ],
        "type": "application",
        "path": "default/MusicPlayer",
        "build": {},
        "description": "Music Player",
        "scope": "system"
    },
    "ApplicationPreview": {
        "className": "ApplicationPreview",
        "name": "Preview",
        "description": "Preview image files",
        "names": {
            "no_NO": "Forhåndsviser",
            "pl_PL": "Podgląd",
            "de_DE": "Vorschau",
            "ru_RU": "Просмотрщик",
            "nl_NL": "Foto viewer",
            "vi_VN": "Trình xem ảnh"
        },
        "descriptions": {
            "no_NO": "Forhåndsvisning av bilde-filer",
            "pl_PL": "Podgląd zdjęć",
            "de_DE": "Bildervorschau",
            "ru_RU": "Просмотрщик изображений",
            "nl_NL": "Foto viewer",
            "vi_VN": "Trình xem ảnh"
        },
        "mime": [
            "^image",
            "^video"
        ],
        "category": "multimedia",
        "icon": "mimetypes/image.png",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/Preview/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/Preview/combined.css"
            }
        ],
        "type": "application",
        "path": "default/Preview",
        "build": {},
        "scope": "system"
    },
    "ApplicationProcessViewer": {
        "className": "ApplicationProcessViewer",
        "name": "Process Viewer",
        "description": "View running processes",
        "names": {
            "no_NO": "Prosess oversikt",
            "pl_PL": "Procesy",
            "de_DE": "Prozess-Manager",
            "ru_RU": "Менеджер процессов",
            "nl_NL": "Proces manager",
            "vi_VN": "Xem tiến trình"
        },
        "descriptions": {
            "no_NO": "Se oversikt over kjørende prosesser",
            "pl_PL": "Zobacz działające procesy",
            "de_DE": "Laufende Prozesse verwalten",
            "ru_RU": "Менеджер запущенных процессов",
            "nl_NL": "Bekijk de lopende processen",
            "vi_VN": "Xem các tiến trình đang chạy"
        },
        "singular": true,
        "mime": null,
        "category": "system",
        "icon": "apps/gnome-monitor.png",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/ProcessViewer/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/ProcessViewer/combined.css"
            }
        ],
        "type": "application",
        "path": "default/ProcessViewer",
        "build": {},
        "scope": "system"
    },
    "ApplicationSettings": {
        "className": "ApplicationSettings",
        "name": "Settings",
        "names": {
            "no_NO": "Instillinger",
            "pl_PL": "Ustawienia",
            "de_DE": "Einstellungen",
            "ru_RU": "Настройки",
            "nl_NL": "Instellingen",
            "vi_VN": "Cài đặt"
        },
        "descriptions": {
            "no_NO": "Instillinger",
            "pl_PL": "Ustawienia",
            "de_DE": "Einstellungen",
            "ru_RU": "Настройки",
            "nl_NL": "Instellingen",
            "vi_VN": "Cài đặt"
        },
        "mime": null,
        "icon": "categories/applications-system.png",
        "category": "system",
        "singular": true,
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/Settings/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/Settings/combined.css"
            }
        ],
        "type": "application",
        "path": "default/Settings",
        "build": {},
        "description": "Settings",
        "scope": "system"
    },
    "ApplicationTextpad": {
        "className": "ApplicationTextpad",
        "name": "Textpad",
        "description": "Simple text editor",
        "names": {
            "no_NO": "Tekstblokk",
            "pl_PL": "Notatnik",
            "de_DE": "Texteditor",
            "ru_RU": "Редактор текста",
            "nl_NL": "Notities",
            "vi_VN": "Trình sửa văn bản"
        },
        "descriptions": {
            "no_NO": "Simpel tekst redigering",
            "pl_PL": "Prosty edytor tekstu",
            "de_DE": "Einfacher Texteditor",
            "ru_RU": "Простой текстовый редактор",
            "nl_NL": "Eenvoudige Tekstverwerker",
            "vi_VN": "Trình sửa văn bản đơn giản"
        },
        "mime": [
            "^text",
            "inode\\/x\\-empty",
            "application\\/x\\-empty",
            "application\\/x\\-python",
            "application\\/javascript",
            "application\\/json"
        ],
        "category": "utilities",
        "icon": "apps/accessories-text-editor.png",
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/Textpad/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/Textpad/combined.css"
            }
        ],
        "type": "application",
        "path": "default/Textpad",
        "build": {},
        "scope": "system"
    },
    "ApplicationWriter": {
        "className": "ApplicationWriter",
        "name": "Writer",
        "description": "Write rich text documents",
        "names": {
            "no_NO": "Writer",
            "pl_PL": "Writer",
            "de_DE": "Writer",
            "ru_RU": "Текстовый процессор",
            "nl_NL": "Tekstverwerker",
            "vi_VN": "Viết"
        },
        "descriptions": {
            "no_NO": "Skriv riktekst dokumenter",
            "pl_PL": "Twórz dokumenty rich text",
            "de_DE": "Verfassen Sie Rich-Text-Dokumente",
            "ru_RU": "Текстовый процессор",
            "nl_NL": "Tekst verwerker met opmaak",
            "vi_VN": "Xem, chỉnh sửa văn bản"
        },
        "mime": [
            "^text",
            "osjs\\/document"
        ],
        "category": "office",
        "icon": "apps/libreoffice34-writer.png",
        "compability": [
            "richtext"
        ],
        "preload": [
            {
                "type": "javascript",
                "src": "/packages/default/Writer/combined.js"
            },
            {
                "type": "stylesheet",
                "src": "/packages/default/Writer/combined.css"
            }
        ],
        "type": "application",
        "path": "default/Writer",
        "build": {},
        "scope": "system"
    }
}```
andersevenrud commented 8 years ago

So that means the packages and manifest is actually loaded. Hmm.

Were there any errors in the console ? Or the "Network" tab ?

I just did a fresh installation and I cannot replicate it. What browser re you using ?

Try running the developer server: ./bin/start-node-dev.sh (allthough it should not make any difference... but hey, worth trying. That will narrow it down)

ta3pks commented 8 years ago

screenshot from 2015-10-15 18 58 31 screenshot from 2015-10-15 18 58 24

ta3pks commented 8 years ago

i am running on google chrome latest stable

ta3pks commented 8 years ago

same for development server

andersevenrud commented 8 years ago

The 404s you get there are totally normal.

I also run latest Chrome stable. I even tested this on OSX and Windows (IE included) now... and I cannot replicate... which is strange -- and worries me a bit.

In src/packages/default/CoreWM/menu.js -- Line 228:

Set a breakpoint (if you know how to use the debugger) or simply add this after this line:

var list = doBuildCategoryMenu(ev); // <- 228
console.warn('MENU RESULT', list);

Then reload page (use the developer server so you don't have to rebuild anything) and click the menu.

ta3pks commented 8 years ago

screenshot from 2015-10-15 19 07 33 screenshot from 2015-10-15 19 07 21

andersevenrud commented 8 years ago

Inspect the list and see what you get. If you set a breakpoint on the next line (or just step one instruction forward), you should get something like:

Screenshot

ta3pks commented 8 years ago

it returns an empty object

ta3pks commented 8 years ago

screenshot from 2015-10-15 19 14 33

andersevenrud commented 8 years ago

I see. Try to put this in the console: OSjs.Core.getPackageManager().getPackages();

ta3pks commented 8 years ago

screenshot from 2015-10-15 19 19 14 empty object

andersevenrud commented 8 years ago

Aha. So we have narrowed it down to that spesific method (src/client/javascript/package-manager.js).

Just for fun, try running: OSjs.Core.getPackageManager().getPackages(true);. This should return the metadata we saw earlier.

ta3pks commented 8 years ago

screenshot from 2015-10-15 19 26 34 still empty :)

andersevenrud commented 8 years ago

Wow... This is strange.

Search for PackageManager::_addPackages() in the browser console output. This line should display what pacakages it was trying to add (almost in the beginning of output. This only works with dev server since it includes console messages)

Screenshot

ta3pks commented 8 years ago

which output we are talking about ? output of OSjs.Core.getPackageManager().getPackages(true) is empty

andersevenrud commented 8 years ago

By "output" I mean the javascript console.

Reload OS.js in the browser, then open the console, CTRL+F to search the console messages.

Search for PackageManager::_addPackages()

ta3pks commented 8 years ago

screenshot from 2015-10-15 19 41 03also empty

andersevenrud commented 8 years ago

That's not the correct line. Here is a bigger screenshot with annotation to illustrate:

Big Screenshot

ta3pks commented 8 years ago

screenshot from 2015-10-15 19 47 28

andersevenrud commented 8 years ago

So, it actually loads the manifest and the package manager recieves them just fine. So the problem must be this function.... which don't makes sense to me. This has always worked!

On line 298 in src/client/javascript/package-manager.js, insert this:


 295       newIter.scope = scope || 'system';
 296       newIter.type  = newIter.type || 'application';
 297
 298       console.warn('ADDING PACKAGE', i, newIter); // <- add this
 299
 300       self.packages[i] = newIter;
andersevenrud commented 8 years ago

I have to leave for ~1hr. Will come back to you as soon as I get back!

ta3pks commented 8 years ago

okay im here i hope well fix this i ses here do build categody menu returns a function which must return the list i guess but doesnt

andersevenrud commented 8 years ago

Did you get any logs in the console after adding that ?

ta3pks commented 8 years ago

nope aactually i didnt have so much time to dig inside code so much is there a documantation for developers ?

andersevenrud commented 8 years ago

You didn't? Then that function is broken somehow!

Client API: http://os.js.org/doc/client/ Server API: http://os.js.org/doc/server/

Some manuals: http://os.js.org/doc/manuals/ Some tutorials: http://os.js.org/doc/tutorials/

If you feel like something is missing... let me know and I'll try my best to make some new documents. I-ve not had much time to write stuff like this... so it's a bit lacking at the moment

andersevenrud commented 8 years ago

nope aactually i didnt have so much time to dig inside code so much

Or did you mean that you did not do what I commented on ? Having a rough time reading some of your sentences since they lack punctuation -- and English is not my mother language :)

ta3pks commented 8 years ago

i am not native in english either :) i added you on facebook

andersevenrud commented 8 years ago

My personal Facebook profile is private, so you most likely added my Facebook Developer Account, which I don't use :)

ta3pks commented 8 years ago

:D well i have vkontakte as well if you have

andersevenrud commented 8 years ago

Not much into social media, but if you send me a mail or something with your FB profile I can add you :)

ta3pks commented 8 years ago

nikos.efthias@gmail.com is my mail address you can search in fb by this

andersevenrud commented 8 years ago

I'm closing this for now. No more reports of this has come in, and I have deployed OS.js on countless systems without getting it myself -- so I am going to assume this was a cahcing issue (as we discussed).

Thanks for your effort in resolving this though :)