|
|
Home » Community » U++ community news and announcements » New release 2024 "alpha phase"
Re: New release 2024 "alpha phase" [message #60807 is a reply to message #60803] |
Fri, 13 September 2024 19:42   |
 |
mirek
Messages: 14261 Registered: November 2005
|
Ultimate Member |
|
|
Tom1 wrote on Thu, 12 September 2024 11:48Another issue... On Linux Mint and UHD 4k display the console output (when compiling) is using a very tiny little font... And even if I zoom it in using Ctrl+Wheel, on next startup of TheIDE it has shrinked again back. All other panels in TheIDE seem to follow the UHD sizing.
// Tom
What is in Setup/Settings? (Maybe screenshot...)
Also, TheIDE font sizes are set once on the very first start. Perhaps you started in HD and only later switched to UHD ?
[Updated on: Fri, 13 September 2024 19:44] Report message to a moderator
|
|
|
Re: New release 2024 "alpha phase" [message #60808 is a reply to message #60807] |
Fri, 13 September 2024 20:54   |
Tom1
Messages: 1303 Registered: March 2007
|
Ultimate Contributor |
|
|
mirek wrote on Fri, 13 September 2024 20:42Tom1 wrote on Thu, 12 September 2024 11:48Another issue... On Linux Mint and UHD 4k display the console output (when compiling) is using a very tiny little font... And even if I zoom it in using Ctrl+Wheel, on next startup of TheIDE it has shrinked again back. All other panels in TheIDE seem to follow the UHD sizing.
// Tom
What is in Setup/Settings? (Maybe screenshot...)
Also, TheIDE font sizes are set once on the very first start. Perhaps you started in HD and only later switched to UHD ?
It's entirely possible that it was mixed up on the very first start. Cannot check right now as the issue surfaced at the office. My home installation seems to work just fine. Also, I did not know that changing console font by Ctrl+Wheel is not persistent. (In the code editor it seems to be.)
I guess this can be considered solved. I will let you know next week if this is not the case once I check my office setup.
Thanks and best regards,
Tom
|
|
|
|
|
Re: New release 2024 "alpha phase" [message #60817 is a reply to message #60808] |
Mon, 16 September 2024 10:21   |
Tom1
Messages: 1303 Registered: March 2007
|
Ultimate Contributor |
|
|
Tom1 wrote on Fri, 13 September 2024 21:54mirek wrote on Fri, 13 September 2024 20:42Tom1 wrote on Thu, 12 September 2024 11:48Another issue... On Linux Mint and UHD 4k display the console output (when compiling) is using a very tiny little font... And even if I zoom it in using Ctrl+Wheel, on next startup of TheIDE it has shrinked again back. All other panels in TheIDE seem to follow the UHD sizing.
// Tom
What is in Setup/Settings? (Maybe screenshot...)
Also, TheIDE font sizes are set once on the very first start. Perhaps you started in HD and only later switched to UHD ?
It's entirely possible that it was mixed up on the very first start. Cannot check right now as the issue surfaced at the office. My home installation seems to work just fine. Also, I did not know that changing console font by Ctrl+Wheel is not persistent. (In the code editor it seems to be.)
I guess this can be considered solved. I will let you know next week if this is not the case once I check my office setup.
Thanks and best regards,
Tom
Hi,
Settings were showing small font size for all but the 'Normal', which I had probably changed by Ctlr+Wheel. So I must have initially started in HD mode.
First I tried to fix it by using 'Restore defaults' and then 'Close'. This caused TheIDE to crash on every attempt. Then I selected the same font sizes manually and the values were successfully updated after close. So, there must be some issue with 'Restore defaults'.
Anyway, now I have the correct UHD font sizes.
Thanks and best regards,
Tom
|
|
|
|
Re: New release 2024 "alpha phase" [message #60823 is a reply to message #60821] |
Tue, 17 September 2024 10:43   |
Tom1
Messages: 1303 Registered: March 2007
|
Ultimate Contributor |
|
|
mirek wrote on Tue, 17 September 2024 10:10Tom1 wrote on Mon, 16 September 2024 10:21First I tried to fix it by using 'Restore defaults' and then 'Close'. This caused TheIDE to crash on every attempt. Then I selected the same font sizes manually and the values were successfully updated after close. So, there must be some issue with 'Restore defaults'.
Tom
Should be now fixed.
Thanks!
// Tom
|
|
|
|
Re: New release 2024 "alpha phase" [message #60831 is a reply to message #60825] |
Wed, 18 September 2024 11:44   |
 |
mirek
Messages: 14261 Registered: November 2005
|
Ultimate Member |
|
|
Lance wrote on Tue, 17 September 2024 17:34Thank you mirek for all the hard work!
I have a question. In CoWork.h, line 186, etc,
void Do(Function&& f, Args&&... args) { co.Do([=]() { ret = f(args...); }); }
shouldn't it be something like
void Do(Function&& f, Args&&... args) { co.Do([=]() { ret = f(std::forward<Args>(args)...); }); }
for perfect forwarding to actually work?
Interestingly, does not work.
#include <Core/Core.h>
using namespace Upp;
CONSOLE_APP_MAIN
{
auto a = Async([](int n) -> double {
double f = 1;
for(int i = 2; i <= n; i++)
f *= i;
return f;
}, 100);
}
is compile time error with std_forward. Not sure why, but for now have to revert the change.
|
|
|
Re: New release 2024 "alpha phase" [message #60832 is a reply to message #60825] |
Wed, 18 September 2024 11:49   |
 |
mirek
Messages: 14261 Registered: November 2005
|
Ultimate Member |
|
|
Lance wrote on Tue, 17 September 2024 17:34
The current upp codebase works fine with std=c++20, except the warning: implicit capture of 'this' with a capture default of '=' is deprecated [-Wdeprecated-this-capture] issue. This can be fixed without much effort and without affecting the aimed standard of c++17. I was wondering if you would consider accepting it if I make a pull request for that.
Nope, cannot do that with C++17. Requires [=, this], which is C++20 feature. And, frankly, while [=] capturing 'this' is perhaps confusing, everybody is used to it by now so to require longer code for the same thing is at this point is kind of pointless... But when we go C++20, we shall do it anyway. In 3 years...
|
|
|
|
|
Re: New release 2024 "alpha phase" [message #60838 is a reply to message #60832] |
Wed, 18 September 2024 18:08   |
Lance
Messages: 656 Registered: March 2007
|
Contributor |
|
|
mirek wrote on Wed, 18 September 2024 05:49Lance wrote on Tue, 17 September 2024 17:34
The current upp codebase works fine with std=c++20, except the warning: implicit capture of 'this' with a capture default of '=' is deprecated [-Wdeprecated-this-capture] issue. This can be fixed without much effort and without affecting the aimed standard of c++17. I was wondering if you would consider accepting it if I make a pull request for that.
Nope, cannot do that with C++17. Requires [=, this], which is C++20 feature. And, frankly, while [=] capturing 'this' is perhaps confusing, everybody is used to it by now so to require longer code for the same thing is at this point is kind of pointless... But when we go C++20, we shall do it anyway. In 3 years...
Thank you for the feedback. At least it doesn't affect my using c++20. For now, I will just suppress the warnings.
We can predict moving to c++20 is going to be really smooth in the future. c++23 however will break many String interfaces. That's something we won't need to worry in like 6 years
[Updated on: Wed, 18 September 2024 18:09] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Wed Jun 11 14:50:03 CEST 2025
Total time taken to generate the page: 0.03145 seconds
|
|
|