CN111241823A - Dependency configuration management method and device, electronic equipment and storage medium - Google Patents

Dependency configuration management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111241823A
CN111241823A CN202010014804.2A CN202010014804A CN111241823A CN 111241823 A CN111241823 A CN 111241823A CN 202010014804 A CN202010014804 A CN 202010014804A CN 111241823 A CN111241823 A CN 111241823A
Authority
CN
China
Prior art keywords
dependency
library
target character
management
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010014804.2A
Other languages
Chinese (zh)
Inventor
田野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010014804.2A priority Critical patent/CN111241823A/en
Publication of CN111241823A publication Critical patent/CN111241823A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure discloses a management method and device depending on configuration, electronic equipment and a storage medium. The method comprises the following steps: detecting a dependence management trigger event, and acquiring a target character which accords with a preset rule; and querying a preset basic library according to the target character, determining a dependency library having a dependency relationship with the target character, and performing dependency management based on the dependency library, so that the problem that errors are easily caused when the dependency relationship is edited manually is avoided, and the management efficiency of dependency configuration is improved.

Description

Dependency configuration management method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to computer technologies, and in particular, to a method and an apparatus for managing a dependency configuration, an electronic device, and a storage medium.
Background
Dependencies are also known as "logical relationships". In project management, a change to one of two activities (a leading activity and a following activity) will affect the relationship of the other activity. For example: one class uses the objects of the other class as parameters for operations; alternatively, a class has as its data member an object of another class; or one class sends a message to another class, etc., and there is a dependency between both classes having the above relationship. At present, no code prompt is provided when the dependency relationship is edited, if the code is manually input in a code editor to configure the dependency, the error rate is high, and the error can be found only after compiling is needed, so that the dependency configuration efficiency is influenced.
Disclosure of Invention
The present disclosure provides a method and an apparatus for managing a dependent configuration, an electronic device, and a storage medium, which can improve the management efficiency of the dependent configuration.
In a first aspect, an embodiment of the present disclosure provides a method for managing a dependency configuration, including:
detecting a dependence management trigger event, and acquiring a target character which accords with a preset rule;
and querying a preset basic library according to the target character, determining a dependency library having a dependency relationship with the target character, and performing dependency management based on the dependency library.
In a second aspect, an embodiment of the present disclosure further provides a device for managing a dependent configuration, where the device includes:
the character acquisition module is used for detecting a dependence management trigger event and acquiring a target character which accords with a preset rule;
and the dependency management module is used for querying a preset basic library according to the target character, determining a dependency library having a dependency relationship with the target character, and performing dependency management based on the dependency library.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a configuration dependent management method as provided by embodiments of the present disclosure.
In a fourth aspect, the disclosed embodiments also provide a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method for managing dependent configurations as provided by the disclosed embodiments.
The embodiment of the disclosure provides a management scheme of dependent configuration, which is to obtain a target character meeting a preset rule when a dependent management trigger event is detected; and querying a preset basic library according to the target character, determining a dependency library having a dependency relationship with the target character, and performing dependency management based on the dependency library, so that the problem that errors are easily caused by manually editing the dependency relationship is avoided, and the management efficiency of dependency configuration is improved.
Drawings
Fig. 1 is a flowchart of a method for managing a dependency configuration according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of another method for managing dependency configuration according to an embodiment of the present disclosure;
fig. 3 is a block diagram of a configuration-dependent management apparatus according to an embodiment of the present disclosure;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
Fig. 1 is a flowchart of a method for managing a dependent configuration according to an embodiment of the present disclosure, where the embodiment is applicable to a case of managing a dependent configuration, and the method may be executed by a management apparatus of a dependent configuration. As shown in fig. 1, the method includes:
and 110, detecting a dependence management trigger event, and acquiring a target character which accords with a preset rule.
There are many kinds of trigger conditions depending on the management trigger event, and the embodiments of the present disclosure are not particularly limited. For example, a dependency management trigger event is triggered if an input character in a code editor is detected to contain a target character associated with a dependency. Or, if the window switching operation in the code editor is detected, triggering a dependence management triggering event.
It should be noted that the target character is a code character that meets a preset rule. The preset rules are used to determine whether the input character is associated with a dependency. For example, the input characters are segmented by adopting an enhanced segmentation rule to obtain a segmentation result, and whether the input characters contain target characters strongly related to the dependency or not is judged according to the segmentation result. Optionally, the enhanced word segmentation rule may be to segment the input characters by using the characters strongly related to the dependency as an index.
Illustratively, when a user configures a dependency relationship through a code editor, an input character in the code editor is obtained. And performing word segmentation processing on the input characters to obtain word segmentation results of the input characters. And judging whether the input characters contain target characters related to the dependence or not according to the word segmentation result, if so, triggering a dependence management triggering event, and acquiring the target characters in the input characters. And if the word segmentation result contains target characters related to the dependency, continuing to execute the next steps of the disclosure, otherwise, considering that the input code is not related to the dependency, and not reminding the dependency code.
And 120, inquiring a preset basic library according to the target character, determining a dependency library having a dependency relationship with the target character, and performing dependency management based on the dependency library.
The preset base library includes a plurality of dependency libraries, which may be libraries maintained inside a company, libraries collected from the internet, or the like. For example, dependent libraries involved in past projects may be collected to enrich the base libraries. Or, collecting the dependency relationship by the Internet and storing the dependency relationship into the basic library. The dependent libraries in the base library are continually enriched in the manner described above. The dependency automatic collection function can also be started to automatically search the dependency involved in the project inside the company, so as to update or enrich the base library. Alternatively, the dependencies are periodically or periodically crawled by the internet, which in turn updates or enriches the base library based on the collected dependencies.
In the embodiment of the disclosure, the dependency management includes automatic reminding of the dependent code, searching or viewing the basic information of the dependent library by the dependent library, and the like. The basic information depending on the library includes, among others, the author of the library, the profile of the library, technical discussion around the library, the latest update time, the content of the update, in which items the application and the maintainer are applied, and the like.
Illustratively, a preset basic library is queried according to a target character, a dependency library having a dependency relationship with the target character is determined, and code information and source information of the dependency library are displayed in a preset display area. For example, the target character is used as a keyword to search a preset basic library, all the dependency libraries having dependency relationship with the target character are determined, a new window can be used for displaying all the dependency libraries, and a small icon can be used for indicating the source of the dependency libraries. Alternatively, the new window may be a floating window or a pop-up window. When the new window is a popup window, the display position of the popup window may be specified with the cursor position of the target character as a reference position. Optionally, the current page is divided into a plurality of preset display areas according to the number of the dependency libraries displayed on the preset single page, the dependency code of each dependency library is displayed in each preset display area, and the source information is displayed at the tail end of the line of the dependency code in the form of a small icon. It is understood that, when displaying the dependency library, the area identifier of the preset display area is associated with the displayed dependency library.
In an exemplary embodiment, after displaying the code information and the source information of the dependency library in a preset display area, the method further includes: the method comprises the steps of obtaining operation information of a user on a preset display area, determining an operated dependency library according to an area identifier of the preset display area, and displaying basic information of the dependency library so that the user can know basic information of version information, updating time or a library author and the like of the dependency library, and accordingly selecting a proper dependency library.
According to the technical scheme of the embodiment, when the dependence management trigger event is detected, the target character which accords with the preset rule is obtained; and querying a preset basic library according to the target character, determining a dependency library having a dependency relationship with the target character, and performing dependency management based on the dependency library, so that the problem that errors are easily caused by manually editing the dependency relationship is avoided, and the management efficiency of dependency configuration is improved.
Fig. 2 is a flowchart of another dependent configuration management method provided in an embodiment of the present disclosure, where the method includes:
step 210, detecting a window switching operation in the code editor, and triggering a dependence management triggering event.
It should be noted that there may be multiple windows in the code editor, each window has a program code, and when the program code in one window is edited, the window is the current window. And if the current window is detected to be switched from the window A to the window B, the window switching operation in the code editor is considered to be detected. Triggering a dependent management triggering event after detecting the window switching operation.
Step 220, obtaining a target character related to the dependency in the current window and the update time of the dependency library corresponding to the target character.
Illustratively, a target character in the program code configured with the dependency relationship in the current window and the related information of the dependency library depended by the target character are obtained. The related information may include the update time of the dependent library, the source information of the dependent library, or the basic information of the maintainer.
And step 230, querying a preset basic library according to the target character, and determining the latest updating time of a dependency library having a dependency relationship with the target character.
Illustratively, a preset basic library is queried by taking a target character as a keyword, and a dependency library having a dependency relationship with the target character is determined, so that basic information such as the latest update time, source information or maintainers of the dependency library in the preset basic library is obtained. Because the information in the preset basic library is continuously updated and enriched along with the use, the problem that the version is inconsistent due to the fact that the dependent library in the current preset basic library is the updated version and the dependent library used in the project is the version before the update is possible, and the stability of a product formed by the project is further influenced.
Step 240, judging whether the update time of the dependency base is earlier than the latest update time, if so, executing step 250, otherwise, executing step 260.
For example, the update time of the dependent bank is compared with the latest update time of the dependent bank in the preset base bank, and whether the update time of the dependent bank is earlier than the latest update time is determined according to the comparison result.
And step 250, displaying the outdated reminding information of the dependency library in a current window.
For example, the outdated reminding information may be displayed by adding an outdated identifier in a preset display area corresponding to the outdated dependency library. For example, the dependent code of the dependent library that is outdated is underlined to identify that the dependent library is outdated. Alternatively, the dependency code of the dependent library that is outdated is displayed in another color to identify that the dependent library is outdated. Alternatively, a set undertone is added to the dependent code of the dependent library that is outdated to identify that the dependent library is outdated, and so on.
Furthermore, after the outdated reminding information is output, the input operation of the user is obtained in real time so as to obtain the operation instruction for updating the dependency library by the user, and further, the outdated dependency library in the project is updated.
And step 260, acquiring the target dependent library of which the updating time of the dependent library is equal to the latest updating time, and determining the time difference between the latest updating time of the target dependent library and the current time in the preset basic library.
Illustratively, when the dependent library update time is equal to the latest update time, the dependent library having the dependent library update time equal to the latest update time is marked as the target dependent library. A time difference between the latest update time and the current time of the target dependent library in a preset base library is calculated to determine whether the target dependent library has been not updated for a long time based on the time difference.
Step 270, determine whether the time difference is greater than or equal to the set time threshold, if yes, execute step 280, otherwise, execute step 290.
For example, if the time difference between the latest update time and the current time is greater than or equal to the set time threshold, it is determined that the target dependent library has not been updated for a long time, it is basically assumed that no person has maintained the target dependent library, and it is determined that the target dependent library has been discarded.
And step 280, displaying the abandonment reminding information of the dependency library in a current window.
For example, the abandonment reminding information may be displayed by adding the abandonment identifier to a preset display area corresponding to the abandoned target dependency library. For example, a strikethrough is added to the dependent code of the obsolete target dependent library to identify that the target dependent library is obsolete. Alternatively, other colors are selected to display the dependency codes of the obsolete target dependency libraries to identify that the target dependency libraries are obsolete. Alternatively, other ground colors are added to the dependent code of the obsolete target dependent library to identify that the target dependent library is obsolete, and the like.
Step 290, determining that the dependency libraries corresponding to all the target characters in the current window are not outdated or obsolete.
Since the update time of the dependent libraries corresponding to all the target characters in the current window is equal to the latest update time, it can be determined that the dependent libraries corresponding to all the target characters in the current window are not outdated. Further, the time difference between the latest updating time of each dependent library in the current window in the preset basic library and the current time is calculated. And if all the time differences are smaller than the set time threshold, determining the target dependent library which is not discarded. The above steps are already described, and the target dependent library with the time difference larger than the set time threshold is determined to be the obsolete dependent library, which is not described herein again. Further, the following conclusions can be drawn:
and when the update time of the dependent libraries is equal to the latest update time and the time difference between the latest update time and the current time is less than a set time threshold, determining that the dependent libraries corresponding to all the target characters in the current window are not outdated or obsolete.
According to the technical scheme of the embodiment, the latest update time of the dependency library having the dependency relationship with the target character is determined by acquiring the target character related to the dependency in the current window and the update time of the dependency library corresponding to the target character; and determining whether the dependent library contained in the current window is outdated or obsolete or not based on the update time of the dependent library and the latest update time, and performing outdated or obsolete reminding to realize automatic reminding of the outdated or obsolete dependent library, thereby ensuring the stability of the product.
On the basis of the above technical solution, after performing dependency management based on the dependency library, the method further includes: collecting a dependency library from the Internet under the condition that a dependency relation collection function is started; updating the dependency libraries in the preset base library based on the newly collected dependency libraries. The technical scheme of the disclosure provides a dependency relationship collection function which can be selected by a user to be started or not. And under the condition that the dependency relation collection function is started, capturing the dependency base and the basic information of the dependency base from the Internet periodically or periodically. And then, storing the dependency base and the related basic information as a record of a preset basic base so as to continuously enrich the information in the preset basic base. The preset base library can be understood as a code base library and can be divided into a picture base library, an account base library, a sharing base library, a layout base library and the like based on functional dimensions. The basic information includes, among other things, library authors, library profiles, technical discussions surrounding the library, the latest update time, the content of the update, and maintainers. Optionally, the information in the preset base library is continuously enriched in a manner of maintaining information mapping of the dependency library inside the company.
On the basis of the above technical solution, after performing dependency management based on the dependency library, the method further includes:
when detecting that a preset shortcut key is triggered, displaying a search bar in a current window; and acquiring a search request in a search bar, and searching a preset basic library according to the search request, wherein the preset basic library comprises an internal dependency library and a dependency library collected from the Internet.
Fig. 3 is a block diagram of a dependency configuration management apparatus according to an embodiment of the present disclosure, where the apparatus may be released as a plug-in, and may improve efficiency of dependency configuration by executing a dependency configuration management method.
As shown in fig. 3, the apparatus includes:
the character acquisition module 310 is configured to detect a dependency management trigger event and acquire a target character that meets a preset rule;
the dependency management module 320 is configured to query a preset base library according to the target character, determine a dependency library having a dependency relationship with the target character, and perform dependency management based on the dependency library.
The management device dependent on configuration provided by the embodiment of the present disclosure is configured to implement a management method dependent on configuration, and the implementation principle and technical effect of the management device dependent on configuration are similar to those of the management method dependent on configuration, and are not described herein again.
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present disclosure. Referring now to FIG. 4, an electronic device 400 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as notebook computers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, electronic device 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 420 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)430 or a program loaded from storage device 410 into a Random Access Memory (RAM) 440. In the RAM440, various programs and data necessary for the operation of the electronic apparatus 400 are also stored. The processing device 420, the ROM430 and the RAM440 are connected to each other by a bus 450. An input/output (I/O) interface 460 is also connected to bus 450.
Generally, the following devices may be connected to the I/O interface 460: an input device 480 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, or a gyroscope; output devices 490 including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices 410 including, for example, magnetic tape, hard disk, etc.; the electronic device 400 may also include a communications device 470. The communication means 470 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 illustrates an electronic device 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program containing program code for performing a method of dependency configuration management provided by embodiments of the present disclosure. In such an embodiment, the computer program may be downloaded and installed from a network through the communication device 470, or installed from the storage device 410, or installed from the ROM 430. The computer program, when executed by the processing device 420, performs the above-described functions defined in the configuration-dependent management method of the embodiment of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the disclosed embodiments, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: detecting a dependence management trigger event, and acquiring a target character which accords with a preset rule; and querying a preset basic library according to the target character, determining a dependency library having a dependency relationship with the target character, and performing dependency management based on the dependency library.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above 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 a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The 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, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a dependency configuration management method, before detecting a dependency management trigger event, further comprising:
acquiring input characters, and determining word segmentation results of the input characters;
judging whether the input characters contain target characters related to dependence or not according to the word segmentation result;
if so, triggering a dependent management triggering event.
According to one or more embodiments of the present disclosure, a method for managing dependency configuration is provided, where a preset base library is queried according to a target character, a dependency library having a dependency relationship with the target character is determined, and dependency management is performed based on the dependency library, including:
inquiring a preset basic library according to the target character, and determining a dependency library having a dependency relationship with the target character;
and displaying the code information and the source information of the dependency library in a preset display area.
According to one or more embodiments of the present disclosure, there is provided a dependency configuration management method, after displaying code information and source information of a dependency library in a preset display area, further including:
the method comprises the steps of obtaining operation information of a user on a preset display area, determining an operated dependency library according to an area identifier of the preset display area, and displaying basic information of the dependency library, wherein the basic information comprises a library author, a library brief introduction, technical discussions surrounding the library, latest updating time, updating content and maintainers.
According to one or more embodiments of the present disclosure, there is provided a dependency configuration management method, before detecting a dependency management trigger event, further comprising:
a window switching operation in the code editor is detected, triggering a dependency management trigger event.
According to one or more embodiments of the present disclosure, a configuration-dependent management method is provided, for acquiring a target character that meets a preset rule, including:
and acquiring a target character related to the dependency in the current window and the updating time of the dependency library corresponding to the target character.
According to one or more embodiments of the present disclosure, a method for managing dependency configuration is provided, where a preset base library is queried according to a target character, a dependency library having a dependency relationship with the target character is determined, and dependency management is performed based on the dependency library, including:
inquiring a preset basic library according to the target character, and determining the latest updating time of a dependency library having a dependency relationship with the target character;
and if the update time of the dependent library is earlier than the latest update time, displaying outdated reminding information of the dependent library in a current window.
According to one or more embodiments of the present disclosure, there is provided a dependency configuration management method, after performing dependency management based on the dependency library, further including:
collecting a dependency library from the Internet under the condition that a dependency relation collection function is started;
updating the dependency libraries in the preset base library based on the newly collected dependency libraries.
According to one or more embodiments of the present disclosure, there is provided a dependency configuration management method, after performing dependency management based on the dependency library, further including:
when detecting that a preset shortcut key is triggered, displaying a search bar in a current window;
and acquiring a search request in a search bar, and searching a preset basic library according to the search request, wherein the preset basic library comprises an internal dependency library and a dependency library collected from the Internet.
According to one or more embodiments of the present disclosure, there is provided a configuration-dependent management apparatus, the apparatus further including:
the first trigger event module is used for acquiring input characters and determining word segmentation results of the input characters before a dependence management trigger event is detected; judging whether the input characters contain target characters related to dependence or not according to the word segmentation result; if so, triggering a dependent management triggering event.
According to one or more embodiments of the present disclosure, there is provided a configuration-dependent management apparatus, wherein,
the dependency management module is specifically used for querying a preset basic library according to the target character and determining a dependency library having a dependency relationship with the target character; and displaying the code information and the source information of the dependency library in a preset display area.
According to one or more embodiments of the present disclosure, there is provided a configuration-dependent management apparatus, the apparatus further including:
the information display module is used for acquiring operation information of a user on a preset display area after code information and source information of the dependency library are displayed in the preset display area, determining the operated dependency library according to an area identifier of the preset display area, and displaying basic information of the dependency library, wherein the basic information comprises a library author, a library brief description, technical discussion around the library, latest update time, update content and a maintainer.
According to one or more embodiments of the present disclosure, there is provided a configuration-dependent management apparatus, the apparatus further including:
and the second trigger event module is used for detecting window switching operation in the code editor before detecting the dependence management trigger event and triggering the dependence management trigger event.
According to one or more embodiments of the present disclosure, there is provided a configuration-dependent management apparatus, wherein,
and the character acquisition module is specifically used for acquiring a target character related to dependency in the current window and the dependency library updating time corresponding to the target character.
According to one or more embodiments of the present disclosure, there is provided a configuration-dependent management apparatus, wherein,
the dependency management module is specifically used for querying a preset basic library according to the target character and determining the latest updating time of a dependency library having a dependency relationship with the target character;
and if the update time of the dependent library is earlier than the latest update time, displaying outdated reminding information of the dependent library in a current window.
According to one or more embodiments of the present disclosure, there is provided a configuration-dependent management apparatus, the apparatus further including:
the dependency library updating module is used for collecting the dependency library from the Internet under the condition that a dependency relationship collecting function is started after dependency management is carried out on the basis of the dependency library; updating the dependency libraries in the preset base library based on the newly collected dependency libraries.
According to one or more embodiments of the present disclosure, there is provided a configuration-dependent management apparatus, the apparatus further including:
the dependent library searching module is used for displaying a searching bar in a current window when detecting that a preset shortcut key is triggered; and acquiring a search request in a search bar, and searching a preset basic library according to the search request, wherein the preset basic library comprises an internal dependency library and a dependency library collected from the Internet.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (12)

