Re: [Qt-creator] Need help building my plugin in GitHub

2024-04-04 Thread Carel Combrink
Just a follow up.

The issue now is my plugin includes
> qt-creator\src\plugins\texteditor\syntaxhighlighter.h
> 
> which includes #include 
> 
> but this header is not contained in the '_dev' package/archive.(PS: I only
> see 'state' and not 'Definitions')
>

The files are still in the github project:
https://github.com/qt-creator/qt-creator/tree/v13.0.0/src/libs/3rdparty/syntax-highlighting/autogenerated/include/KSyntaxHighlighting

Not sure why they are not packaged in the _dev package
-- 
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


[Qt-creator] Need help building my plugin in GitHub

2024-04-04 Thread Carel Combrink
Hi,

I am trying to make a new release for my SpellChecker Plugin
 for the new Qt Creator
13 release.

In the past my github action would download the Qt Creator and the _dev
packages from the Qt Mirrors (example for Windows: Index of
/official_releases/qtcreator/13.0/13.0.0/installer_source/windows_x64

)

Doing this allows me to skip manually rebuilding Qt Creator, I can just
build my plugin.

The issue now is my plugin includes
qt-creator\src\plugins\texteditor\syntaxhighlighter.h

which includes #include 

but this header is not contained in the '_dev' package/archive.(PS: I only
see 'state' and not 'Definitions')

What is the best way to proceed to build my plugin?

Regards
Carel
-- 
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] Closing pinned files

2022-11-10 Thread Carel Combrink
On Mon, 31 Oct 2022 at 09:51, Eike Ziller via Qt-creator <
qt-creator@qt-project.org> wrote:

>
> > The idea is to avoid accidentally closing the pinned file via shortcuts.
> So not necessarily about forbidding closing it, but ensuring that it
> doesn't leave the open documents list.
>
>
I also recently started using the "pin file" feature and was surprised that
after spamming CTRL + W the pinned files were closed.
I have no suggestions yet on what I expect to happen, but that they got
closed was unexpected.

Thinking about it a bit it might make sense to close all editors and keep
the pinned ones in the open documents list.
It sounds counterproductive since then they are not opened anymore, thus
they don't fit in the list (new list or renamed panel?)

What I don't want is to get 'stuck' on a pinned file when I try to close
everything but the pinned ones with the shortcut.
And then again, perhaps a shortcut to "close all except the pinned ones" is
the correct way to handle this and then get stuck on a pinned one with a
warning or indication as other people mentioned in this discussion.

Regards,
Carel
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] Plans to support WSL development

2022-01-16 Thread Carel Combrink
Hi,

Thank you for the inputs.


> >> Hi, since WSL has problems running any Qt program:
> >> https://github.com/microsoft/WSL/issues/3023 also see
> >> https://forum.qt.io/topic/132610/qtcreator-6-0-can-t-start/53
> >> I think prio #1 should be getting libQt6Core.so.6 working in WSL.
>

I am not familiar with the issue nor the problems.

In my use case I don't develop Qt applications, I am asking from the IDE's
perspective. I use Qt Creator as my IDE for all of my C++ development and
the current work/projects are bare C++ console applications.

Developing using VSCode works without any issue, I would just like to move
back to Qt Creator even for this use case.

Regards,
Carel
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


[Qt-creator] Plans to support WSL development

2022-01-15 Thread Carel Combrink
Dear Qt Creator developers,

Are there any plans (short, medium or long term) to add/improve support for
developing Linux apps in WSL?

I am thinking about something in line with what VSCode offers, where Qt
Creator runs on the Windows side but works with the compilers and files in
the Unix subsystem?

I am currently using VSCode for this setup but would love to be able to use
Qt Creator instead.

Regards,
Carel
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] Updating requirements for building Qt Creator 7+ (master branch)

2022-01-15 Thread Carel Combrink
Dear Eike,

Thank you for the update


> # Removing qmake as a build system for building Qt Creator itself
>

Does this also include building Plugins?
Are there perhaps any guide or tips for plugin creators/mainters on how to
port their existing plugins from qmake to CMake?

Kind regards,
Carel
Author of the Qt Creator SpellChecker-Plugin


PS: Resent to include the mailing list, sorry about that
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] Qt Creator is cool. :-)

2021-05-10 Thread Carel Combrink
I want to take this opportunity to second this.

A year ago I changed jobs and had to work with 'one of the best Integrated
Development Environments' out there due to vendor locked in project files,
build systems and environments.
And I have to say, after a year I am fully convinced that Qt Creator is
worlds better when compared.

In a year using said IDE I never thought: 'Nice, QtC needs this' or 'QtC
can't do this'. Often I felt 'Wow if QtC can do this why can't I do it
here'.
My last rant on said IDE is that 3 keystrokes are not a shortcut, it is a
sentence

Qt Creator is easy to work with and simplistic enough to not be in your way
but complex enough to make you go faster and do what you need to do,
develop code.

I am very fortunate to move on to a new job next month where I will be able
to work in Qt Creator once again.

Well done to the Qt Creator developers and contributors.

On Thu, 6 May 2021 at 20:35, Andrzej Telszewski 
wrote:

> Hi,
>
> I just wanted to express my appreciation for your work on Qt Creator.
> Today, since quite some time, I had to debug an application.
> Working with the debugger was a very pleasant experience.
>
> I mainly write C, sometimes C++, very rarely something Qt.
> I'm making progress in switching completely to QtC.
> This is an interesting journey, because I'm an embedded (no pun intended
> ;-)) guy.
>
> I used to use IAR and Keil IDEs, but in my opinion QtC is far superior.
> I'm extremely happy to see support for microcontrollers popping up in QtC.
>
> I know that C hadn't always been the first class citizen in QtC, but it
> has greatly improved over the time.
> Please keep it going like that, making QtC great not only for C++, but
> for C as well.
>
> Thanks for your effort! :-)
>
> --
> Best regards,
> Andrzej Telszewski
> ___
> Qt-creator mailing list
> Qt-creator@qt-project.org
> https://lists.qt-project.org/listinfo/qt-creator
>
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


[Qt-creator] Qt Creator SpellChecker Plugin: Quick Survey

2021-02-09 Thread Carel Combrink
Hi,

I have created a quick 10 question survey about my SpellChecker Plugin for
the Qt Creator IDE.
Please take a minute or two and complete the survey at the following (even
for those who are not using the plugin) link:
https://www.surveymonkey.com/r/7DRQ85N

For those who are not aware:
The SpellChecker Plugin is a free and open source plugin, hosted on
GitHub @ https://github.com/CJCombrink/SpellChecker-Plugin

Since not too long ago I have started publishing releases for Windows,
Linux and MacOS.

Any responses will be appreciated.
Also please feel free to add suggestions on the GitHub page.

Regards,
Carel
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] Request advices for Qt Creator plugin developers to adopt API changes easily

2019-08-06 Thread Carel Combrink
Hi,


It would start with putting the plugin code at codereview.qt-project.org,
> with target branch 'master'.
>

I also have this issue as the developer of the SpellChecker-Plugin[1] for
Qt Creator.
My question is, how does one handle the case where the plugin depends on an
external lib, in my case hunspell ?
(Or is this a question for another discussion?)

 [1] https://github.com/CJCombrink/SpellChecker-Plugin
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] [Announce] Qt Creator 4.9 RC released

2019-03-27 Thread Carel Combrink
Hi,

I have reported the following issue that I have with Qt Creator 4.9 RC 1 on
Windows. I can not confirm at the moment if the issue also exists on other
platforms.
https://bugreports.qt.io/browse/QTCREATORBUG-22211

Can it please be looked at, I can not upgrade if QtC 4.9 lands if it is not
solved.
I do not have the same issue with QtC 4.8

Regards,
Carel Combrink

On Wed, Mar 27, 2019 at 1:59 PM List for announcements regarding Qt
releases and development  wrote:

> We are happy to announce the release of Qt Creator 4.9 RC!
>
> https://blog.qt.io/blog/2019/03/27/qt-creator-4-9-rc-released/
>
> --
> Eike Ziller
> Principal Software Engineer
>
> The Qt Company GmbH
> Rudower Chaussee 13
> D-12489 Berlin
> eike.zil...@qt.io
> http://qt.io
> Geschäftsführer: Mika Pälsi,
> Juha Varelius, Mika Harjuaho
> Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht
> Charlottenburg, HRB 144331 B
>
> ___
> Announce mailing list
> annou...@qt-project.org
> https://lists.qt-project.org/listinfo/announce
>
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] Qt creator + Clang model = major annoyance

2019-01-05 Thread Carel Combrink
Unfortunately I have to agree, in my view the move to CCM was a step
backwards for Qt Creator. I do understand the reasoning but few things
should have been prioritized before the move was made.

I have the following major annoyances:
1. Can't open context help for a Qt function/class if the line does not
compile (syntax issues).
- For example, you know the function name but not all the arguments for
the function, F1 does nothing to help in this case.
- See QTCREATORBUG-21686
, QTCREATORBUG-11332
, QTCREATORBUG-8428
, QTCREATORBUG-15959
 (Quick search in the
bugtracker, there are more, not all might be relevant to the CCM).
2. Can't follow symbols for Qt classes and functions if the line does not
compile.
   - If the above (F1) works this will probably not be needed, but how else
do you look up a function that you need help with...
Yes the Help mode or google must be used to overcome the above, but it
breaks the workflow and it worked before CCM.

At one point Qt Creator was the IDE I recommended to everyone to use due to
the speed, completion and help context, but at this point in time I am
actually considering evaluating other IDEs to see if they can not "help" me
code better.
I use Qt Creator in my day-to-day life at work and home, I was even so
committed to it that I created the SpellChecker-Plugin[1] for the IDE about
5 years ago and still maintain it. At this point I am rather frustrated.

PS:

> Also, sometimes the only way to fix CCM to highlight/react to inputs like
> F2 is to restart qt creator.
>
What also works (on Windows at least) is to kill the clangbackend.exe
process from the task manager, Qt Creator will detect this and restart it,
then you do not need to restart Qt Creator at least.

I really hope this specific issue can get priority and get resolved.
Regards,

[1] https://github.com/CJCombrink/SpellChecker-Plugin
___
Qt-creator mailing list
Qt-creator@qt-project.org
https://lists.qt-project.org/listinfo/qt-creator


Re: [Qt-creator] The great idea for Qt Creator

2018-09-04 Thread Carel Combrink
On Wed, Sep 5, 2018 at 7:16 AM Tomasz Siekierda  wrote:
>
> On Tue, 4 Sep 2018 at 20:52, Szyk Cech  wrote:
> >
> > Hi
> >
> > I want introduce big improvement (at least in my humble opinion) to Qt
> > Creator.
> >
> > My idea is very simple and very strong logical/rational/sensible and Qt
> > projects oriented (but not limited to Qt projects).
> >
> > I don't pretend to be renter of this idea, but if you use/follow this
> > idea, then I suppose you mention this concept as "Szyk Cech's project
> > menu style".
> >
> > So lets sum up typical Qt project:
> >
> > * plenty cpp, h, ui and qml files - typically related to each others and
> > names only differ with extensions (eg. MainWindow.h, MainWindow.cpp,
> > MainWindow.ui)
> >
> > * few cpp and h files typically differs only with extensions (Factory.h,
> > Factory.cpp)
> >
> > * main.cpp
> >
> > Now we have big Qt project tree which is pretty unusable for bigger
> > projects (like Qt Creator). But we can improve this greatly!
> >
> > We can use full advantage of QTreeView widget and display all 3 (or 4)
> > Qt files in 1 row!!!
> >
> > I recognize following use cases:
> >
> > 1. We have Qt widget file (eg. MainWindow.h, MainWindow.cpp,
> > MainWindow.ui), so we display in first column only file name without
> > extension, and in next 3 columns h, cpp, ui . Then when we have direct
> > access for every files related to our ui file (h and cpp) - without
> > stupid clicking headers or sources (in order to unroll them) and without
> > annoying scrolling!!!
>
> I'd rather keep the project tree as thin as possible and leave more
> space for code editor views. So I'd rather suggest making base file
> name an expandable item with 3-4 children (concrete files .cpp, h.
> etc.).
>
> Also, there is a big problem here: Qt Creator would have to assume
> (or, even worse for performance - check) that someString.h and
> someString.cpp are related. What if they are not?
>
> And what if there are multiple files with the same name?
>
> And lastly, what if there are multiple implementations for a single
> header? (class.h, classWin.cpp, classMac.cpp etc.)
>
> By the way, in most cases scrolling is not necessary - just hit F4 to
> switch between header and source files. And if that fails, there is
> also the Locator which allows you to open relevant files quickly.
>
> > 2. if additionally to 1.  we have qml file with the same name as h, cpp,
> > ui - display it in 4. column
> >
> > 3. If we have only h and cpp (or c) file: display name in first column
> > and h and cpp in next 2.
> >
> > 4. If project does not contain Qml files or not contain Ui files, then
> > QTreeView should not display Qml or Ui columns accordingly (only h and cpp).
> >
> > 5. If project is pure c project then c extension should display in Cpp
> > column.
> >
> > 6. Any other files names are displayed traditionally in first column.
> >
> > You can see my mock interface in attached png file.
> >
> > I can't implement this great feature for many reasons:
> >
> > 1. I work and have limited free time, and:
> >
> > 2. I have other great ideas for my projects (which I consider more
> > important).
> >
> > 3. I have experience in writing mods for Qt Creator, but: Most important
> > problem is that I can't be sure my mod will be accepted by developers.
> > So I can spend few weeks writing this mod and polish this idea, and end
> > up with rejected opinions. I do not believe using this idea only for my
> > self, because I can't adjust my patches for every new Qt Creator
> > releases (it is very tedious and frustrating work to me - so I give up
> > with my Qt Creator mod and use official version only).
> >
> > best wishes
> >
> > Szyk Cech
> >
> >
> > ___
> > 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

I think this is a very good idea. One thing about Qt Creator is it is
a bit frustrating to work with the Project file tree, and combining
the ones with the same name could be a good improvement.

That said, I am not sure about the proposed solution/presentation
(yet) since I agree with what Tomas is saying.

I do normally use the locator, but sometimes one needs to work with
the tree then It gets annoying.

We use a lot of libraries and folders and for that the simplified view
is too simplified and the normal is too cluttered.
I would prefer if it keeps the folder structures but remove the
Headers, Sources, Forms, etc. and collapse that in an intuitive way.
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] The words "line" and "column" are black

2018-08-06 Thread Carel Combrink
I normally see this if the file that I open is read-only (on Windows).

I have commented on the issue as well.
On Mon, Aug 6, 2018 at 1:16 PM Christian Stenger
 wrote:
>
> https://bugreports.qt.io/browse/QTCREATORBUG-20916
>
> 
> From: Qt-creator  
> on behalf of Robert Löhning 
> Sent: Friday, August 3, 2018 4:23:06 PM
> To: qt-creator@qt-project.org
> Subject: Re: [Qt-creator] The words "line" and "column" are black
>
> Am 02.08.2018 um 10:35 schrieb André Pönitz:
> > On Thu, Aug 02, 2018 at 09:43:02PM +0300, Карелин Павел wrote:
> >> Hi,
> >
> > Hi Pavel.
> >
> >> I switched to QtC 4.7.  At the same time, I noticed that when I open file
> >> list.h at editor - the words "line" and "column" are black (see 
> >> attachment).
> >> This happens only with one file.
> >> Why is this happening?
> >
> > I am seeing that too, at times, and sometimes also in other places
> > of the gui. The current working hypothesis is some race in theme
> > setup, but so far the pain level was not big enough for me to try
> > to hunt it down in the maze of parallelized and/or delayed operations
> > that happen at startup time.
> >
> > Andre'
>
> Hello Gentlemen,
>
> might one of you please take the time to create a bugreport at
> https://bugreports.qt.io/
> so this issue is documented? Or did somebody do that already?
>
> Thanks,
> Robert
> ___
> 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] Qt Creator plugin distribution - best practices and future plans

