升级Lazarus项目的正确方法是什么?

发布于 2024-10-28 21:10:00 字数 810 浏览 4 评论 0原文

几个月前,我安装了 Lazarus 0.9.28 + FPC 2.2.4 来处理一个新项目。一段时间后,我遇到了一些与 TImage 上的图像加载相关的错误。经过一番谷歌搜索后,我发现一些信息表明我所面临的错误已经在更高版本的 FPC 中得到了解决(现在不记得链接了)。

所以我决定下载并安装更新的版本。当时是一月份左右,最新的稳定版本还没有发布,所以我选择安装快照Lazarus 0.9.31-29128 + FPC 2.4.2-2011-01-20。我使用新的 IDE 打开我的项目并编译它。

幸运的是,我遇到的错误已经消失,但我遇到了 IDE(?)错误。升级后,当我在某些表单的代码选项卡上时,我看不到格式化的代码。相反,我只看到纯文本,如下所示:

wrong Look

但在某些表单上,我看到代码格式正确,如下所示:

right Look

有人以前遇到过这个吗?如果是的话,你能解决它吗?如何解决?或者谁能​​告诉我在版本之间升级 Lazarus 项目的正确方法是什么?

这比真正的问题更麻烦,但我仍然想解决它。任何帮助将不胜感激。

编辑

我注意到,在代码显示正确突出显示的表单中,.lfm 文件中的 LCLVersion 是 0.9.28.2,而在代码显示为纯文本的表单中,.lfm 文件中的属性是 0.9.31。可能与问题有关?我尝试更改该值,但它没有改变任何内容。

预先致谢并致以最诚挚的问候

Some months ago I installed Lazarus 0.9.28 + FPC 2.2.4 to work on a new project. Some time after it I ran into some bugs related with image loading on a TImage. After googling a bit I found some information pointing to the fact that the bugs I was facing were already solved in a later version of FPC (can't remember the link now).

So I decided to download and install a newer version. This was around January and the latest stable version was not released yet, so I choose to install the snapshot Lazarus 0.9.31-29128 + FPC 2.4.2-2011-01-20. I opened my project with the new IDE and compiled it.

Luckily the bugs I faced were gone, but I have run into an IDE (?) one. After the upgrade, when I am on the code tab of some of my forms I do not see the code formatted. Instead I only see plain text, like this:

wrong look

But on some forms I see the code formatted correctly, like this:

right look

Anyone has run into this before? If yes, could you solve it and how? Or can anyone tell me what the correct way to upgrade a Lazarus project between versions is?

It is more of a nuisance than a real problem but still I would like to solve it. Any help would be appreciated.

EDIT

I noticed that in the forms where the code shows correctly highlighted the LCLVersion in the .lfm file is 0.9.28.2, while in the forms where the code shows like plain text that property in the .lfm file is 0.9.31. Could have something to do with the problem? I tried changing the value but it did not change anything.

Thanks in advance and best regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

最笨的告白 2024-11-04 21:10:00

我不知道这是否确实导致了您的问题,但 Lazarus 在应用程序本地保留了一组设置。 (在我的 Vista 上是 $user\AppData\Local\lazarus)。

卸载时不会删除此配置目录,新安装将重用此配置目录。

如果出现奇怪的问题,请删除配置目录,并让当前安装生成一个新的配置目录。

I don't know if this is actually causing your problem, but Lazarus keeps a set of settings in application local. ($user\AppData\Local\lazarus on my vista).

This config dir is not erased upon deinstallation, and the new installation will reuse this.

In case of strange problems, remove the config dir, and let the current installation generate a new one.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文