1. A method for configuration dependent management, comprising:
detecting a dependence management trigger event, and acquiring a target character which accords with a preset rule;
and querying a preset basic library according to the target character, determining a dependency library having a dependency relationship with the target character, and performing dependency management based on the dependency library.
2. The method of claim 1, prior to detecting a dependency management trigger event, further comprising:
acquiring input characters, and determining word segmentation results of the input characters;
judging whether the input characters contain target characters related to dependence or not according to the word segmentation result;
if so, triggering a dependent management triggering event.
3. The method of claim 1, wherein a preset base library is queried according to the target character, a dependency library having a dependency relationship with the target character is determined, and dependency management is performed based on the dependency library, including:
inquiring a preset basic library according to the target character, and determining a dependency library having a dependency relationship with the target character;
and displaying the code information and the source information of the dependency library in a preset display area.
4. The method of claim 3, further comprising, after displaying the code information and the source information of the dependency library in a preset display area:
the method comprises the steps of obtaining operation information of a user on a preset display area, determining an operated dependency library according to an area identifier of the preset display area, and displaying basic information of the dependency library, wherein the basic information comprises a library author, a library brief introduction, technical discussions surrounding the library, latest updating time, updating content and maintainers.
5. The method of claim 1, prior to detecting a dependency management trigger event, further comprising:
a window switching operation in the code editor is detected, triggering a dependency management trigger event.
6. The method of claim 5, wherein obtaining the target character according to the preset rule comprises:
and acquiring a target character related to the dependency in the current window and the updating time of the dependency library corresponding to the target character.
7. The method according to claim 6, wherein a preset base library is queried according to the target character, a dependency library having a dependency relationship with the target character is determined, and dependency management is performed based on the dependency library, including:
inquiring a preset basic library according to the target character, and determining the latest updating time of a dependency library having a dependency relationship with the target character;
and if the update time of the dependent library is earlier than the latest update time, displaying outdated reminding information of the dependent library in a current window.
8. The method of claim 1, after performing dependency management based on the dependency library, further comprising:
collecting a dependency library from the Internet under the condition that a dependency relation collection function is started;
updating the dependency libraries in the preset base library based on the newly collected dependency libraries.
9. The method of claim 1, after performing dependency management based on the dependency library, further comprising:
when detecting that a preset shortcut key is triggered, displaying a search bar in a current window;
and acquiring a search request in a search bar, and searching a preset basic library according to the search request, wherein the preset basic library comprises an internal dependency library and a dependency library collected from the Internet.
10. A configuration dependent management apparatus, comprising:
the character acquisition module is used for detecting a dependence management trigger event and acquiring a target character which accords with a preset rule;
and the dependency management module is used for querying a preset basic library according to the target character, determining a dependency library having a dependency relationship with the target character, and performing dependency management based on the dependency library.
11. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more programs, cause the one or more processors to implement a method of dependency configuration management as claimed in any one of claims 1 to 9.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of configuration dependent management according to any one of claims 1 to 9.
CN202010014804.2A 2020-01-07 2020-01-07 Dependency configuration management method and device, electronic equipment and storage medium Pending CN111241823A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010014804.2A CN111241823A (en) 2020-01-07 2020-01-07 Dependency configuration management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010014804.2A CN111241823A (en) 2020-01-07 2020-01-07 Dependency configuration management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111241823A true CN111241823A (en) 2020-06-05

