VS代码:错误AL0445:该文件在另一个应用程序中打开。关闭应用程序以能够编译
hy,
我无法编译与代码。根据VS代码终端输出,在另一个应用程序中打开了.rdl文件。但这是不正确的,该文件在另一个应用程序或其他任何地方都不会打开。我已经尝试通过Explorer和Explorer的相应al.file删除RDL.File。但是每次我再次编译时,即使我通过VS Code和Explorer清除了缓存,删除的.RDL文件也会重新出现。如果我再次插入.al文件并尝试编译,则错误消息再次出现,并且无法创建软件包。
是否有使用启动或tasks.json中的配置在此问题上解决此问题的方法?
我已经在有关AL0445错误的各个论坛中阅读了问题和答案,但不幸的是,它们都无法帮助我
Hy,
I can't compile in VS Code. According to the VS Code terminal output, a .rdl file is open in another application. But that is not correct, the file is not open in another application or anywhere else. I have already tried to delete the rdl.file via the explorer together with the corresponding al.file from the explorer. But every time I compile again, the deleted .rdl file reappears in my project folder, even though I clear the cache via VS Code and Explorer. If I then insert the .al file again and try to compile, the error message appears again and the package cannot be created.
Are there ways to work around this problem using configurations in launch.json or tasks.json?
I have already read questions and answers in various forums about the AL0445 error, but unfortunately none of them have been able to help me so far
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您有多个指向同一布局文件的
报告
对象。尝试在工作空间中搜索
.rdl
文件的文件名,以确定是否是这种情况。It sounds like you have multiple
report
objects pointing to the same layout file.Try searching for the file name of the
.rdl
file in your workspace to determine if that is the case.编译报告对象有一个对.rdl或.rdlc布局的引用时,布局中的数据集将更新。
如果几个报告都引用了单个布局,则汇编不是串行处理,而是并行处理。
例子:
一个项目包含报告A和报告B,每个报告都指的是相同的布局。汇编项目时,报告A会汇编。这导致了布局的更新。报告B已在报告A的汇编之前已经编译。编译报告B还更新了布局中的数据集。但是,由于报告A的更新尚未完成,因此无法进行此更新。
如果您在AL中进行了编程并已在VS代码中安装了Microsoft的AL扩展程序,则可以将以下参数添加到设置。JSON:
如果将参数“并行”设置为False,则使用序列汇编,并且不再出现错误。
When compiling a report object in which there is a reference to an .rdl or .rdlc layout, the DataSet in the layout is updated.
If several reports all have a reference to a single layout, compilation is not processed serially, but in parallel.
Example:
A project contains Report A and Report B, each of which refers to the same layout. Report A is compiled when the project is compiled. This leads to an update in the layout. Report B is already compiled before the compilation of Report A is completed. Compiling Report B also updates the DataSet in the layout. However, this update cannot be carried out as the update by Report A has not yet been completed.
If you program in AL and have installed the AL extension from Microsoft in VS Code, you can add the following parameter to settings.json:
If you set the parameter "parallel" to false, serial compilation is used and the error no longer appears.