2018-06-05 Thread Carel Combrink
Hi,

That is exactly the same error that I saw on Linux (and crash), on Windows
at least Qt Creator complained that it did not want to load the plugin (did
not crash)

Regards,

On Tue, Jun 5, 2018 at 3:32 PM, Davide Coppola  wrote:

> Thanks Eike and Carel for your replies.
>
> All you said makes sense, even if I have to confirm that when building my
> plugin for 4.6.0 I can't run it with 4.6.1 as it crashes the program with
> the following error:
>
> ./qtcreator: symbol lookup error: /home/m3xican/.local/share/
> data/QtProject/qtcreator/plugins/4.6.1/libSIGBUILD.so: undefined symbol: _
> ZN4Core12IOptionsPageC2EP7QObject
>
> Not a huge deal, but apparently the backward compatibility was broken in
> 4.6.1
>
> Cheers
>
> On Fri, 1 Jun 2018 at 07:59, Eike Ziller  wrote:
>
>>
>> > On May 31, 2018, at 15:47, Davide Coppola  wrote:
>> >
>> > Hi,
>> >
>> > I am about to release a plugin for Qt Creator and even if I have no
>> problem in releasing the source code, I would like to release binaries as
>> well for quick installing.
>> >
>> > I have the impression that this is not an easy task as I should release
>> a different binary per Qt Creator version and that wouldn't even cover all
>> the combinations of application/compiler.
>>
>> Platform/compiler combinations that we use for our Qt Project prebuilt
>> binaries are currently:
>>
>> MSVC2015 32&64 bit
>> Linux / GCC 5.3(?) 64 bit
>> macOS / Clang / 64 bit
>>
>> You also have to use a Qt version that is compatible with the Qt version
>> that the prebuilt binary uses. (4.6 == Qt 5.10, i.e. it should work if you
>> compile with Qt <= 5.10).
>>
>> You can find the detailed information on which compiler & Qt was used for
>> a Qt Creator binary in its Help > About Qt Creator dialog.
>>
>> > For example a friend tested my plugin with the Qt Creator package
>> provided by Arch Linux and it was crashing for him, likely because they
>> build Qt Creator with gcc 7 and I built the plugin with gcc 5.4.
>>
>> I doubt that you’ll be able to create a single prebuilt binary that works
>> on all Linux distributions. Already the locations and versions of standard
>> libraries can differ, as well as Qt versions etc etc.
>>
>> > Are they any best practices or "standard" ways to handle this?
>> >
>> > Is there any plan from the Qt Creator developers to relax the version
>> parity requirement?
>> > Ideally I would like to build a plugin for 4.6 and have it running with
>> all 4.6.x versions at least, instead of having to build it for 4.6.0,
>> 4.6.1, etc…
>>
>> We try to keep patch releases _backwards_ compatible to the .0 release,
>> and the version compatibility information reflects that (i.e. 4.6.1 states
>> that it is compatible with 4.6.0).
>> That means:
>> - If you build your plugin against 4.6.0, it will run in 4.6.1 and 4.6.2.
>> - If you build your plugin against 4.6.1, it will run in 4.6.2, but _not_
>> in 4.6.0.
>>
>> > I also noticed an abandoned Qt Creator plugin scripting project in the
>> Qt repos. Any chance something like that will be restarted? Maybe using the
>> new/upcoming improved Python integration?
>>
>> We talked about the potential of PySide for platform independent plugins
>> for Qt Creator recently, but we don’t have concrete plans for it yet.
>>
>> Br, Eike
>>
>> --
>> Eike Ziller
>> Principal Software Engineer
>>
>> The Qt Company GmbH
>> Rudower Chaussee 13
>> D-12489 Berlin
>> eike.zil...@qt.io
>> http://qt.io
>> Geschäftsführer: Mika Pälsi,
>> Juha Varelius, Mika Harjuaho
>> Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht
>> Charlottenburg, HRB 144331 B
>>
>>
>
> --
> *Davide Coppola*
>
> *website:* http://www.davidecoppola.com
> *blog:* http://blog.davidecoppola.com
>
> 
> 
> 
>
> ___
> 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] Qt Creator plugin distribution - best practices and future plans

2018-05-31 Thread Carel Combrink
Hi,

As the developer for the SpellChecker plugin[1] I am currently at a stage
where I only build releases as needed. This can be downloaded from the
release page [2].

Normally I only need to create a binary for the major.minor releases, then
it works on the patch releases as well.
This however failed for QtCreator v4.6.1, for some reason 4.6.1 could not
load my plugin built for 4.6.0.
In the past this was not an issue. Not sure why this happens.
(Perhaps something that I did wrong, something that caused it in QtC, any
information would be nice?)

I build for MSVC 32 and 64 bit, using MSVC compiler. Normally I try to just
build for the QtC version released along with the installers, trying to
match the Qt and compiler version.
I also build for Linux 64 bit, but normally only use the latest Ubuntu.
Based on some feedback I have also started building for Ubuntu 16.04 since
the last release for QtC 4.6.1.
I can't build plugins for MacOS since I do not own a Mac.

I have a general impression that most people use QtCreator from the
installers, thus I just build releases for those versions.
If someone build QtC themselves, I provide proper (I hope) steps for them
to build the plugin as well.

Building is currently a tedious process, but since I am not actively
developing the plugin I make releases only as QtC versions are released,
and then I just do it.
If I start developing more actively I will probably set up some CI builds
for the plugin.

For me this is working quite well at the moment.

[1] https://github.com/CJCombrink/SpellChecker-Plugin
[2] https://github.com/CJCombrink/SpellChecker-Plugin/releases

Regards,
Carel

On Thu, May 31, 2018 at 3:47 PM, Davide Coppola  wrote:

> Hi,
>
> I am about to release a plugin for Qt Creator and even if I have no
> problem in releasing the source code, I would like to release binaries as
> well for quick installing.
>
> I have the impression that this is not an easy task as I should release a
> different binary per Qt Creator version and that wouldn't even cover all
> the combinations of application/compiler.
>
> For example a friend tested my plugin with the Qt Creator package provided
> by Arch Linux and it was crashing for him, likely because they build Qt
> Creator with gcc 7 and I built the plugin with gcc 5.4.
>
> Are they any best practices or "standard" ways to handle this?
>
> Is there any plan from the Qt Creator developers to relax the version
> parity requirement?
> Ideally I would like to build a plugin for 4.6 and have it running with
> all 4.6.x versions at least, instead of having to build it for 4.6.0,
> 4.6.1, etc...
>
> I also noticed an abandoned Qt Creator plugin scripting project
>  in
> the Qt repos. Any chance something like that will be restarted? Maybe using
> the new/upcoming improved Python integration?
>
> Cheers
>
> --
> *Davide Coppola*
>
> *website:* http://www.davidecoppola.com
> *blog:* http://blog.davidecoppola.com
>
> 
> 
> 
>
> ___
> 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] Memory usage of Qt Creator

2018-04-13 Thread Carel Combrink
Hi,

I work on a quite large application and my clangbackend crashes often due
to running out of memory.
I am using Qt Creator 4.6.0 [Qt 5.10.1 (MSVC 2015, 32 bit)]
Thus if the clangbackend reaches about 1.4GB of RAM it crashes, then starts
growing again, rinse and repeat... Switching to 64 but will not solve the
issue, since I only have about 2 GB RAM free, thus crashing the
clangbackend is better compared to crashing everything. (Sometimes the
compiler crash due to running out of memory).

My current numbers as I am typing this:
Image Name | Memory (Private Working Set )
-|--
clangbackend.exe *32 | 751 976K
qtcreator *32 | 592 004K

Regards,
Carel

On Fri, Apr 13, 2018 at 12:38 PM, Aleksey Kontsevich  wrote:

> Clean QtC 4.5.2 takes 60 MB for me.
>
> --
> Best regards,
> Aleksey
> *Linked in * https://www.linkedin.com/in/alekseykontsevich
>
>
>
> 13.04.2018, 13:32, "timur.kris...@gmail.com" :
>
> Hi,
>
> Just noticed that with the latest version of Qt Creator the memory
> usage numbers went up.
>
> Currently I get ~400MiB for qtcreator and ~450MiB for clangbackend.
> This seems to slowly go down after I close some source files, though it
> takes time (guess it keeps them in cache for a while).
>
> Are these figures normal / expected?
>
> Best regards,
> Timur
> ___
> 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] Qt Creator 4.4 Windows Compiler

2017-08-15 Thread Carel Combrink
Are there any roadmap plans on when the move to 2017 will be
made/considered?

On Tue, Aug 15, 2017 at 9:19 AM, Eike Ziller  wrote:

>
> > On 15. Aug 2017, at 08:19, Carel Combrink 
> wrote:
> >
> > Hi,
> >
> > What version of Visual Studio will be used to build the final release of
> Qt Creator 4.4 for Windows?
> > I just want to plan regarding the support for my QtC SpellChecker Plugin.
>
> Same as before: MSVC2015 (Update 3)
>
> Br, Eike
>
> --
> Eike Ziller
> Principal Software Engineer
>
> The Qt Company GmbH
> Rudower Chaussee 13
> D-12489 Berlin
> eike.zil...@qt.io
> http://qt.io
> Geschäftsführer: Mika Pälsi,
> Juha Varelius, Mika Harjuaho
> Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht
> Charlottenburg, HRB 144331 B
>
>
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] Qt Creator 4.4 Windows Compiler

2017-08-14 Thread Carel Combrink
Hi,

What version of Visual Studio will be used to build the final release of Qt
Creator 4.4 for Windows?
I just want to plan regarding the support for my QtC SpellChecker Plugin
.

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


[Qt-creator] C++14 Digit Separators issue in Qt Creator

2017-05-26 Thread Carel Combrink
Hi All,

I have requested QTCREATORBUG-14939
 to be reopened since
the behavior around C++14 Digit separators is less than ideal.

For more information see the comment that I added.

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


Re: [Qt-creator] Dev: Qt Creator 4.3 branch created

2017-03-16 Thread Carel Combrink
Hi Eike,

Not sure if this is contained somewhere but what is the current planning
around the compiler and Qt version that will be used to build Qt Creator
4.3 with for Windows?

Regards,


On Thu, Mar 16, 2017 at 12:12 PM, Eike Ziller  wrote:

>
> > On Mar 8, 2017, at 11:57 AM, Eike Ziller  wrote:
> >
> > In anticipation of the feature freeze for 4.3 (*), I’ve created the 4.3
> branch.
> >
> > Please start targeting the 4.3 branch instead of master.
>
>
> > A final merge from master to 4.3 will be done next week after the
> feature freeze, so your open changes for master that you submit until then
> will also automatically end up in 4.3.
>
> This has been done now. Any changes going to master branch are Qt Creator
> 4.4 now.
>
> >
> > Br, Eike
> >
> > (*) https://wiki.qt.io/Qt_Creator_Releases
> >
> > --
> > Eike Ziller
> > Principal Software Engineer
> >
> > The Qt Company GmbH
> > Rudower Chaussee 13
> > D-12489 Berlin
> > eike.zil...@qt.io
> > http://qt.io
> > Geschäftsführer: Mika Pälsi,
> > Juha Varelius, Mika Harjuaho
> > Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht
> Charlottenburg, HRB 144331 B
> >
> > ___
> > Qt-creator mailing list
> > Qt-creator@qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/qt-creator
>
> --
> Eike Ziller
> Principal Software Engineer
>
> The Qt Company GmbH
> Rudower Chaussee 13
> D-12489 Berlin
> eike.zil...@qt.io
> http://qt.io
> Geschäftsführer: Mika Pälsi,
> Juha Varelius, Mika Harjuaho
> Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht
> Charlottenburg, HRB 144331 B
>
> ___
> 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] Qt Creator: unknown warning group on Q_OBJECT using clang code model

2017-03-14 Thread Carel Combrink
Hi,

I have just switched over to to using the ClangCodeModel in Qt Creator
4.2.1 but get the following warning on the O_OBJECT macro (see attached
image):
Lexical or Preprocessor Issue
20:5 warning unknown warning group '-Wsuggest-override', ignored.
...

Is this a known issue? I have looked through the bugreports but can't seem
to find anything.

I am using:
Qt Creator 4.2.1
Windows 7 x64

My project is set up using:
Qt 5.7 and MinGW 5

Might it be related to the the compiler passing/enabling the Q_CC_GNU code
check that clang then "sees" and parses?

Is there a way to work around this issue (it is less than ideal to just
ignore it)?

I will raise a bug if needed, just want some input around the issue first.

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


[Qt-creator] QtCreator release and MSVC2015

2016-09-01 Thread Carel Combrink
Hi,

Just out of a matter of interest, what are the plans to start building the
QtCreator that gets shipped with Qt (online/offline) on Windows with MSVC
2015? Also any comment on a 64 bit version?

Are there any reason why this not yet done?

I developed and maintains a SpellChecker plugin for QtCreator but had to
reinstall my development environment and installed MSVC2015 without paying
too much attention now I realised it might be an issue and I need to start
the setup from scratch.

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


Re: [Qt-creator] Parse macro arguments for Spell Checking

2016-01-26 Thread Carel Combrink
Dear Nikolai,

You can get the unpreprocessed source code with e.g.
>
> auto *cppModelManager = CppModelManager::instance();
> auto *cppEditorDocument =
> cppModelManager->cppEditorDocument(document->fileName());
> if (cppEditorDocument) {
> // Editor is opened and can provide us the source code...
> const QByteArray source = cppEditorDocument->contents();
> const uint end =  block.bytesEnd() - block.bytesBegin();
> qDebug() << "Argument:" << source.mid(block.bytesBegin(), end);
> } else {
> // Read source code from disk...
> }
>
>
The above works well, thank you. Regarding the "Read source code from
disk... " comment, when will it happen that the editor documents would not
be open? From my understanding the model manager will open the document
with a call to CppTools::CppModelManager::updateSourceFiles(). If this is
correct then I do not need to worry about this case.


To convert to line/column, document->translationUnit()->getPosition(...)
> should help you.
>

I have attempted this but can't seem to get the correct answer for the line
and column number for the arguments:
I have implemented the following to test:

for(const CPlusPlus::Document::MacroUse& mac: macroUse) {

const QVector& args = mac.arguments();

qDebug() << "Macro  : " << mac.macro().name();

qDebug() << "Macro Line : " << mac.beginLine();

docPtr->translationUnit()->getPosition(mac.utf16charsBegin(),
&line, &column);

qDebug()  << "Macro Position: " << line << ", " << column;

for(const CPlusPlus::Document::Block& block: args) {


docPtr->translationUnit()->getPosition(block.utf16charsBegin(), &line,
&column);

qDebug()  << "Block Position: " << line << ", " << column;

}

}


For the following line ( 47)

MY_TEST_MACRO(ab + "This is a \"strin\" literal " +
QString::number(20) + "That we \"neerd\" to chegck for \"Spellig
Mistakers\"");


I get on Linux:
Macro  :  "MY_TEST_MACRO"
Macro Line :  47
Macro Position:  47 ,  10
Block Position:  47 ,  24

And on Windows:
Macro : "MY_TEST_MACRO"
Macro Line : 47
Macro Position: 49 , 3
Block Position: 50 , 1

I am expecting:
Macro Position to be: 47, 5 and the Block Position to be: 47, 19

Again I get different results on Windows and Linux, but worse than that it
is not what I expected. Am I doing something wrong?
Previous issue with almost the same code is mentioned here:
https://bugreports.qt.io/browse/QTCREATORBUG-14834

Note that we are focusing on the clang code model, so in the long run the
> code we are speaking about here will vanish or be replaced.


I am assuming that even though the code model is planned to be replaced
with the clang code model there would still be an interface into the model.
Regarding my SpellChecker plugin, if this move happens I want to still be
able to allow for picking up spelling mistakes, thus I would then need to
interface to the code model that the clang processor built up. Do you have
any suggestions or comments around this and where I might start to look if
I want to start porting my plugin to make use of this?

As mentioned, I was hoping to start with the process to integrate my plugin
into Qt Creator once the above issue is solved, what is your
recommendations around this? Should I wait for the clang code model before
I attempt this or would it still be a good idea to start the integration
using the old code model?

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


[Qt-creator] Parse macro arguments for Spell Checking

2016-01-19 Thread Carel Combrink
Hi,

In an attempt to handle macros correctly from my SpellChecker plugin I need
to get the arguments from functionLike() macros to check for string
literals.

So I have the following code that obtains the MacroUse from the
Document::Ptr:

QList macroUse = docPtr->macroUses();

for(const CPlusPlus::Document::MacroUse& mac: macroUse) {

const CPlusPlus::Macro& macro = mac.macro();

qDebug() << "Name: " << macro.nameToQString();

qDebug() << "isFunctionLike(): " << mac.isFunctionLike();

qDebug() << "beginLine() : " << mac.beginLine();

const QVector& args = mac.arguments();

qDebug() << "Arguments:  : " << args.count();

for(const CPlusPlus::Document::Block& block: args) {

qDebug() << "bytesBegin" << block.bytesBegin();

qDebug() << "bytesEnd" << block.bytesEnd();

qDebug() << "Bytes Diff: " << block.bytesEnd() -
block.bytesBegin();

qDebug() << "utf16charsBegin" << block.utf16charsBegin();

qDebug() << "utf16charsEnd" << block.utf16charsEnd();

qDebug() << "UTF Diff: " << block.utf16charsEnd() -
block.utf16charsBegin();

}

}


What I am struggling with is to get the argument before the macro is
replaced/expanded.
Say I have the following on line 46:

QString stringLiteral = QStringLiteral("A String Literal wirth spellig
mistakes");


The above code prints out:

Name : "QStringLiteral"

isFunctionLike(): true

beginLine() : 46

Arguments: : 1

bytesBegin 1894

bytesEnd 1935

Bytes Diff: 41

utf16charsBegin 1893

utf16charsEnd 1934

UTF Diff: 41

>From the above I see that I get the correct Macro, with the correct number
of arguments and the length of the argument is correct.

Now the issue: How do I get the actual argument: "A String Literal wirth
spellig mistakes"

If I can get the argument, the plan is to extract string literals (text in
between "") and then spell check that text.
The second thing I will then need to do is to underline any spelling
mistakes, so I would need to get the line and column number if possible, of
the misspelled word before expanded.

In a previous discussion about this issue on the mailing list last year (
here
)
I got something working for QStringLiteral, but the issue was that other
macros would break down, such as the __FILE__ macro. Thus I am revisiting
the issue and hopefully can get it resolved for all macros with arguments.
In the referenced discussion a user (Typz) suggested to run the fast
preprocessor before parsing strings, but I have no idea how to do this
(correctly) if this is the recommended approach above what I am attempting
above.

Any help will be much appreciated. If I get this sorted out I want to start
investigating the possibility of integrating my plugin with QtCreator.

PS: The above code is still for QtC 3.6. Also I am using QStringLiteral as
the example since that is the most used macro in these circumstances, but
the same should apply for any macro, even custom ones defined in the
project.


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


Re: [Qt-creator] Building 3.5: Dependent 'commondefines.h' does not exist.

2015-10-29 Thread Carel Combrink
Hi,

Regarding the bug <https://bugreports.qt.io/browse/QTCREATORBUG-14917> I
posted in August, I am the only one that experiences this issue?
Can someone please confirm or deny if they have the same issue?

This is still an issue for me, even for QtC 3.6. Thus I am struggling to
get my environment ready to release my SpellChecker
<https://github.com/CJCombrink/SpellChecker-Plugin> plugin in time for the
release of QtC 3.6.

If I am doing something wrong, please let me know so that I can fix it.

Regads,



On Fri, Aug 14, 2015 at 10:06 PM, Carel Combrink 
wrote:

> I have created a Bug Report on the Qt Creator Jira describing the issue:
> https://bugreports.qt.io/browse/QTCREATORBUG-14917
>
> Any help will be appreciated.
>
> If there are any more information that I can provide, please do not
> hesitate to ask.
>
> Regards,
> Carel
>
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Building 3.5: Dependent 'commondefines.h' does not exist.

2015-08-14 Thread Carel Combrink
I have created a Bug Report on the Qt Creator Jira describing the issue:
https://bugreports.qt.io/browse/QTCREATORBUG-14917

Any help will be appreciated.

If there are any more information that I can provide, please do not
hesitate to ask.

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


[Qt-creator] Building 3.5: Dependent 'commondefines.h' does not exist.

2015-08-10 Thread Carel Combrink
Hi,

I have cleaned up my development environment (Windows) by reinstalling Qt
(5.5) from scratch and getting the sources for Qt Creator 5.5.

When I try to build Qt Creator I get the following error:
C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.qmldesignerplugin.Release

Error: dependent
'C:\Development\QtCreator\3.5\share\qtcreator\qml\qmlpuppet\interfaces\commondefines.h'
does not exist.

After a do a revert on my checkout out branch (git checkout .) the files
are there:
/c/Development/QtCreator/3.5 (3.5)
$ ls share/qtcreator/qml/qmlpuppet/interfaces/
commondefines.h  nodeinstanceclientinterface.h
nodeinstanceserverinterface.cpp
interfaces.pri   nodeinstanceglobal.h
nodeinstanceserverinterface.h

Then rebuilding the project I see the following line:
"*del
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\container\propertyabstractcontainer.cpp
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\container\propertyabstractcontainer.h
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\container\propertybindingcontainer.cpp
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\container\propertybindingcontainer.h
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\container\propertyvaluecontainer.cpp
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\container\propertyvaluecontainer.h
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\container\reparentcontainer.cpp
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\container\reparentcontainer.h
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\container\sharedmemory.h
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\container\sharedmemory_qt.cpp
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\container\sharedmemory_unix.cpp
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\html\welcome.html
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\images\template_image.png
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\images\webkit.png
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\instances\instances.pri
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\instances\nodeinstanceclientproxy.cpp
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\instances\nodeinstanceclientproxy.h
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\interfaces\commondefines.h
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\interfaces\interfaces.pri
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\interfaces\nodeinstanceclientinterface.h
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\interfaces\nodeinstanceglobal.h
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\interfaces\nodeinstanceserverinterface.cpp
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\interfaces\nodeinstanceserverinterface.h
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\mockfiles\Window.qml
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\qml2puppet\Info.plist
..\..\..\..\3.5\share\qtcreator\qml\qmlpuppet\qml2puppet\qml2puppet.pri*"

Why is QtCreator deleting the files and then during build trying to build
the files?

Did I forget to do something regarding setup before trying to build Qt
Creator?

PS: I did the cleanup and reinstall in Windows 7 and had this issue. I
decided not to follow up on this since I was planning to upgrade to Windows
10. Now in Windows 10 it does exactly the same.

I am using MSVC 2013.

---
Check out my SpellChecker Plugin for Qt Creator on github @
https://github.com/CJCombrink/SpellChecker-Plugin
Regards,
Carel
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Issue parsing QStringLiteral() in SpellChecker Plugin

2015-07-30 Thread Carel Combrink
Hi Kikolai,

Looks like a bug on Windows - there I also get the +2 lines difference.
>

I agree with you, on Linux I was able to implement your suggestion and now
my SpellChecker works correctly for QStringLiterals. PS: I have no way to
test on Mac so the code will be enabled if building from source.


> Please create a minimal failing example and report at
> https://bugreports.qt.io/


I have disabled this code in Windows but created a bug report @
https://bugreports.qt.io/browse/QTCREATORBUG-14834

Thank you very much for the help in this regard.
FYI: The updated code can be seen in the commit

for
the fix.

I will probably only make a new release closer to the release of Qt Creator
3.5, perhaps after the RC.

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


[Qt-creator] Issue parsing QStringLiteral() in SpellChecker Plugin

2015-07-25 Thread Carel Combrink
Hi Guys,

I saw that my SpellChecker Plugin does not handle string literals enclosed
in QStringLiteral(). correctly. I am pretty sure it is because
QStringLiteral() is a macro that expands to the actual code to handle the
literal.

The issue with this is, that I need to parse the string to check for
spelling mistakes and then if there are mistakes, underline the misspelled
word and give the user the options to replace the misspelled word.

Due to the expansion of the macro, I am finding it rather hard to get the
position of the words as the user sees it, not my plugin. For example if I
have a mistake on "line: 8, Col: 63" (reported by QtC), my parser sees 2
instances of the word at (10:65) and (10:232).

How do I extract the 'correct location' (Location in the IDE) for the
QStringLiteral() expansion?

I have started searching and looked a bit at the  WrapStringLiteral class
(part of CppQuickfixes) and it seems like the WrapStringLiteral::analyze()
function can do what I need. I am not sure how to use this, or implement
something similar.

Any help will be greatly appreciated.

PS: I will also be very grateful if this solution can be used to also know
which strings are translatable strings (enclosed in tr()). I would like to
add the option to my plugin to let the user request that only string
literals that will be translated be parsed.

---
Check out my SpellChecker Plugin for Qt Creator on github @
https://github.com/CJCombrink/SpellChecker-Plugin
Regards,
Carel
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] Submitting a plugin that does not follow the coding style

2015-06-01 Thread Carel Combrink
Dear Oswald,

Regarding this issue, is there a quick way to do a "dry run" on a plugin to
see how much a plugin conforms (or does not conform) to the coding style?

Regards,

-- Check out my SpellChecker Plugin for Qt Creator @
https://github.com/CJCombrink/SpellChecker-Plugin


On Mon, Jun 1, 2015 at 10:40 AM, Oswald Buddenhagen <
oswald.buddenha...@theqtcompany.com> wrote:

> On Sat, May 30, 2015 at 05:40:36PM +0200, Jochen Becher wrote:
> > (1) A static library that implements the "modelling backend" (entities,
> > persistence, diagrams, UI components)
> >
> > (2) A plugin that links the modelling backend with QtCreator (mostly a
> > new editor for diagrams)
> >
> > (3) A tool to export diagrams to image files
> >
> > (4) A patch of projectexplorer supporting more drag&drop
> >
>
> > I can update (2) and (3) following the coding style guide ((4) already
> > does).
> >
> yes, please.
>
> > But (1) is pretty large and I want to avoid all those changes. Is that
> > acceptable if I submit the library in src/libs/3rdparty?
> >
> size as such isn't an argument (the process can be mostly automated).
> but if you are indeed maintaining that library independently of
> qtcreator's existence, then it's by definition 3rdparty.
> ___
> 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] Which plugins are you working on?

2015-05-24 Thread Carel Combrink
Hi Tobias, list

I am working on a SpellChecker Plugin for Qt Creator to check spelling of
comments and string literals in C/C++ files.

I have just (last night) created a new release that adds the option so
select C, C++ or both types of comments to be checked. It already has a lot
of settings and has a few widgets that integrate into Qt Creator.

I have compiled plugins for both Windows and Linux(x64) versions of Qt
Creator 3.4 that can just be deployed with a few easy steps after
downloading.

Check out the plugin on my GitHub page:
https://github.com/CJCombrink/SpellChecker-Plugin
Releases can be downloaded from:
https://github.com/CJCombrink/SpellChecker-Plugin/releases
The wiki page shows some screenshots:
https://github.com/CJCombrink/SpellChecker-Plugin/wiki

One goal is to try and integrate into Qt Creator but not sure when I will
get to doing that and the amount of effort that it will take.

Any comments and feedback will be appreciated.
Regards,

On Sat, May 23, 2015 at 7:44 AM, Denis Shienkov 
wrote:

>  Hi.
>
> Recently I need to make a remote debugging on Win32 target (remote PC).
> Where it is not possible to use the mouse && keyboard. So, I start to
> implement the RemoteWindows plugin (similar to RemoteLinux, but withous the
> SSH), where are used WinRS (to remote startup of process) and netuse (to
> uploading a files for remote deployment).
>
> But this work still is not completed and I don't need in it anymore
> (because a my project already is complete without remote debugging).
>
> So, if a remote debuging for Win32 it is useful idea, then I can continue
> the RemoteWindows plugin (this sources is on my PC locally).  :)
>
> BR,
> Denis
>
> 23.05.2015 1:06, Hugo Parente Lima пишет:
>
> Hi,
>
>  A plugin to add support for the Ruby language into QtCreator.
>
>  I use my own plugin everyday on my daily job and it's nice! at least for
> my needs :-P
>
>  https://github.com/hugopl/RubyCreator
>
> On Fri, May 22, 2015 at 5:45 PM, Hunger Tobias <
> tobias.hun...@theqtcompany.com> wrote:
>
>> Hi Mailing list!
>>
>> In the NimPlugin thread there were some people implying that they are
>> working on custom Qt Creator plugins. I do know about some of those, but I
>> would be really curious as to what else is out there:-)
>>
>> So I would like to ask: What kind of plugins do you work on?
>>
>> What can we do to make things easier for you? Yes, a build service would
>> be nice, but from my perspective I do not see that happening anytime
>> soon:-/ Sorry about that.
>>
>> Have you ever considered to contribute your plugins? What is keeping you
>> from doing so?
>>
>> Best Regards,
>> Tobias
>>
>> PS: Please feel free to reply in private. I understand that some of you
>> are not able to discuss their work in public, but I am still awfully
>> curious about the cool stuff that you people are doing with Qt Creator and
>> the extensions you wrote for it :-)
>>
>> --
>> Tobias Hunger, Senior Software Engineer | The Qt Company
>>
>> The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
>> Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja Sitz der
>> Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB
>> 144331 B
>> ___
>> Qt-creator mailing list
>> Qt-creator@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>>
>
>
>
>  --
>  Hugo Parente Lima
>
>
>
> ___
> Qt-creator mailing 
> listQt-creator@qt-project.orghttp://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] Remote device issue with 3.4

2015-04-28 Thread Carel Combrink
Hi Christian,

Hm, I think I know what the problem is. Can you try to remove the device
> and then re-add it? From then on it should work permanently.
>

This did resolve the issue,
Thanks
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] Remote device issue with 3.4

2015-04-28 Thread Carel Combrink
Hi All,

I am deploying to a remote device from QtCreator of SSH, from Ubuntu 14.04
to Ubuntu 14.04.

In Qt 3.3 this was working without any problems, but after upgrading to
QtCreator 3.4 I get the following error trying to connect to my device
(using the "Test" function on the Device configuration):

Connecting to host...

SSH connection failure: Proxy denied connection


Device test failed.


I can confirm that the connection still works with 3.3 without any
problems, or changing any settings:

Connecting to host...

Checking kernel version...

Linux 3.13.0-46-generic x86_64


Checking if specified ports are available...

All specified ports are available.


Device test finished successfully.

I am behind a proxy (for internet etc.), but the connection to my device is
also behind the same proxy, thus no proxy should be needed for the
connection. Needless to say, an ssh connection from the terminal also works
without any problem.

Is this a bug, or is there something that I should change for 3.4 to work?

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


[Qt-creator] Auto complete for Qt5 signals and slots connections

2015-01-29 Thread Carel Combrink
Hi,

is there a feature or any plans to implement the same auto-complete
functionality for creating signals and slots using the Qt 5 connections?

For example when using the old way and typing SIGNAL(, QtCreator lists all
signals for the preceding QObject.

Currently I use the SIGNAL and SLOT macro to get the correct method, then I
edit the result to be according to the Qt5 syntax.

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


[Qt-creator] QtCreator Plugins that depends on external libraries

2015-01-29 Thread Carel Combrink
Hi,

With my SpellChecker Plugin
 a few comments were
received about trying to integrate the plugin into the main QtCreator code
(upstreaming it).

Regarding this I would like to know: Say I get the code to conform to the
QtCreator coding standard, how would I handle the external dependencies of
the plugin? At the moment the plugin depends on the Hunspell spellchecker
library to do the actual spell checking. For this it needs the headers as
well as the library to build and link the plugin.

On Linux this is not such a big issue, but on Windows it can be a bit more
problematic.

Any help in this regard will be appreciated.

PS: I have just created a new release that now also checks String Literals.

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


[Qt-creator] SpellCheckerPlugin: New version

2015-01-29 Thread Carel Combrink
I have created a new release for the SpellChecker Plugin for QtCreator 3.3.

The newest feature is that the plugin can now also check the spelling of
String Literals (quoted sequence strings Eg. "My String").

Please download the latest release from my github page here
 (currently
0.3.0).
There are pre-build binaries for QtCreator 3.3 for both Windows and
Linux(x64) with instructions on how to install in the README file.
On the main page of the project one can see how to use
 the
plugin. The plugin also provides a few useful widgets
.
Numerous settings
 can also be
changed for the plugin, depending on the user's preferences.

An example image of the underlining of misspelled words by the plugin can
be seen below:
[image: Inline image 1]
For more images please look at the wiki
 page of the
project.

Any feedback and comments will be appreciated.

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


[Qt-creator] Offset issue with CPlusPlus::TranslationUnit::getPosition()

2015-01-27 Thread Carel Combrink
Hi,

I have created a SpellChecker Plugin for QtCreator but I have an issue
where if a comment contains a 'non-standard' character, (ö - QChar(246)).

I get a comment using the TranslationUnit::commentAt() function then split
the comment into words. For each word I get the row and column number of
the word in the file with the TranslationUnit::getPosition() function.

If a comment contains the above character, that comment is fine, no
problems.

But for any comment block after the comment with the char the getPosition()
function returns the position with a offset for each issue char from the
correct position. For instance if there are 4 characters in preceding
comment blocks the location of the word is 4 rows offset from where it
should be.

See attached an example of the issue cause by this. In the first comment,
the mistake is underlined correctly. In the second comment the character in
question appears and the mistakes in the comment are still underlined
correctly. While in the last comment the mistake is shown one char offset
from where it should be (column 16 instead of 15 in the output pane).

The code for my plugin can be found on GitHub: SpellChecker-Plugin

The function that iterates the comments: parseCppDocument()

The function that calls getPosition(): tokenizeWords()


Is this a bug or am I doing something wrong?

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


Re: [Qt-creator] SpellChecker: Underline Spelling mistakes

2014-07-13 Thread Carel Combrink
Hi Preeteesh,

I have uploaded the code that I started testing with to my repository, see
here:
https://github.com/CJCombrink/SpellChecker-Plugin/commit/c41ba08adfee3fdc1446617f594b2d24124f1aaa

To build without the underlining just comment out the #define (plan was to
commit it with it commented out but somehow did not do that. )

Regards,
---
Check out my SpellChecker Plugin for Qt Creator @
https://github.com/CJCombrink/SpellChecker-Plugin



On Sat, Jul 12, 2014 at 10:20 AM, Carel Combrink 
wrote:

> Hi,
>
> Thanks for the feedback, I am planning to create a release again with the
> latest changes with the release of the next Creator.
>
> Since I was not getting the desired result I did not push my changes to
> the repository, I will attempt to upload it later today or tomorrow.
>
> Regards
> -Original Message-
> From: preeteesh kakkar
> Sent: 12/07/2014, 9:28 AM
> To: Carel Combrink
> Cc: qt-creator@qt-project.org
> Subject: Re: [Qt-creator] SpellChecker: Underline Spelling mistakes
>
> Sorry somehow i clicked on Send button a little too early, so can you
> share code which you are using to highlight a text block?
>
>
> On Sat, Jul 12, 2014 at 3:26 AM, preeteesh kakkar <
> preeteesh.kak...@gmail.com> wrote:
>
>> Hi Carel,
>>
>> This is very kool plugin that I would love to use. I compiled your plugin
>> sources and looked at it, it looks great. I don't see any place in your
>> code where you are using setExtraAdditionalFormats, I tried adding below
>> code which highlighting the line in below function and it does works
>>
>> SpellCheckerCore::addWordsWithSpellingMistakes
>> {
>> .
>>
>> TextEditor::BaseTextEditorWidget* editorWidget =
>> qobject_cast(d->currentEditor->widget());
>> if (words.count() != 0) {
>>
>> editorWidget->setHighlightCurrentLine(true);
>> }
>> else
>> {
>> editorWidget->setHighlightCurrentLine(false);
>> }
>> .
>> }
>>
>>
>> On Fri, Jul 11, 2014 at 5:11 PM, Carel Combrink > > wrote:
>>
>>> Hi,
>>>
>>> I am busy with a SpellChecker Plugin
>>> <https://github.com/CJCombrink/SpellChecker-Plugin> for Qt Creator but
>>> have one big outstanding thing I want to achieve next. I want to underline
>>> the spelling mistakes in the current file (the red wave-underline).
>>>
>>> From what I understand the TextEditor::SyntaxHighlighter on the document
>>> is responsible for doing the highlighting. Also on the CppDocument there is
>>> already a SyntaxHighlighter (CppHighlighter) that I do not want to replace
>>> nor re-implement (its working rather well as-is).
>>>
>>> I am using the setExtraAdditionalFormats() function on the highlighter I
>>> obtain from the BaseTextEditor to try and add just the red underline to the
>>> word with the spelling mistake. This works on some level. Each time the
>>> current file changes I can see the red line appear and disappear from the
>>> misspelled words. I am assuming that as soon as I add the formatting
>>> something else overwrites it, thus removing my added format. If I then
>>> switch to another editor and back my red lines appear again and stay there
>>> until the file is edited again. This causes the red underline again to
>>>  appear and disappear.
>>>
>>> Am I doing something wrong, is this a bug or feature?
>>>
>>> I would really like to only add the formatting without having to worry
>>> about something overwriting it after I have added it. I understand that at
>>> some point it should be cleared if the word is not a spelling mistake
>>> anymore, but not sure how this will be achieved.
>>>
>>> Any help in this regard will be much appreciated.
>>>
>>> A screenshot is attached to show what I get if I change editors to keep
>>> the line.
>>>
>>> Regards,
>>> ---
>>> Check out my SpellChecker Plugin for Qt Creator @
>>> https://github.com/CJCombrink/SpellChecker-Plugin
>>>
>>> ___
>>> 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] SpellChecker: Underline Spelling mistakes

2014-07-12 Thread Carel Combrink
Hi,

Thanks for the feedback, I am planning to create a release again with the
latest changes with the release of the next Creator.

Since I was not getting the desired result I did not push my changes to the
repository, I will attempt to upload it later today or tomorrow.

Regards
-Original Message-
From: preeteesh kakkar
Sent: 12/07/2014, 9:28 AM
To: Carel Combrink
Cc: qt-creator@qt-project.org
Subject: Re: [Qt-creator] SpellChecker: Underline Spelling mistakes

Sorry somehow i clicked on Send button a little too early, so can you share
code which you are using to highlight a text block?


On Sat, Jul 12, 2014 at 3:26 AM, preeteesh kakkar <
preeteesh.kak...@gmail.com> wrote:

> Hi Carel,
>
> This is very kool plugin that I would love to use. I compiled your plugin
> sources and looked at it, it looks great. I don't see any place in your
> code where you are using setExtraAdditionalFormats, I tried adding below
> code which highlighting the line in below function and it does works
>
> SpellCheckerCore::addWordsWithSpellingMistakes
> {
> .
>
> TextEditor::BaseTextEditorWidget* editorWidget =
> qobject_cast(d->currentEditor->widget());
> if (words.count() != 0) {
>
> editorWidget->setHighlightCurrentLine(true);
> }
> else
> {
> editorWidget->setHighlightCurrentLine(false);
> }
> .
> }
>
>
> On Fri, Jul 11, 2014 at 5:11 PM, Carel Combrink 
> wrote:
>
>> Hi,
>>
>> I am busy with a SpellChecker Plugin
>> <https://github.com/CJCombrink/SpellChecker-Plugin> for Qt Creator but
>> have one big outstanding thing I want to achieve next. I want to underline
>> the spelling mistakes in the current file (the red wave-underline).
>>
>> From what I understand the TextEditor::SyntaxHighlighter on the document
>> is responsible for doing the highlighting. Also on the CppDocument there is
>> already a SyntaxHighlighter (CppHighlighter) that I do not want to replace
>> nor re-implement (its working rather well as-is).
>>
>> I am using the setExtraAdditionalFormats() function on the highlighter I
>> obtain from the BaseTextEditor to try and add just the red underline to the
>> word with the spelling mistake. This works on some level. Each time the
>> current file changes I can see the red line appear and disappear from the
>> misspelled words. I am assuming that as soon as I add the formatting
>> something else overwrites it, thus removing my added format. If I then
>> switch to another editor and back my red lines appear again and stay there
>> until the file is edited again. This causes the red underline again to
>>  appear and disappear.
>>
>> Am I doing something wrong, is this a bug or feature?
>>
>> I would really like to only add the formatting without having to worry
>> about something overwriting it after I have added it. I understand that at
>> some point it should be cleared if the word is not a spelling mistake
>> anymore, but not sure how this will be achieved.
>>
>> Any help in this regard will be much appreciated.
>>
>> A screenshot is attached to show what I get if I change editors to keep
>> the line.
>>
>> Regards,
>> ---
>> Check out my SpellChecker Plugin for Qt Creator @
>> https://github.com/CJCombrink/SpellChecker-Plugin
>>
>> ___
>> 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] C++ Plugin: Check word against C++ Code Model

2013-05-10 Thread Carel Combrink
Hi,

I am busy with a Qt Creator plugin for the C++ Editor.

How do I use the C++ code model to check if a word is a function, class,
etc or 'just a word'? The plugin parses the comment tokens in a C++ Editor.

For an example: I have the following code:
/* This is function myFunction */
void myFunction(int arg1);

Parsing the comment gives me 4 words ("This", "is", "function" and
"myFunction"). How do I know that "This" is just a word while "myFunction"
is a token (part of the code model) in the scope of the comment?

My current, initial implementation checks a word against all tokens in the
file that the comment appears in. I would like to make use of the code
model instead, if possible.

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


[Qt-creator] Extend C++ Text highlighting in Qt Creator with a plugin

2012-11-22 Thread Carel Combrink
Hi,

I am trying to investigate the possibility of extending the normal C++
Syntax highlighter of Qt Creator (2.6.0) with a plugin. For the moment I am
only interested in working with comments, but in future this might extend
beyond comments.

Is it possible to extend the syntax highlighting purely using a plugin? If
yes, how would I approach this?

I have done a bit already (testing/prototyping), but could not get a good
solution, or rather any solution. This is what I have done:
I have created my own TextEditor::SyntaxHighlighter and added it to the
QTextDocument of the current editor. But if I do this, it replaces the C++
Syntax highlighter, and that functionality is lost. I though about
extending the CppHighlighter by deriving my class from it, but the
highlighter is in the Internal namespace, so that is not possible without
editing the CppEditor plugin (for now this is not an option).

My next attempt was to use a cursor to change the format (using
QTextCursor::mergeCharFormat()) of a section of the comment without using
my SyntaxHighlighter. I did this in my slot called when the document gets
updated. But this format change causes the documentUpdated() signal to be
emitted, which causes my formatter to update the format which causes… (see
the infinite loop)

I see there is a CppHighlightingSupport class in the CppTools plugin, but I
can’t figure out what this is for, nor if it will help me with my problem.
One thing that I saw about this ‘tool’ that make me think this is not the
correct things is the fact that only one can be set on the CppModelManager.
Again I can’t extend the base one since it is also Internal. And then
again, what if someone else decides to add another plugin, that also
extends the syntax highlighting. Then depending on the one that sets the
support factory last will be the one that gets used.

I don’t know how to approach this so that I can keep the highlighting that
the CppHighlighter applies and to highlight some specific sections of
comments differently.

Any help will be appreciated.
Regards,
Carel

PS: I have also posted this on the forum here (
http://qt-project.org/forums/viewthread/22115/)
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] QtCreator ignores scopes in .pro files

2012-11-22 Thread Carel Combrink
Hi,

I also though this was a bug or something.

It would be nice to have an option to disable this, if this is a feature. I
can see how this can be interesting for some developers, and that they
would like to see it. But in the case where one has a very large project
with a lot of conditional includes it clutters the project tree with
unneeded files. Especially when developing on a project with sub-projects.
I have gotten used to working like this, so this is not a problem, but a
setting would be nice.

PS: It also took me a while to figure out that it was just Creator that
shows everything and not my pro/pri files that were incorrect. I did spend
a lot of time trying to debug my project files...

Regards,
Carel

On Thu, Nov 22, 2012 at 10:37 AM, Orgad Shaneh  wrote:

> On Thu, Nov 22, 2012 at 10:11 AM, Christoph Mathys wrote:
>
>> Which parts of qmake-files does QtCreator consider? Some libraries
>> inside our project are optional, the .pro-file has clauses like this:
>>
>> exists(libOptional/libOptional.pro) {
>> SUBDIRS += libOptional
>> }
>>
>> This is perfectly fine with qmake, but QtCreator complains regularly:
>> Could not find .pro file for sub dir 'libOptional' in '$'
>>
>> This alone is a minor annoyance, but I suspect that this leads
>> QtCreator to reparse the entire source tree if I hit Ctrl+B. Is there
>> a way to include optional stuff that will allow QtCreator to "get it"?
>>
>> Christoph
>> ___
>> Qt-creator mailing list
>> Qt-creator@qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qt-creator
>>
>
> It is only parsed for UI reasons (entries in conditions that are
> unsatisfied are usually still interesting for the user, they should be
> displayed on the project view). It doesn't affect the build process.
>
> - Orgad
>
> ___
> 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