Family

ID=70872450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010014804.2A Pending CN111241823A (en) 2020-01-07 2020-01-07 Dependency configuration management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111241823A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736896A (en) * 2020-06-30 2020-10-02 中国工商银行股份有限公司 Code processing method, device, electronic equipment and medium
CN112214408A (en) * 2020-10-12 2021-01-12 北京字节跳动网络技术有限公司 Dependency conflict detection method and device, electronic equipment and computer readable medium
CN112416306A (en) * 2020-11-23 2021-02-26 平安普惠企业管理有限公司 Multi-application dependency tree generation method and device, electronic equipment and computer medium
CN113407226A (en) * 2021-06-29 2021-09-17 中电金信软件有限公司 Management method and device of component information and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744898A (en) * 2013-12-25 2014-04-23 浪潮电子信息产业股份有限公司 Dependent library automatic processing method of MIC (Many Integrated Core) native mode program
CN108614707A (en) * 2018-04-27 2018-10-02 深圳市腾讯网络信息技术有限公司 Static code inspection method, device, storage medium and computer equipment
CN109101355A (en) * 2018-06-26 2018-12-28 天津飞腾信息技术有限公司 A kind of processor debugging method for extracting wrong presence feature test and excitation
CN109284125A (en) * 2018-08-14 2019-01-29 中国平安人寿保险股份有限公司 Dependence packet configuration method, device, equipment and medium in big data platform
US20190188006A1 (en) * 2017-12-20 2019-06-20 Sapse Adapter configuration
CN110134399A (en) * 2019-03-15 2019-08-16 北京车和家信息技术有限公司 Compilation Method and device
CN110286934A (en) * 2019-06-30 2019-09-27 潍柴动力股份有限公司 A kind of inspection method and device of static code
EP3557443A1 (en) * 2018-04-18 2019-10-23 Palantir Technologies Inc. Resource dependency system and graphical user interface
CN110554965A (en) * 2019-09-05 2019-12-10 腾讯科技(深圳)有限公司 automated fuzz testing method, related equipment and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744898A (en) * 2013-12-25 2014-04-23 浪潮电子信息产业股份有限公司 Dependent library automatic processing method of MIC (Many Integrated Core) native mode program
US20190188006A1 (en) * 2017-12-20 2019-06-20 Sapse Adapter configuration
EP3557443A1 (en) * 2018-04-18 2019-10-23 Palantir Technologies Inc. Resource dependency system and graphical user interface
CN108614707A (en) * 2018-04-27 2018-10-02 深圳市腾讯网络信息技术有限公司 Static code inspection method, device, storage medium and computer equipment
CN109101355A (en) * 2018-06-26 2018-12-28 天津飞腾信息技术有限公司 A kind of processor debugging method for extracting wrong presence feature test and excitation
CN109284125A (en) * 2018-08-14 2019-01-29 中国平安人寿保险股份有限公司 Dependence packet configuration method, device, equipment and medium in big data platform
CN110134399A (en) * 2019-03-15 2019-08-16 北京车和家信息技术有限公司 Compilation Method and device
CN110286934A (en) * 2019-06-30 2019-09-27 潍柴动力股份有限公司 A kind of inspection method and device of static code
CN110554965A (en) * 2019-09-05 2019-12-10 腾讯科技(深圳)有限公司 automated fuzz testing method, related equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
倪燕;周佳庆;: "自动搜索库调用系统的设计与实现" *
倪燕;周佳庆;: "自动搜索库调用系统的设计与实现", 电脑与电信, no. 07 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736896A (en) * 2020-06-30 2020-10-02 中国工商银行股份有限公司 Code processing method, device, electronic equipment and medium
CN111736896B (en) * 2020-06-30 2024-03-12 中国工商银行股份有限公司 Code processing method, device, electronic equipment and medium
CN112214408A (en) * 2020-10-12 2021-01-12 北京字节跳动网络技术有限公司 Dependency conflict detection method and device, electronic equipment and computer readable medium
CN112214408B (en) * 2020-10-12 2024-05-28 抖音视界有限公司 Dependency conflict detection method, dependency conflict detection device, electronic equipment and computer readable medium
CN112416306A (en) * 2020-11-23 2021-02-26 平安普惠企业管理有限公司 Multi-application dependency tree generation method and device, electronic equipment and computer medium
CN113407226A (en) * 2021-06-29 2021-09-17 中电金信软件有限公司 Management method and device of component information and electronic equipment

