

John R.
Members-
Content Count
67 -
Joined
-
Last visited
Community Reputation
20 ExcellentTechnical Information
-
Delphi-Version
Delphi 11 Alexandria
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Is the Delphi 12.2 Error Insight, completion and CTRL+Click completely broken ?
John R. replied to John R.'s topic in Delphi IDE and APIs
Finally, LSP is working and I can work again! In case it helps anyone, here are a few random remarks about this behavior: I have 4 projects in the project group and the error insight was completely non-functional only on one of those projects, the biggest one Oddly enough, when the broken project was open, if I open a unit from another project, it works for that unit but not for any units included in the broken project 🤯 My VM has plenty of memory and cores, the LSP never crashed while it wasn't working and I could see multiple instances of it in process explorer I tried with LSP on VS Code and obviously the same problem occurred, which is at least a coherent behavior I believe that the number of sources available in library path was the problem. What fixed it for me: Update to latest Spring4D 2 and used DCUs instead of sources Removed sources from DevExpress and used DCUs only -
Is the Delphi 12.2 Error Insight, completion and CTRL+Click completely broken ?
John R. posted a topic in Delphi IDE and APIs
I've just migrated from Delphi 12.0 (due to some internal exceptions and problems) to 12.2 with patch 2 and I'm baffled by its error insight, code completion and ctrl+click not working most of the time for my projects. I'm loosing so much time opening other units which are right next to the current one to see the definition of an object's method that I'm wondering if I shouldn't have stayed with the old 12.0. Restarting the LSP doesn't work either. Is it a bad installation on my part or a known problem ? I'm still waiting for components vendors to officially support 12.3 but I'm wondering if it is event better than 12.2 at this point. Any feedback from users who updated ? Having worked with many other fantastic IDEs (VSCode, VS, PhpStorm or Rider to name a few), I'm really worried that this is taking so much time for Delphi's IDE to have these basic code editor features working most of the time. PS: I know that Marco Cantu mentioned that the LSP will be reworked in the future, and that VS code could be used as an alternative but none of those really help me at the moment. -
I was considering using VSCode too and was wondering if you could tell more about the extensions that you use and your workflow ?
-
New features: https://docwiki.embarcadero.com/RADStudio/Athens/en/12_Athens_-_Release_3 List of bug fixes: https://docwiki.embarcadero.com/RADStudio/Athens/en/List_of_publicly_reported_bugs_fixed_in_12.3
-
Conceptual question about centralized TActionList and HighDPI scaling
John R. replied to Tom Mueller's topic in VCL
I've just tested a TcxImageList with a SVG image and used by a TActionList, Speed button and standard menu, and it seems to work just fine. -
Conceptual question about centralized TActionList and HighDPI scaling
John R. replied to Tom Mueller's topic in VCL
That might not answer your specific question but if you have access to DevExpress components, I highly recommend using only SVG icons in their image lists. You will no worries about icon quality, scale, dpi settings... anymore. -
(FYI) Delphi can't optimize out unneeded inheritance
John R. replied to Tommi Prami's topic in Algorithms, Data Structures and Class Design
OT: I know that they shouldn't be compared but when I see the kind of efforts done to optimize many aspects of .NET versions after versions, giving it a very positive image to many (younger and older) developers, I can't see how Delphi could survive once most of us retire if it doesn't bring "sexy" optimizations and promote them. I don't say that this particular one should be implemented but would it be that costly for EMB to hire a full-time developer whose sole task would be to improve performances here and there, and actually blog about it, instead of hiding everything until release for whatever reason ? I believe that this could create a lot of positive feedback and could attract developers intrigued by this "new" Delphi language that they've never heard about 😉 -
I was mentioning another tool to make sure that the problem is actually in your Delphi app, not in your SQLite DB. As an example, a SQLite trigger could cause such problems. But if you've already eliminated that possibility (which was not clear from your original message), then the problem is clearly in your Delphi code somewhere.
-
I would start with manual testing by crafting SQL queries which goes over the limits of your table definition with a tool such as SQLiteSpy: https://www.yunqa.de/delphi/apps/sqlitespy/index If that works from there, it probably means that the limit is still defined somewhere in your Delphi app. Searching for "varchar(256)" or "256" in your *.pas and *.dfm files might be useful, depending on your project's size.
-
Code signing certificates have become so expensive...
John R. replied to RaelB's topic in Delphi Third-Party
Looks like the price is right: https://azure.microsoft.com/en-us/pricing/details/trusted-signing/ Last time I purchased a code signing certificate via KSoftware I paid $188.10 for 3 years which makes it $5.225 / month. Next time I need to renew, I'll probably get the Azure one, which, even at double that price, have the advantages of not needing a USB dongle while being managed by Microsoft itself. So, far more trustworthy than the outdated websites and processes I had to endure in the past. -
Well if they are still using MyCommerce, chances are that they are abandoned as this platform is screwing all of its customers. See: https://www.theregister.com/2024/10/15/digital_river_runs_dry_hasnt/
-
Fantastic work! Thank you for your contributions. If I may, while this component is very powerful, I find that a serious limitation is the number of languages that it supports and the difficulty to add new languages. Many common languages are missing (such as Powershell, Rust, TypeScript, Go...) and creating highlighters is complicated. @pyscripter as you know the internals better than anyone, would it be possible to imagine a way to import highlighters from other projects such as highlight.js: https://github.com/highlightjs/highlight.js/blob/main/src/languages/powershell.js ? Or would it be better to imagine a simpler way to define highlighters ?
-
I sometimes need to use the "Tag" property to store a string, and I've noticed that the number of instances and changes are minimal so I could store them in memory during the application lifetime. That's why I've opted with a global singleton which: Returns a string object when asked, and keeps the instance in memory while the application is running Releases every instances once the application is closed Even if this is not an optimal solution, this is the "cleanest" way I could think of at the time. Something like: uses Spring.Collections; // ... type TStrObj = class(TObject) private FValue: string; public constructor Create(const aValue: string = ''); property Value: string read FValue write FValue; end; type FStrObjects: IList<TStrObj>; // ... constructor TSomeSingleton.Create(); begin FStrObjects := TCollections.CreateObjectList<THndStrObj>(True); end; function TSomeSingleton.GetStringObject(const aValue: string): TStrObj; begin // Create the object Result := TStrObj.Create(aValue); // Add it to the list FStrObjects.Add(Result); end; // ... // Usage: SomeComponent.Tag := NativeInt(Pointer(TSomeSingleton.GetStringObject('Some String Value')));
-
You should probably contact DevExpress support which is usually helpful: https://supportcenter.devexpress.com/ticket/list
-
This looks very interesting to me and a nice move for code signing. My current certificate is valid till the end of 2025 so I can only hope that this service will improve till then 🤞