blob: 860354dbdf1e83e34d44c57f7f4208f27195586c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <private/qmllsmain_p.h>
#include <QtCore/qcoreapplication.h>
// To debug:
//
// * simple logging can be redirected to a file
// passing -l <file> to the qmlls command
//
// * more complex debugging can use named pipes:
//
// mkfifo qmllsIn
// mkfifo qmllsOut
//
// this together with a qmllsEcho script that can be defined as
//
// #!/bin/sh
// cat -u < ~/qmllsOut &
// cat -u > ~/qmllsIn
//
// allows to use qmllsEcho as lsp server, and still easily start
// it in a terminal
//
// qmlls < ~/qmllsIn > ~/qmllsOut
//
// * statup can be slowed down to have the time to attach via the
// -w <nSeconds> flag.
using namespace Qt::StringLiterals;
int main(int argv, char *argc[])
{
QCoreApplication::setApplicationVersion(QLatin1String(QT_VERSION_STR));
QCoreApplication::setApplicationName("qmlls"_L1);
return QmlLsp::qmllsMain(argv, argc);
}
|