Re: [Qt-creator] make stalling on OSX

2018-04-16 Thread Jason H

Not sure if it is related but the android application log is very slow in creator. Adb reports output several seconds before creator, while the application starts, but it catches up eventually. 

 

 

Sent: Monday, April 16, 2018 at 2:13 PM
From: "Jason H" 
To: Andy 
Cc: "qt-creatorqt-project.org" 
Subject: Re: [Qt-creator] make stalling on OSX



QtC wouldn't quit, so took a look and had to kill:

 

/Users/xxx/Qt/Qt Creator.app/Contents/Resources/clangbackend /var/folders/tb/q2wf7dpj1pv1q9t5tc48m9zhgn/T/QtCreator-SyxeiD/ClangBackEnd-99054

 

Sent: Monday, April 16, 2018 at 10:54 AM
From: Andy 
To: "Jason H" 
Cc: "qt-creatorqt-project.org" 
Subject: Re: [Qt-creator] make stalling on OSX



I have this issue too (macOS 10.12.6 w/Qt Creator 4.6).
 
Usually if I just switch the editor using Option-tab it continues ok.

I also get these (or something like them) when doing "Follow symbol under cursor" and "Rename symbol" sometimes.

 







---
Andy Maloney  //  https://asmaloney.com

twitter ~ @asmaloney








 

On Mon, Apr 16, 2018 at 10:34 AM, Jason H  wrote:

I've got a pretty chronic problem of the latest creator stalling on OSX.
I'll hit the play button, it'll say:
10:30:17: Running steps for project winston...
10:30:17: Configuration unchanged, skipping qmake step.
10:30:17: Starting: "/usr/bin/make"

Then nothing. When I cancel the build using the red square, then it dumps a bunch of compiler output.

It goes through periods where 50% of make invocations are stalled.
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator






___ Qt-creator mailing list Qt-creator@qt-project.org http://lists.qt-project.org/mailman/listinfo/qt-creator



___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] make stalling on OSX

2018-04-16 Thread Jason H
QtC wouldn't quit, so took a look and had to kill:

 

/Users/xxx/Qt/Qt Creator.app/Contents/Resources/clangbackend /var/folders/tb/q2wf7dpj1pv1q9t5tc48m9zhgn/T/QtCreator-SyxeiD/ClangBackEnd-99054

 

Sent: Monday, April 16, 2018 at 10:54 AM
From: Andy 
To: "Jason H" 
Cc: "qt-creatorqt-project.org" 
Subject: Re: [Qt-creator] make stalling on OSX



I have this issue too (macOS 10.12.6 w/Qt Creator 4.6).
 
Usually if I just switch the editor using Option-tab it continues ok.

I also get these (or something like them) when doing "Follow symbol under cursor" and "Rename symbol" sometimes.

 







---
Andy Maloney  //  https://asmaloney.com

twitter ~ @asmaloney








 

On Mon, Apr 16, 2018 at 10:34 AM, Jason H  wrote:

I've got a pretty chronic problem of the latest creator stalling on OSX.
I'll hit the play button, it'll say:
10:30:17: Running steps for project winston...
10:30:17: Configuration unchanged, skipping qmake step.
10:30:17: Starting: "/usr/bin/make"

Then nothing. When I cancel the build using the red square, then it dumps a bunch of compiler output.

It goes through periods where 50% of make invocations are stalled.
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator





___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] make stalling on OSX

2018-04-16 Thread Andy
I have this issue too (macOS 10.12.6 w/Qt Creator 4.6).

Usually if I just switch the editor using Option-tab it continues ok.

I also get these (or something like them) when doing "Follow symbol under
cursor" and "Rename symbol" sometimes.

---
Andy Maloney  //  https://asmaloney.com
twitter ~ @asmaloney 


On Mon, Apr 16, 2018 at 10:34 AM, Jason H  wrote:

> I've got a pretty chronic problem of the latest creator stalling on OSX.
> I'll hit the play button, it'll say:
> 10:30:17: Running steps for project winston...
> 10:30:17: Configuration unchanged, skipping qmake step.
> 10:30:17: Starting: "/usr/bin/make"
>
> Then nothing. When I cancel the build using the red square, then it dumps
> a bunch of compiler output.
>
> It goes through periods where 50% of make invocations are stalled.
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] make stalling on OSX

2018-04-16 Thread Jason H
I've got a pretty chronic problem of the latest creator stalling on OSX.
I'll hit the play button, it'll say:
10:30:17: Running steps for project winston...
10:30:17: Configuration unchanged, skipping qmake step.
10:30:17: Starting: "/usr/bin/make"

Then nothing. When I cancel the build using the red square, then it dumps a 
bunch of compiler output.

It goes through periods where 50% of make invocations are stalled.
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] Odd QtCreator hang

2018-04-16 Thread Murphy, Sean
I've got an odd hang with QtCreator when debugging my software.

I've got the following function where I'm trying to copy the data out of a 
QTableView to the clipboard in a format that will allow the resulting data to 
be pasted directly into an Excel spreadsheet. Here's the function:
void plotContainerWidget::slotCopyTableToClipboard()
{
// select everything in table copy it to text string with
// '\t' separating columns and '\n' separating rows
if(mModel == 0)
{
return;
}

int rows = mModel->rowCount();
int cols = mModel->columnCount();

QString tableString;
for(int i=0; i < cols; ++i)
{
tableString += mModel->headerData(i, Qt::Horizontal).toString();
tableString += "\t";
}
tableString.chop(1); // remove extraneous tab
tableString += "\n";

for(int i=0; i < rows; ++i)
{
for(int j=0; j < cols; ++j)
{
tableString += mModel->data(mModel->index(i, j), 
Qt::DisplayRole).toString();
tableString += "\t";
}
tableString.chop(1); // remove extraneous tab
tableString += "\n";
}
tableString.chop(1); // remove extraneous newline
qDebug() << tableString;
QClipboard* clippy = QApplication::clipboard();
if (!clippy)
{
return;
}
clippy->setText(tableString); // *** QT CREATOR HANGS HERE ***
qDebug() << "copied table to clipboard";
}

When I execute this chunk of code within the debugger, it hangs at that 
QClipboard::setText() line. I first encountered it executing my code within the 
debugger, but without any breakpoints set. During that session, Qt Creator 
hung, and I had to force quit. After re-launching QtCreator, I set a breakpoint 
in this function and stepped through my code. The parsing is fine up until that 
line, the string looks good, but then Qt Creator hangs when that line setText() 
is executed. So this issue seems to happen whether I have any breakpoints set 
or not and interestingly this code does NOT hang when I choose "Run" from 
within Qt Creator, only when I choose "Start Debugging", even though that 
should still be executing the debug build of my application, just not running 
inside the debugger.

Qt version 5.3.2 (yes, I know this is ancient...)
Qt Creator 4.5.2 (at least this isn't!)
Windows 7 64-bit

Any ideas?
Sean


This message has been scanned for malware by Forcepoint. www.forcepoint.com
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Generating .qmltypes files

2018-04-16 Thread Narolewski Jakub
As they usually say, if it isn't DNS it's probably encoding :p

I work under Windows and to generate .qmltypes I have used powershell and
operator '>' to redirect output to file.

When I opened the file in notepad++ I saw that it has 'UCS-2 LE BOM' as its
encoding.

When I manually resaved it as UTF-8 Creator stopped giving me errors and
syntax highlighting started to work :]

Thank you for your help,
Jakub Narolewski

On Mon, 16 Apr 2018, 14:21 Thomas Hartmann,  wrote:

> Hi,
>
>
> try qmlplugindump -nonrelocatable  IzLibrary 1.0
> ./IzLibrary/izlibrary.qmltypes.
>
> The -nonrelocatable is at least required for the qmltypes to properly
> work.
>
>
> But the parsing error you get seems weird since the file should be
> syntactically correct in any case.
>
>
> Kind Regards,
>
> Thomas Hartmann
> --
> *From:* Qt-creator  qt...@qt-project.org> on behalf of Jakub Narolewski 
> *Sent:* Monday, April 16, 2018 2:14:24 PM
> *To:* qt-creator@qt-project.org
> *Subject:* [Qt-creator] Generating .qmltypes files
>
> Hello,
>
> I recently wanted to generate .qmltypes files for my QML plugins to get
> syntax suggestions for them but got stuck on Creator's error.
> I have a plugin named IzLibrary. It resides in its import folder -
> "IzLibrary". In it I have:
>
> 1. qmldir file
> 2. IzLibraryPlugin.dll file
> 3. [hopefully] properly generated izlibrary.qmltypes file
>
> Contents of the qmldir are:
> // file start
> module IzLibrary
> plugin IzLibraryPlugin
> typeinfo izlibrary.qmltypes
> classname IzQMLComponents
> IzToast 1.0 qrc:///src/JS/IzToast.js
> IzMark 1.0 qrc:///src/JS/IzMark.js
> IzBusy 1.0 qrc:///src/JS/IzBusy.js
> // file end
>
> To generate izlibrary.qmltypes file I used:
> qmlplugindump IzLibrary 1.0 ./ > ./IzLibrary/izlibrary.qmltypes
>
> // file start
> This command generates, what I think is, a proper .qmltypes file:
> import QtQuick.tooling 1.2
>
> // This file describes the plugin-supplied types contained in the library.
> // It is used for QML tooling purposes only.
> //
> // This file was auto-generated by:
> // 'qmlplugindump IzLibrary 1.0 ./'
>
> Module {
> dependencies: []
> Component {
> name: "QDoubleValidator"
> prototype: "QValidator"
> exports: ["IzDoubleValidator 1.0"]
> exportMetaObjectRevisions: [0]
>
> [~here be 4000 more lines of similar stuff~]
>
> }
> }
> // file end
>
> But under QtCreator 4.6, in General Messages tab, I get:
> Warnings while parsing QML type information of
> C:/Users/jakubn/Documents/projekty/qt-projects/deploy/plugins/release/5.9.4/msvc/x86/IzLibrary:
> Failed to parse
> "C:/Users/jakubn/Documents/projekty/qt-projects/deploy/plugins/release/5.9.4/msvc/x86/IzLibrary/izlibrary.qmltypes".
> Error: 1:1: Expected token "numeric literal".
> QML module does not contain information about components contained in
> plugins.
>
> Is there something I did wrong? I have a feeling I missed something really
> trivial.
>
> Jakub Narolewski
>
>
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Generating .qmltypes files

2018-04-16 Thread Thomas Hartmann
Hi,


try qmlplugindump -nonrelocatable  IzLibrary 1.0 ./IzLibrary/izlibrary.qmltypes.

The -nonrelocatable is at least required for the qmltypes to properly work.


But the parsing error you get seems weird since the file should be 
syntactically correct in any case.


Kind Regards,

Thomas Hartmann


From: Qt-creator  on 
behalf of Jakub Narolewski 
Sent: Monday, April 16, 2018 2:14:24 PM
To: qt-creator@qt-project.org
Subject: [Qt-creator] Generating .qmltypes files

Hello,

I recently wanted to generate .qmltypes files for my QML plugins to get syntax 
suggestions for them but got stuck on Creator's error.
I have a plugin named IzLibrary. It resides in its import folder - "IzLibrary". 
In it I have:

1. qmldir file
2. IzLibraryPlugin.dll file
3. [hopefully] properly generated izlibrary.qmltypes file

Contents of the qmldir are:
// file start
module IzLibrary
plugin IzLibraryPlugin
typeinfo izlibrary.qmltypes
classname IzQMLComponents
IzToast 1.0 qrc:///src/JS/IzToast.js
IzMark 1.0 qrc:///src/JS/IzMark.js
IzBusy 1.0 qrc:///src/JS/IzBusy.js
// file end

To generate izlibrary.qmltypes file I used:
qmlplugindump IzLibrary 1.0 ./ > ./IzLibrary/izlibrary.qmltypes

// file start
This command generates, what I think is, a proper .qmltypes file:
import QtQuick.tooling 1.2

// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
//
// This file was auto-generated by:
// 'qmlplugindump IzLibrary 1.0 ./'

Module {
dependencies: []
Component {
name: "QDoubleValidator"
prototype: "QValidator"
exports: ["IzDoubleValidator 1.0"]
exportMetaObjectRevisions: [0]

[~here be 4000 more lines of similar stuff~]

}
}
// file end

But under QtCreator 4.6, in General Messages tab, I get:
Warnings while parsing QML type information of 
C:/Users/jakubn/Documents/projekty/qt-projects/deploy/plugins/release/5.9.4/msvc/x86/IzLibrary:
Failed to parse 
"C:/Users/jakubn/Documents/projekty/qt-projects/deploy/plugins/release/5.9.4/msvc/x86/IzLibrary/izlibrary.qmltypes".
Error: 1:1: Expected token "numeric literal".
QML module does not contain information about components contained in plugins.

Is there something I did wrong? I have a feeling I missed something really 
trivial.

Jakub Narolewski

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] Generating .qmltypes files

2018-04-16 Thread Jakub Narolewski
Hello,

I recently wanted to generate .qmltypes files for my QML plugins to get syntax 
suggestions for them but got stuck on Creator's error.
I have a plugin named IzLibrary. It resides in its import folder - "IzLibrary". 
In it I have:

1. qmldir file
2. IzLibraryPlugin.dll file
3. [hopefully] properly generated izlibrary.qmltypes file

Contents of the qmldir are:
// file start
module IzLibrary
plugin IzLibraryPlugin
typeinfo izlibrary.qmltypes
classname IzQMLComponents
IzToast 1.0 qrc:///src/JS/IzToast.js
IzMark 1.0 qrc:///src/JS/IzMark.js
IzBusy 1.0 qrc:///src/JS/IzBusy.js
// file end

To generate izlibrary.qmltypes file I used:
qmlplugindump IzLibrary 1.0 ./ > ./IzLibrary/izlibrary.qmltypes

// file start
This command generates, what I think is, a proper .qmltypes file:
import QtQuick.tooling 1.2

// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.
//
// This file was auto-generated by:
// 'qmlplugindump IzLibrary 1.0 ./'

Module {
dependencies: []
Component {
name: "QDoubleValidator"
prototype: "QValidator"
exports: ["IzDoubleValidator 1.0"]
exportMetaObjectRevisions: [0]

[~here be 4000 more lines of similar stuff~]

}
}
// file end

But under QtCreator 4.6, in General Messages tab, I get:
Warnings while parsing QML type information of 
C:/Users/jakubn/Documents/projekty/qt-projects/deploy/plugins/release/5.9.4/msvc/x86/IzLibrary:
Failed to parse 
"C:/Users/jakubn/Documents/projekty/qt-projects/deploy/plugins/release/5.9.4/msvc/x86/IzLibrary/izlibrary.qmltypes".
Error: 1:1: Expected token "numeric literal".
QML module does not contain information about components contained in plugins.

Is there something I did wrong? I have a feeling I missed something really 
trivial.

Jakub Narolewski

___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Language server for Qt Creator IDE

2018-04-16 Thread David Schulz

Hi Erik,


I'm currently working on a language client implementation for Qt Creator 
and just created https://bugreports.qt.io/browse/QTCREATORBUG-20284 to 
track ideas and suggestions from the community. So if you want to 
participate in the development feel free to add information to the 
report and drop patches to gerrit :)


Greetings
David

On 15-Apr-18 07:22, Erik Luo wrote:

Hi all,

          I am pretty interested in the language server for Qt Creator 
IDE. I have learned the functionality on other related IDEs. I hope I 
can add this functionality perfectly into Qt Creator. Is there a more 
detailed introduction about how should this language server behave in 
Qt Creator? So I can implement the language server right away and test 
it as soon as possible. I am willing to contribute on this part for my 
favorite IDE! Thank you!


Cheers,
Erik


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator