Engineering loading method and device, electronic equipment and storage medium

By obtaining and parsing the configuration information in the project data, the target editor and version information are determined, which solves the version dependency problem caused by the editor tool version update, achieves accurate loading of the target project, and improves development and maintenance efficiency.

CN118550599APending Publication Date: 2024-08-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310212442.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In the existing technology, version updates of editor tools lead to version dependency problems, causing editor tools of incompatible versions to be unable to load engineering data of program function modules, affecting development and maintenance efficiency.

Method used

By obtaining the configuration information in the project data, the version information of the target project is determined, and the target editor of the target version is called to load, so that the target project and the target editor version are matched.

Benefits of technology

It achieves accurate loading of target projects, improves the efficiency of development and maintenance of program function modules, and solves version dependency issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550599A
    Figure CN118550599A
Patent Text Reader

Abstract

The embodiment of the invention provides a project loading method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining project data which comprises the configuration information of a target project; according to the configuration information of the target project, version information corresponding to the target project is obtained, and the version information is used for representing a target version of a target editor capable of loading the target project; and based on the version information, calling a target editor of the target version to load the target project. The configuration file in the engineering data is read, and the version information of the target engineering is determined by utilizing the configuration file, so that the target editor capable of loading the target engineering and the corresponding target version are determined, matching of the target engineering, the target editor and the corresponding target version is realized, and finally accurate loading of the target engineering is realized. And the development and maintenance efficiency of the program function module is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular to an engineering loading method, device, electronic device, and storage medium. Background Art

[0002] In the process of developing program function modules such as video special effects and virtual props, developers usually choose the most suitable editor tool for editing and development based on specific functional requirements, so that the generated program function modules have better performance and visual effects.

[0003] However, in the prior art, the above-mentioned various editor tools are themselves constantly upgraded and updated to improve their own tool performance. Therefore, version dependencies arise between the editor tools and the program function modules, and the problem of mismatched versions of editor tools being unable to load the engineering data of the program function modules arises, affecting the development and maintenance efficiency of the program function modules. Summary of the invention

[0004] The embodiments of the present disclosure provide a project loading method, device, electronic device and storage medium to overcome the problem that an editor tool of an unmatched version cannot load the project data of a program function module.

[0005] In a first aspect, an embodiment of the present disclosure provides an engineering loading method, including:

[0006] Acquire project data, wherein the project data includes configuration information of a target project; obtain version information corresponding to the target project based on the configuration information of the target project, wherein the version information is used to characterize a target version of a target editor that can load the target project; based on the version information, call the target version of the target editor to load the target project.

[0007] In a second aspect, an embodiment of the present disclosure provides an engineering loading device, comprising:

[0008] An acquisition module, used to acquire project data, wherein the project data includes configuration information of a target project;

[0009] A processing module, used for obtaining version information corresponding to the target project according to the configuration information of the target project, wherein the version information is used for representing a target version of a target editor capable of loading the target project;

[0010] The loading module is used to call the target editor of the target version to load the target project based on the version information.

[0011] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:

[0012] A processor, and a memory communicatively connected to the processor;

[0013] The memory stores computer-executable instructions;

[0014] The processor executes the computer-executable instructions stored in the memory to implement the engineering loading method described in the first aspect and various possible designs of the first aspect.

[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the engineering loading method described in the first aspect and various possible designs of the first aspect is implemented.

[0016] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the engineering loading method described in the first aspect and various possible designs of the first aspect.

[0017] The project loading method, device, electronic device and storage medium provided in this embodiment obtain project data, wherein the project data includes configuration information of a target project; based on the configuration information of the target project, version information corresponding to the target project is obtained, wherein the version information is used to characterize a target version of a target editor that can load the target project; based on the version information, the target editor of the target version is called to load the target project. By reading a configuration file in the project data and using the configuration file to determine the version information of the target project, the target editor that can load the target project and the corresponding target version are determined, and the target project is matched with the target editor and the corresponding target version, and finally the target project is accurately loaded, thereby improving the development and maintenance efficiency of program function modules. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0019] Figure 1 An application scenario diagram of the engineering loading method provided in the embodiment of the present disclosure;

[0020] Figure 2 Schematic diagram of the process of the engineering loading method provided in the embodiment of the present disclosure Figure 1 ;

[0021] Figure 3 A schematic diagram of configuration information provided by an embodiment of the present disclosure;

[0022] Figure 4 Schematic diagram of the process of the engineering loading method provided in the embodiment of the present disclosure Figure 2 ;

[0023] Figure 5 for Figure 4 A flowchart of a specific implementation method of step S203 in the illustrated embodiment;

[0024] Figure 6 A schematic diagram of a client page provided in an embodiment of the present disclosure;

[0025] Figure 7 for Figure 4 A flowchart of a specific implementation method of step S206 in the illustrated embodiment;

[0026] Figure 8 A schematic diagram of a process for determining a target version of a target editor provided by an embodiment of the present disclosure;

[0027] Fig. 9 for Figure 4 A flowchart of a specific implementation method of step S207 in the illustrated embodiment;

[0028] Fig.10 A structural block diagram of an engineering loading device provided in an embodiment of the present disclosure;

[0029] Fig.11 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;

[0030] Fig.12 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0032] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0033] The application scenarios of the embodiments of the present disclosure are explained below:

[0034] Figure 1 This is an application scenario diagram of the project loading method provided by the embodiment of the present disclosure. The project loading method provided by the embodiment of the present disclosure can be applied to the application scenario of distributed software program development and maintenance. More specifically, it can be applied to the application scenario of maintenance and management of program function modules such as video special effects and virtual props. Figure 1 As shown, the method provided by the embodiment of the present disclosure can be applied to terminal devices, servers or other electronic devices with similar functions. Taking the terminal device as an example, a client of a tool management platform for managing program function modules is run on one side of the terminal device. On the one hand, the terminal device (shown as terminal device A in the figure) can use the tool management platform to call the editor tool to create a new project, and edit the code of the project, or load a third-party program to generate engineering data for implementing the program function module, and upload the engineering data to the code repository on the server side (upload engineering data); on the other hand, the terminal device (shown as terminal device B in the figure, it can be understood that terminal device A and terminal device B can also be the same terminal device) can obtain engineering data from the server side through the client (download engineering data), and use the corresponding editor tool to load and edit the engineering data, so as to achieve the upgrade, update and other maintenance work of the target project corresponding to the engineering data. It can be understood that, with reference to Figure 1 As shown, the project loading method provided in this embodiment can also be applied to the server side. After the server receives the instruction sent by the terminal device, it processes the project data to implement the method provided in this embodiment. The specific implementation process is similar and will not be repeated here.

[0035] In the prior art, since various editor tools are constantly upgraded and updated to improve their own tool performance, after the editor tool is updated, its internal function methods and interfaces will also change, which may cause the interface and method in the project data edited by the previous version of the editor to fail to call, and then cause the project data to be unable to be loaded normally, and the target project cannot be further modified, that is, it causes version dependency between the editor tool and the program function module, and the editor tool with mismatched version cannot load the project data of the program function module, affecting the development and maintenance efficiency of the program function module. The disclosed embodiment provides a project loading method to solve the above problems.

[0036] refer to Figure 2 , Figure 2 Schematic diagram of the process of the engineering loading method provided in the embodiment of the present disclosure Figure 1 The method of this embodiment can be applied in a terminal device. The project loading method includes:

[0037] Step S101: Acquire project data, which includes configuration information of a target project.

[0038] Step S102: obtaining version information corresponding to the target project according to the configuration information of the target project, where the version information is used to represent a target version of a target editor that can load the target project.

[0039] Exemplarily, the execution subject of the method provided in this embodiment is a terminal device, referring to Figure 1 The application scenario schematic diagram shown, the terminal device can obtain the engineering data through the server, or read the engineering data pre-stored locally. Wherein, the engineering refers to the object for managing and organizing program resources created in order to realize a module with a certain function during the program development process. And the engineering data is a collection of all or part of the programs (such as classes), resources (such as pictures), files and information used to realize the engineering. Specifically, for example, in the scenario of developing a program function module for video special effects, the project of starting the video special effects is the target project. By reading the engineering file corresponding to the target project on one side of the terminal device, the loading of the target project can be realized. After the target project is loaded, the target project can be further edited, thereby realizing the modification of the program function module. The engineering and corresponding engineering data in the steps of this embodiment are concepts in the prior art, and their principles are not further explained here.

[0040] Among them, the project data includes the configuration information of the target project. Exemplarily, the configuration information includes the relevant parameters of the target project. Through the configuration information, the purpose of subsequently determining the target editor and target version that match the target project can be achieved. For example, the configuration information includes the identification number, project name, code repository name, project document link, project person number, etc. corresponding to the target project. Furthermore, the data structure of the configuration information can be, for example, a structure (struct), an array, etc. The configuration information can be manually configured by the user or automatically generated in the process of creating the target project, and is pre-stored in the project data.

[0041] Furthermore, after obtaining the configuration information, the version information corresponding to the target project is determined according to the relevant information and parameters of the target project recorded in the configuration information, and the version information is used to characterize the target version of the target editor that can load the target project. Among them, the editor is a tool for loading the target project based on the project data, such as the filter production tool Effect house. When the project data corresponding to the target project meets the loading requirements of the editor, the editor can complete the loading of the target project by reading the project data, and then edit the target project. The loading requirements include the requirements of the editor itself and the editor version. The target editor and the corresponding target version that match the target project are determined through the configuration information, so as to perform the subsequent loading steps.

[0042] In one possible implementation, the configuration information includes a first configuration field, which includes an editor identifier and at least one corresponding version number identifier, wherein the editor identifier is used to represent a target editor that can be loaded into a target project, and the version number identifier represents an editor version of the target editor that can be loaded into a target project. Figure 3 A schematic diagram of configuration information provided by an embodiment of the present disclosure, such as Figure 3As shown, the configuration information includes a plurality of configuration fields, wherein the first configuration field includes an editor identifier and a corresponding version number identifier. As shown in the reference figure, the first configuration field includes editor identifier editor_1, editor identifier editor_2 and editor identifier editor_3 (shown as editor_1, editor_2 and editor_3 in the figure, respectively). Under each editor identifier, there are corresponding different version number identifiers. For example, under the editor identifier editor_1, there are version number identifiers v1.1 and v1.2 (shown as v1.1 and v1.2 in the figure, respectively); under the editor identifier editor_2, there are version number identifiers v1.0.11, version number identifier v1.0.21 and version number identifier v1.0.22 (shown as v1.0.11, v1.0.21 and v1.0.22 in the figure, respectively); and under the editor identifier editor_3, there is a version number identifier version_1.2 (shown as version_1.2 in the figure). The editor identifiers in the above-mentioned first configuration field represent an editor that has at least one version capable of loading the target project, namely, the target editor. The version number identifiers under the editor identifiers in the first configuration field represent the editor versions in the above-mentioned editors that can load the target project. Taking the editor identifier editor_1 as an example, the target editor corresponding to the editor identifier editor_1 can normally load the target project under versions v1.1 and v1.2; in one possible case, the target editor corresponding to the editor identifier editor_1 may also include an editor version of v1.3, but under this editor version, the target editor corresponding to the editor identifier editor_1 cannot load the target project, and therefore, it is not recorded in the first configuration field, nor will it be selected as the target version to load the target project in subsequent steps.

[0043] Among them, further, the version number identification in the first configuration field can be pre-entered or automatically generated. Specifically, for example, the version number identification is generated based on the historical record of the target editor corresponding to the editor identification loading the target project. In a possible implementation method, before step S101, when the target editor is created, or the above-mentioned target project is successfully loaded, a corresponding historical record will be generated to record the loading or creation process for the target project this time. After that, according to the historical distance, the editor identification corresponding to the target editor and the editor version of the target editor loading the target project are written into the first configuration field, thereby generating an editor identification for indicating the target editor in the first configuration field, and a version number identification for indicating the target version. It can be understood that, if possible, since there is a fixed mapping relationship between the editor identification and the version number identification, the version number identification can also be generated through the historical record, and then the corresponding editor identification is determined based on the specific data format of the version number identification, which will not be repeated here.

[0044] In the steps of this embodiment, the editor identifier and the version number identifier in the first configuration field are generated by loading the historical records of the target project, thereby realizing automatic generation of version information without the need for user extraction and entry, thereby improving project maintenance efficiency and reducing costs.

[0045] Step S103: Based on the version information, call the target editor of the target version to load the target project.

[0046] Exemplarily, after obtaining the version information, the terminal device can start the target editor of the target version based on the target editor and the corresponding target version represented by the version information, and load the target project. If the version information indicates more than two target editors and / or more than two target versions, the unique target editor and target version can be further determined based on the user's selection instructions to load the target project. Afterwards, after the target project is loaded in the target editor, the target project is edited based on the editing function provided by the target editor. The process of editing the project after the editor loads the project is a prior art and will not be described here.

[0047] In this embodiment, by acquiring the project data, the project data includes the configuration information of the target project; according to the configuration information of the target project, the version information corresponding to the target project is obtained, and the version information is used to characterize the target version of the target editor that can load the target project; based on the version information, the target editor of the target version is called to load the target project. By reading the configuration file in the project data, the version information of the target project is determined by using the configuration file, so as to determine the target editor that can load the target project and the corresponding target version, the target project is matched with the target editor and the corresponding target version, and finally the target project is accurately loaded, so as to improve the development and maintenance efficiency of the program function module.

[0048] refer to Figure 4 , Figure 4 Schematic diagram of the process of the engineering loading method provided in the embodiment of the present disclosure Figure 2 In this embodiment Figure 2 On the basis of the embodiment shown, step S103 is further refined, and a step of generating engineering data is added. The engineering loading method includes:

[0049] Step S201: Acquire project data, which includes configuration information of a target project.

[0050] Step S202: parsing the project data to obtain project dependency information, where the project dependency information represents a target functional unit in the target project that is dependent on the editor.

[0051] Step S203: Obtaining version information corresponding to the target project according to the project dependency information.

[0052] For example, reference Figure 2 The introduction of the engineering data in the illustrated embodiment includes the program code required for implementing the program function module corresponding to the target project. After obtaining the engineering data, the program code in the engineering data is parsed to determine the functional units in the program code that depend on the editor, i.e., the engineering dependency information. Specifically, the functional unit that depends on the editor as mentioned above means that the implementation of the functional unit requires the support of the editor. For example, the functional unit includes interfaces, methods, classes or data used in the program. If the above interfaces, methods, classes or data are provided by the editor, the implementation of the functional unit requires the support of the editor. When the above interfaces, methods, classes or data in the editor change, it will cause the timeliness of the functional unit, i.e., the functional unit depends on the editor. The information indicating the functional units that depend on the editor in the target project is the engineering dependency data.

[0053] Among them, further, the implementation method of obtaining project dependency information includes: after parsing the code file in the project data, the abstract syntax tree (abstract syntax code, AST) corresponding to the program is obtained, and then the interface name, method name, etc. constructed based on the specific naming rules are identified based on the abstract syntax tree, so as to obtain the functional unit of the dependent editor. Optionally, in this process, the annotation information in the program can also be combined for more accurate identification. The feature naming rules referred to above have a mapping relationship with the editor, and the specific implementation method is determined based on the specific editor, which will not be repeated here.

[0054] Afterwards, based on the obtained project dependency information, the preset editor is searched to determine the editor corresponding to the target functional unit of the above-mentioned dependency editor and the corresponding version number, thereby determining the target editor and target version corresponding to the target project, that is, the version information.

[0055] For example, Figure 5 As shown, the specific implementation of step S203 includes:

[0056] Step S2031: Obtain the calling method name corresponding to the target functional unit according to the project dependency information.

[0057] Step S2032: Based on the calling method name, obtain at least one target editor having a target functional unit and version information of the target editor.

[0058] Exemplarily, the project's dependence on the editor is mainly concentrated on the calling of specific interfaces. The name of the functional unit represented by the project dependency information can be mapped to the corresponding calling method name. In one possible implementation, the name of the functional unit is the same as the calling method name without secondary encapsulation. Afterwards, by obtaining the preset interface information (such as a header file) for recording the interfaces provided by each editor, and retrieving each interface in the interface information based on the name of the functional unit, the target interface, the target editor to which the target interface belongs, and the corresponding version number are determined, thereby realizing the determination of the version information. In the steps of this embodiment, the corresponding interface is determined by the calling method name corresponding to the functional unit, and the interface information of the editor is retrieved based on the interface, thereby determining the target editor with the target functional unit and the corresponding target version, thereby realizing the rapid retrieval of version information and improving the speed of determining version information.

[0059] Step S204: Based on the version information, an editor identifier corresponding to at least one editor is displayed.

[0060] Step S205: In response to the first trigger operation for the editor identifier, a target version of the target editor is obtained.

[0061] Exemplarily, after obtaining the version information, the version information records all target editors that can load the target project and at least one target version corresponding to each of them. In this case, it is necessary to further select an editor from the target editor to load the target project. Figure 2 In the illustrated embodiment, a solution for automatically selecting a target editor is provided to achieve fully automatic target project loading. In this embodiment, the target editor is selected based on the user's first trigger operation, thereby achieving more flexible target project loading and meeting different user needs. Specifically, Figure 6 A schematic diagram of a client page provided by an embodiment of the present disclosure, such as Figure 6 As shown, in the client page of the tool management platform, projects corresponding to different functional modules (project #1, project #2) are displayed. For the target project (project #2 in the figure), a first control (the "Open" menu control in the figure) for loading and opening it is set accordingly. When the user clicks the first control by operating the terminal device, the terminal device displays multiple editor identifiers (editor_1, editor_2 and editor_3 in the figure) in the drop-down menu corresponding to the first control based on the editor identifier of the target editor recorded in the version information. Afterwards, in response to the first trigger operation for the editor identifier (the first trigger operation for editor_2 in the figure), one of the specified target editors is selected, and then the terminal device determines the corresponding target editor.

[0062] Step S206: If the first trigger operation is a first type of trigger operation, determining a target version of the target editor based on the second trigger operation.

[0063] Exemplarily, the first trigger operation identified by the editor may be implemented in different ways. When the implementations are different, this embodiment executes the corresponding method steps according to the specific implementations. Specifically, if the first trigger operation is a first-type trigger operation, the target version of the target editor is manually determined. If the first trigger operation is a second-type trigger operation, the target version of the target editor is automatically determined. The first-type trigger mode is, for example, a click operation.

[0064] For example, Figure 7 As shown, the specific implementation of step S206 includes:

[0065] Step S2061: Display the version number identifiers corresponding to at least two to-be-selected versions of the target editor.

[0066] Step S2062: In response to the second trigger operation for the version number identifier, determine the target version of the target editor.

[0067] Optionally, before step S2062, the method further includes:

[0068] Step S2063: Acquire the functional units in the target project, and determine the recommended version corresponding to the target editor based on the functional units.

[0069] Step S2064: Display the indicator corresponding to the recommended version.

[0070] Figure 8 A schematic diagram of a process for determining a target version of a target editor provided by an embodiment of the present disclosure is shown below in conjunction with Figure 8 The above process is explained as follows: Figure 8 As shown, the first type of triggering method is, for example, a click operation. When the user clicks an editor identifier corresponding to a target editor (shown as editor_2 in the figure) in the drop-down menu of the first space through the operation terminal device, a corresponding secondary menu pops up, and the version number identifiers corresponding to at least two selected versions of the target editor are displayed in the secondary menu (shown as ver1.1, ver1.2 and ver1.3). Afterwards, in response to the second triggering operation for the version number identifier, for example, clicking the version number identifier ver1.2, the target version of the target editor editor_2 is determined to be ver1.2, thereby achieving the determination of the target version.

[0071] Furthermore, in this process, the terminal device obtains the functional unit in the target project and determines the corresponding recommended version based on the functional unit. For example, the functional unit is a functional interface for implementing image denoising. Although the target editor editor_2 has this functional interface in versions ver1.1, ver1.2, and ver1.3, this interface first appeared in version ver1.1 (i.e., the editor version corresponding to version number ver1.1, the same below). Therefore, for the sake of functional stability, version ver1.1 is not recommended, that is, ver1.2 and ver1.3 are determined to be the recommended versions. Afterwards, the indicator corresponding to the recommended version is displayed, refer to Figure 8 As shown in , the borders of the version number identification ver1.2 and the version number identification ver1.3 are displayed in black to form an indication mark, thereby achieving the purpose of indicating the recommended version. The method for obtaining the functional unit has been introduced in the previous steps and will not be repeated here.

[0072] Of course, other possible implementations also include other methods for determining the recommended version corresponding to the target editor, for example, obtaining annotation information, description information, etc. corresponding to each functional unit, and determining the recommended version of the editor corresponding to each functional unit, which will not be described one by one here. In this embodiment, the target version corresponding to the target editor is determined by human-computer interaction, which improves the flexibility of loading the target project and meets the personalized needs of users. At the same time, by obtaining the functional unit and using the functional unit to determine and display the indicator corresponding to the recommended version, the user prompt of the recommended version is implemented, making the selection of the target version more reasonable and improving the efficiency of human-computer interaction.

[0073] Step S207: If the first trigger operation is a second type of trigger operation, the target version is determined according to the default version.

[0074] For example, in another possible implementation, if the first trigger operation is a second type of trigger operation, and the second operation is, for example, a long press operation, or the operation cursor is kept on the editor logo for more than a preset time, then the version number logo corresponding to the target editor may not be displayed for the user to select, but the first historical version may be automatically selected as the target version, where the first historical version may be the default version.

[0075] For example, Fig. 9 As shown, the specific implementation of step S207 includes:

[0076] Step S2071: Obtain the default version of the target editor, where the default version is the editor version used when the target editor last loaded the target project.

[0077] Step S2072: Determine the target version based on the default version.

[0078] Exemplarily, the default version is the editor version used by the target editor when the target project was loaded last time. For example, the editor identifier corresponding to the target editor is editor_2. When the target editor editor_2 was used before, it had loaded the target project. Then the version used by the target editor editor_2 when loading the target project in the previous use process is determined as the default version. For example, the target editor editor_2 was ver1.2 version when loading the target project in the previous use process. Then the ver1.2 version is the default version. In the steps of this embodiment, the ver1.2 version is directly determined as the target version for startup. Among them, the default versions of different editors can be automatically recorded and generated according to the version number identifier of the editor after the terminal device successfully loads the target project with the corresponding editor each time. The terminal device can read it directly from the local or server as needed; it can also be obtained in real time The task log of the tool management platform is generated by parsing the historical records related to the loading of the target project recorded in the task log, which will not be repeated here.

[0079] In the steps of this embodiment, the target version corresponding to the target editor is determined by obtaining the default version of the target editor, thereby achieving fast and accurate determination of the target version, and then determining the fast opening of the target editor and the fast loading of the target project, thereby improving the efficiency of loading and editing the target project.

[0080] Step S208: calling the target editor of the target version to load the target project.

[0081] Optionally, before step S201, the method further includes:

[0082] Step S200: In response to a third operation instruction, start the initial editor, and generate project data corresponding to the target project based on the initial editor, wherein the third operation instruction is used to indicate the initial editor, or an editor version of the initial editor.

[0083] Exemplarily, with reference to the above-mentioned confirmation of the target editor and the target version, and the process of loading the target project, the process is the process of editing and maintaining the target project, that is, the target project has been loaded by the target editor at least once before. Therefore, before step S201, the terminal device responds to the third operation instruction input by the user, and starts the initial editor according to the initial editor indicated by the third operation instruction, or the editor version of the initial editor. Afterwards, the terminal device uses the initial editor to edit the target project and generates the engineering data corresponding to the target project, and the process is equivalent to the process of creating the target project. Afterwards, in the generated engineering data, the configuration information that can determine the version information is included, for example, the first configuration field in the configuration information includes the editor identification and the version number identification corresponding to the initial editor, indicating that the initial editor (under the version corresponding to the version number identification) can realize the correct loading of the target project. Thus, the scheme in the previous embodiment step is realized, and the target project is finally guaranteed to be correctly loaded in the maintenance and modification stage, and the problem of abnormal loading of the target project caused by the mismatch of the editor version is avoided.

[0084] In this embodiment, step S201 and step S208 are consistent with step S101 and step S103 in the above embodiment. For detailed discussion, please refer to Figure 2 The discussion under the relevant steps in the illustrated embodiment will not be repeated here.

[0085] Corresponding to the engineering loading method of the above embodiment, Fig.10 This is a structural block diagram of an engineering loading device provided in an embodiment of the present disclosure. For ease of description, only the parts related to the embodiment of the present disclosure are shown.

[0086] Reference Fig.10 , the engineering loading device 3 comprises:

[0087] The acquisition module 31 is used to acquire project data, wherein the project data includes configuration information of the target project.

[0088] The processing module 32 is used to obtain version information corresponding to the target project according to the configuration information of the target project, where the version information is used to represent a target version of a target editor that can load the target project.

[0089] The loading module 33 is used to call the target editor of the target version to load the target project based on the version information.

[0090] In one embodiment of the present disclosure, the configuration information includes a first configuration field, the first configuration field includes an editor identifier and at least one corresponding version number identifier, wherein the editor identifier is used to characterize a target editor that can be loaded into a target project, and the version number identifier characterizes an editor version of the target editor that can be loaded into a target project.

[0091] In one embodiment of the present disclosure, the version number identifier is generated based on a historical record of a target editor corresponding to the editor identifier loading a target project.

[0092] In one embodiment of the present disclosure, the processing module 32 is specifically used to: parse the project data to obtain project dependency information, the project dependency information represents the functional units in the target project that depend on the editor; and obtain version information corresponding to the target project based on the project dependency information.

[0093] In one embodiment of the present disclosure, when the processing module 32 obtains the version information corresponding to the target project based on the project dependency information, it is specifically used to: obtain the calling method name corresponding to the functional unit based on the project dependency information; based on the calling method name, obtain at least one target editor with the functional unit, and the version information of the target editor.

[0094] In one embodiment of the present disclosure, the loading module 33 is specifically used to: display an editor identifier corresponding to at least one editor based on version information; obtain a target version of the target editor in response to a first trigger operation for the editor identifier; and call the target editor of the target version to load the target project.

[0095] In one embodiment of the present disclosure, after responding to a first trigger operation for a target editor, the loading module 33 is further used to: display version number identifiers corresponding to at least two selected versions of the target editor; when obtaining the target version of the target editor, the loading module 33 is specifically used to: determine the target version of the target editor in response to a second trigger operation for the version number identifier.

[0096] In one embodiment of the present disclosure, the loading module 33 is further used to: obtain the functional units in the target project; determine the recommended version corresponding to the target editor according to the functional units; and display the indicator corresponding to the recommended version.

[0097] In one embodiment of the present disclosure, when obtaining the target version of the target editor, the loading module 33 is specifically used to: obtain the first historical version of the target editor, the first historical version being the editor version used when the target editor last loaded the target project; and determine the target version based on the first historical version.

[0098] In one embodiment of the present disclosure, before acquiring the engineering data, the acquisition module 31 is also used to: start the initial editor in response to a third operation instruction, wherein the third operation instruction is used to indicate the initial editor, or the editor version of the initial editor; and generate engineering data corresponding to the target project based on the initial editor.

[0099] The acquisition module 31, the processing module 32 and the loading module 33 are connected in sequence. The engineering loading device 3 provided in this embodiment can implement the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated in this embodiment.

[0100] Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown in FIG. Fig.11 As shown, the electronic device 4 includes:

[0101] A processor 41, and a memory 42 communicatively connected to the processor 41;

[0102] The memory 42 stores computer executable instructions;

[0103] The processor 41 executes the computer execution instructions stored in the memory 42 to implement the following Figure 2-Figure 9 The engineering loading method in the illustrated embodiment.

[0104] Optionally, the processor 41 and the memory 42 are connected via a bus 43 .

[0105] For related instructions, please refer to Figure 2-Figure 9 The relevant descriptions and effects corresponding to the steps in the corresponding embodiments can be understood, and no further elaboration is made here.

[0106] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which are used to implement the present invention when executed by a processor. Figure 2-Figure 9 The engineering loading method provided in any one of the corresponding embodiments.

[0107] The present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements Figure 2-Figure 9 The engineering loading method in the embodiment shown,

[0108] refer to Fig.12 , which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure, and the electronic device 900 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.12The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0109] like Fig.12 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0110] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.12 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0111] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0112] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0113] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0114] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.

[0115] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0116] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0117] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".

[0118] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0119] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0120] In a first aspect, according to one or more embodiments of the present disclosure, a method for loading an engineering project is provided, comprising:

[0121] Acquire project data, wherein the project data includes configuration information of a target project; obtain version information corresponding to the target project based on the configuration information of the target project, wherein the version information is used to characterize a target version of a target editor that can load the target project; based on the version information, call the target version of the target editor to load the target project.

[0122] According to one or more embodiments of the present disclosure, the configuration information includes a first configuration field, which includes an editor identifier and at least one corresponding version number identifier, wherein the editor identifier is used to represent a target editor that can load the target project, and the version number identifier represents an editor version of the target editor that can load the target project.

[0123] According to one or more embodiments of the present disclosure, the version number identifier is generated based on a historical record of a target editor corresponding to the editor identifier loading the target project.

[0124] According to one or more embodiments of the present disclosure, obtaining version information corresponding to the target project based on configuration information of the target project includes: parsing the project data to obtain project dependency information, wherein the project dependency information represents functional units in the target project that depend on an editor; and obtaining version information corresponding to the target project based on the project dependency information.

[0125] According to one or more embodiments of the present disclosure, obtaining version information corresponding to the target project based on the project dependency information includes: obtaining a calling method name corresponding to the functional unit based on the project dependency information; obtaining at least one target editor having the functional unit based on the calling method name, and version information of the target editor.

[0126] According to one or more embodiments of the present disclosure, calling the target editor of the target version to load the target project based on the version information includes: displaying an editor identifier corresponding to at least one editor based on the version information; obtaining a target version of the target editor in response to a first trigger operation for the editor identifier; and calling the target editor of the target version to load the target project.

[0127] According to one or more embodiments of the present disclosure, after responding to a first trigger operation for a target editor, the method further includes: displaying version number identifiers corresponding to at least two selected versions of the target editor; obtaining the target version of the target editor includes: determining the target version of the target editor in response to a second trigger operation for the version number identifier.

[0128] According to one or more embodiments of the present disclosure, the method further includes: acquiring a functional unit in the target project; determining a recommended version corresponding to the target editor based on the functional unit; and displaying an indicator corresponding to the recommended version.

[0129] According to one or more embodiments of the present disclosure, obtaining the target version of the target editor includes: obtaining a first historical version of the target editor, the first historical version being the editor version used by the target editor when the target editor last loaded the target project; and determining the target version based on the first historical version.

[0130] According to one or more embodiments of the present disclosure, before acquiring the engineering data, the method further includes: in response to a third operation instruction, starting an initial editor, wherein the third operation instruction is used to indicate the initial editor, or an editor version of the initial editor; and generating engineering data corresponding to the target project based on the initial editor.

[0131] In a second aspect, according to one or more embodiments of the present disclosure, there is provided an engineering loading device, comprising:

[0132] The acquisition module is used to acquire project data, wherein the project data includes configuration information of the target project.

[0133] The processing module is used to obtain version information corresponding to the target project according to the configuration information of the target project, wherein the version information is used to represent a target version of a target editor that can load the target project.

[0134] The loading module is used to call the target editor of the target version to load the target project based on the version information.

[0135] According to one or more embodiments of the present disclosure, the configuration information includes a first configuration field, which includes an editor identifier and at least one corresponding version number identifier, wherein the editor identifier is used to represent a target editor that can load the target project, and the version number identifier represents an editor version of the target editor that can load the target project.

[0136] According to one or more embodiments of the present disclosure, the version number identifier is generated based on a historical record of a target editor corresponding to the editor identifier loading the target project.

[0137] According to one or more embodiments of the present disclosure, the processing module is specifically used to: parse the project data to obtain project dependency information, wherein the project dependency information represents functional units in the target project that depend on the editor; and obtain version information corresponding to the target project based on the project dependency information.

[0138] According to one or more embodiments of the present disclosure, when the processing module obtains the version information corresponding to the target project according to the project dependency information, it is specifically used to: obtain the calling method name corresponding to the functional unit according to the project dependency information; based on the calling method name, obtain at least one target editor with the functional unit, and the version information of the target editor.

[0139] According to one or more embodiments of the present disclosure, the loading module is specifically used to: display an editor identifier corresponding to at least one editor based on the version information; obtain a target version of the target editor in response to a first trigger operation for the editor identifier; and call the target editor of the target version to load the target project.

[0140] According to one or more embodiments of the present disclosure, after responding to a first trigger operation for a target editor, the loading module is further used to: display version number identifiers corresponding to at least two selected versions of the target editor; when obtaining the target version of the target editor, the loading module is specifically used to: determine the target version of the target editor in response to a second trigger operation for the version number identifier.

[0141] According to one or more embodiments of the present disclosure, the loading module is further used to: obtain the functional units in the target project; determine the recommended version corresponding to the target editor based on the functional units; and display an indicator corresponding to the recommended version.

[0142] According to one or more embodiments of the present disclosure, when obtaining the target version of the target editor, the loading module is specifically used to: obtain a first historical version of the target editor, where the first historical version is the editor version used by the target editor when the target editor last loaded the target project; and determine the target version based on the first historical version.

[0143] According to one or more embodiments of the present disclosure, before acquiring the engineering data, the acquisition module is further used to: start an initial editor in response to a third operation instruction, wherein the third operation instruction is used to indicate the initial editor, or an editor version of the initial editor; and generate engineering data corresponding to the target project based on the initial editor.

[0144] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0145] The memory stores computer-executable instructions;

[0146] The processor executes the computer-executable instructions stored in the memory to implement the engineering loading method described in the first aspect and various possible designs of the first aspect.

[0147] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the engineering loading method described in the first aspect and various possible designs of the first aspect is implemented.

[0148] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the engineering loading method described in the first aspect and various possible designs of the first aspect.

[0149] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0150] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0151] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

Claims

1. An engineering loading method, characterized in that: include: Acquire project data, wherein the project data includes configuration information of the target project; According to the configuration information of the target project, version information corresponding to the target project is obtained, wherein the version information is used to represent a target version of a target editor that can load the target project; Based on the version information, a target editor of the target version is called to load the target project.

2. The method according to claim 1, characterized in that The configuration information includes a first configuration field, which includes an editor identifier and at least one corresponding version number identifier, wherein the editor identifier is used to represent a target editor that can load the target project, and the version number identifier represents an editor version of the target editor that can load the target project.

3. The method according to claim 2, characterized in that The version number identifier is generated based on the historical record of the target editor corresponding to the editor identifier loading the target project.

4. The method according to claim 1, characterized in that: The obtaining, according to the configuration information of the target project, version information corresponding to the target project includes: Parsing the project data to obtain project dependency information, wherein the project dependency information represents editor-dependent functional units in the target project; According to the project dependency information, version information corresponding to the target project is obtained.

5. The method according to claim 4, characterized in that The obtaining, according to the project dependency information, version information corresponding to the target project includes: According to the project dependency information, obtain the calling method name corresponding to the functional unit; Based on the calling method name, at least one target editor having the functional unit and version information of the target editor are obtained.

6. The method according to claim 1, characterized in that The calling the target editor of the target version to load the target project based on the version information includes: Based on the version information, display an editor identifier corresponding to at least one editor; In response to a first trigger operation identified by the editor, obtaining a target version of the target editor; The target editor of the target version is called to load the target project.

7. The method according to claim 6, characterized in that After responding to a first trigger operation on the target editor, the method further includes: Displaying version number identifiers corresponding to at least two to-be-selected versions of the target editor; The step of obtaining the target version of the target editor comprises: In response to a second trigger operation identified by the version number, a target version of the target editor is determined.

8. The method according to claim 7, characterized in that The method further comprises: Acquire the functional unit in the target project; Determining a recommended version corresponding to the target editor according to the functional unit; An indicator corresponding to the recommended version is displayed.

9. The method according to claim 6, characterized in that The step of obtaining the target version of the target editor comprises: Obtaining a first historical version of the target editor, where the first historical version is the editor version used by the target editor when the target editor last loaded the target project; The target version is determined according to the first historical version.

10. The method according to claim 1, characterized in that Before acquiring the engineering data, the method further includes: In response to a third operation instruction, starting an initial editor, wherein the third operation instruction is used to indicate the initial editor, or an editor version of the initial editor; Based on the initial editor, project data corresponding to the target project is generated.

11. An engineering loading device, characterized in that: include: An acquisition module, used to acquire project data, wherein the project data includes configuration information of a target project; A processing module, used for obtaining version information corresponding to the target project according to the configuration information of the target project, wherein the version information is used for representing a target version of a target editor capable of loading the target project; The loading module is used to call the target editor of the target version to load the target project based on the version information.

12. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the engineering loading method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the engineering loading method according to any one of claims 1 to 10 is implemented.