Similar Documents

Publication Publication Date Title
CN109634598B (en) Page display method, device, equipment and storage medium
CN112528595B (en) Document processing method and device and electronic equipment
CN111241823A (en) Dependency configuration management method and device, electronic equipment and storage medium
CN111400625B (en) Page processing method and device, electronic equipment and computer readable storage medium
CN110781658B (en) Resume analysis method, resume analysis device, electronic equipment and storage medium
CN113032172B (en) Abnormality detection method and device and electronic equipment
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN110825481A (en) Method and device for displaying page information corresponding to page tag and electronic equipment
CN111552640A (en) Code detection method, device, equipment and storage medium
CN111124541B (en) Configuration file generation method, device, equipment and medium
CN109902726B (en) Resume information processing method and device
CN114995691B (en) Document processing method, device, equipment and medium
CN110717126A (en) Page browsing method and device, electronic equipment and computer readable storage medium
CN113111648B (en) Information processing method and device, terminal and storage medium
CN111552620B (en) Data acquisition method, device, terminal and storage medium
CN111353296B (en) Article processing method, apparatus, electronic device and computer readable storage medium
CN109558408B (en) Method and device for updating list, electronic equipment and readable storage medium
CN113590985B (en) Page jump configuration method and device, electronic equipment and computer readable medium
CN113609309B (en) Knowledge graph construction method and device, storage medium and electronic equipment
CN111027281B (en) Word segmentation method, device, equipment and storage medium
CN112307723B (en) Method and device for generating code document and electronic equipment
CN111460769B (en) Article issuing method and device, storage medium and electronic equipment
CN114969302A (en) Label searching method and device
CN114997120B (en) Method, device, terminal and storage medium for generating document tag
CN114297157B (en) File processing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination