Only one AsyncAnnotationBeanPostProcessor may exist within the context.

本文探讨了spring-task配置文件重复导入导致的问题及其解决方法。分析了可能的原因,包括xml文件重复声明及项目间的循环依赖,并提供了排查和修复的步骤。
Only one AsyncAnnotationBeanPostProcessor may exist within the context.只允许一个spring-task存在上下文中,
Failed to import bean definitions from URL location [classpath*:/config/spring-task.xml],导入spring-task文件失败
原因1:spring_task多次导入到当前项目中,删除下面重复导入的xml文件
  <import resource="classpath:spring-task.xml" />
     <import resource="classpath:spring-task.xml" />
     <import resource="classpath:testContext-elitecurrentproduct.xml" />

原因2:idea中存在项目循环依赖,因为你依赖的项目已经导入了spring-task.xml文件
解决方案:analyze--->analyze module dependecies 查看模具依赖,删除循环的依赖,不知道哪些是循环依赖就打开原来备份的项目,对照着查看那些是循环的,所以程序员备份项目是个好习惯,或者重新从svn中down下来查看
Example Packet Analyzer Commands This section is applicable for the following families of devices: a Aldrin a Aldrin2 a Gen6 devices Packet Analyzer commands require switching to Packet Analyzer context (within Debug context) using the packet-analyzer command. Use the exit command to exit any of the Packet Analyzer sub-contexts. To use the Packet Analyzer commands, the debugged device iDebug XML file must be located in the appropriate location. XML files are under cpss/tools/admin/iDebug. Copy them to either of the following locations, depending on the desired platform: For Linux target devices (black mode), to /usr/bin For Linux simulation, to ~/embeddedFs/CHIP_SIMULATION_03_394/ For Windows simulation, to C:\Users\<user-name>\AppData\Local\Temp\embeddedFs\CHIP_SIMULATION_03_394\ Packet Analyzer configuration and operation is preserved even when outside the Packet Analyzer context, enabling re-entrance for sampled data viewing. See Lua CLI Support section in CPSS User Guide for more details. clear Use the clear command to reset the sampling counter which counts the number of samplings in each Stage. Using this command ensures accurate count results between separate samplings. Syntax clear Parameters None Command Context Packet-Analyzer context Example Console(debug.0-pa-1)# clear configure pipeline Use the configure pipeline command to configure a Packet Analyzer to operate in pipeline mode. Using this command transitions to a sub-context for configuring pipeline mode parameters. Syntax configure pipeline Parameters None Command Context Packet-Analyzer context Example To configure Pipeline mode: Console(debug)# packet-analyzer manager 1 device 0 Console(debug.pa-1)# configure pipeline Console(debug.0-pa-1-pipeline)# configure pipeline packet-trace Use the configure pipeline packet-trace command to configure a Packet Analyzer to operate in pipeline mode and enable packet-trace option. Using this command transitions to a sub-context for configuring pipeline mode parameters. See explanation on packet trace usage in Packet Analyzer section CPSS User Guide. This command is not available for Aldrin and Aldrin2. Syntax configure pipeline packet-trace Parameters None Command Context Packet-Analyzer context Example To configure Pipeline mode: Console(debug)# packet-analyzer manager 1 device 0 Console(debug.pa-1)# configure pipeline packet-trace Console(debug.0-pa-1-pipeline-packet-trace)# configure stage Use the configure stage command to set the Stage to use in stage mode. Using this command transitions to a sub-context for configuring stage mode parameters of the specified stage, as demonstrated by the prompt containing the stage name. When trying to configure an inactive stage muxed with a currently active one, an error message is issued naming the currently active stage. Following deactivation of the latter, reuse this command to activate the desired stage. Use the no form of the configure stage command to stop sampling the specified stage, as well as deactivating a stage prior to activating any of its muxed stages. Syntax configure stage <stageName> no configure stage <stageName> Parameters stageName - Stage name; replacing stageName with a ‘?’ yields a list of stage names available for configuration. Stage name may be either a pre-defined or a user-defined Stage Command Context Packet-Analyzer context Example To obtain a list of Stage names to configure: Console(debug.0-pa-1)# configure stage ? Packet-Analyzer stage bridge Pre Bridge ingress stage e-filter Pre Filter egress stage e-oam Pre OAM egress stage e-pcl Pre PCL egress stage e-policer Pre Policer egress stage equeue Pre e-Queue ingress stage header-alt Pre Header Alteration egress stage i-oam Pre OAM ingress stage i-pcl Pre PCL0,1,2 ingress tages i-policer Pre Policer ingress stage mac Pre MAC egress stage mll Pre MLL ingress stage pha Pre programmable Header Alteration egress stage (falcon only) replication Pre replication egress stage (falcon only) router Pre Router ingress stage timestamp Pre Timestamp egress stage tti Pre TTI0,1 ingress stages tx-queue Pre tx-Queue egress stage <CR> Select stage Console(debug.0-pa-1)# To configure the Stage named i-pcl: Console(debug.pa-1)# configure stage i-pcl Console(debug.0-pa-1-i-pcl)# disable Use the disable command to cease sampling before viewing the sampling results. Syntax disable Parameters None Command Context Packet Analyzer context Example Sample the Pipeline for descriptors that came for port 5: Console(debug.0-pa-1)# configure pipeleine Console(debug-pa-1-pipeline)# match local_dev_src_port 5 Console(debug-pa-1-pipeline)# exit Console(debug-pa-1)# enable pipeline Run traffic, and then: Console(debug-pa-1)# disable enable pipeline Use the enable pipeline command to apply the configuration set by the configure pipeline command to the device hardware, and begin sampling in pipeline mode. Syntax enable pipeline Parameters None Command Context Packet Analyzer context Example Sample the Pipeline for descriptors Ingressing through port 5: Console(debug.0-pa-1)# configure pipeleine Console(debug-pa-1-pipeline)# match local_dev_src_port 5 Console(debug-pa-1-pipeline)# exit Console(debug-pa-1)# enable pipeline enable stage Use the enable stage command to apply the configuration set by the configure stage command(s) to the device hardware, and begin sampling in stage mode. Syntax enable stage Parameters None Command Context Packet Analyzer context Example Sample Stage i-pcl for descriptors with source port 5 and e-pcl for descriptors with egress port 6: Console(debug.0-pa-1)# configure stage i-pcl Console(debug-pa-1-i-pcl)# match local_dev_src_port 5 Console(debug-pa-1-i-pcl)# exit Console(debug.0-pa-1)# configure stage e-pcl Console(debug-pa-1-i-pcl)# match trg_phy_port 6 Console(debug-pa-1-i-pcl)# exit Console(debug-pa-1)# enable stage Stages must be configured in order to be enabled in Stage mode inverse Use the inverse command to sample descriptors not matching all configured filters in Pipeline or Stage mode. Due to this command requiring none of the filters is matched (AND between all NOTs), use it sparingly and carefully. This command affects sampling at all Stages when in Pipeline mode, and at the currently configured Stage when in Stage mode. Syntax inverse Parameters None Command Context Pipeline Configuration and Stage Configuration contexts Example To match in Pipeline mode on ingress port number other than 5: Console(debug.0-pa-1)# configure pipeleine Console(debug-pa-1-pipeline)# match local_dev_src_port 5 Console(debug-pa-1-pipeline)# inverse Console(debug-pa-1-pipeline)# match Use the match command to filter descriptors with a specific field value when configuring Pipeline or a Stage for sampling. This allows limiting sampling to descriptors with specific values in specific fields. A mask can be used in conjunction with the value, when only a field segment is of interest, such as domain within and IP address. In Pipeline configuration context, the field must exist in at least one of the stages within the Pipeline. In Stage configuration context, the field must exist in the configured Stage. The filtered fields are marked for display in the show pipeline or show stage commands Syntax match <fieldName> <fieldValue> [mask <maskValue>] Parameters fieldName - Name of field within one of the Pipeline stages or in the configured Stage fieldValue - Value of field to match maskValue - Mask limiting matching to a field value segment; for example, in an IPV4 field, a 255.255.255.0 mask limits matching to the domain; 0 disable filtering according to field value, meaning this field is of interest regardless of its value User Guidelines Field and mask values are specified in terms of the field type: Numeric values - A decimal number Hex values - Hex number preceded by a 0x prefix IP address - IP address formatted as xxx.xxx.xxx.xxx or xxx:xxx:xxx:xxx:xxx MAC Address - MAC address formatted as xx:xx:xx:xx:xx:xx Replacing field value with ?, yields a list of possible field values. Setting a 0 (0x0) mask merely marks the field for display in the show command. Command Context Pipeline configuration and Stage configuration contexts Examples To sample ingress port number 5 in Pipeline mode: Console(debug.0-pa-1)# configure pipeleine Console(debug-pa-1-pipeline)# match local_dev_src_port 5 Console(debug-pa-1-pipeline)# To sample a domain value of 192.168.1 in an IPv4 destination address while in the ‘router’ Stage: Console(debug.0-pa-1)# configure stage router Console(debug-pa-1-router)# match ipv4_dip 192.168.1.1 mask 255.255.255.0 Console(debug-pa-1-router)# To mark local_dev_src_port field for the show command only; no match: Console(debug.0-pa-1)# configure pipeleine Console(debug-pa-1-pipeline)# match local_dev_src_port 0 mask 0 Console(debug-pa-1-pipeline)# packet-analyzer Use the packet-analyzer Debug context command to create a Packet Analyzer Manager for the specified device, and enter Packet Analyzer context. If the specified Manager ID is already in use, switches to this existing manager. It is possible to create several concurrent managers with varying configurations, and use them at separate times. Syntax packet-analyzer [manager <managerId>] device <devId> Parameters managerId - Packet Analyzer manager ID; when omitted, a manager with ID = 1 is created, or if already exists, switches to its working context devId – Device ID Command Context Debug context Example Console(debug)# packet-analyzer manager 1 device 0 Console(debug.pa-1)# sampling-mode Use the sampling-mode command to configure Packet Analyzer to sample the first or last of the descriptors matching the sampling criteria. Regardless of the sampling mode, the hit counter continues counting until sampling is disabled. If this command is not used, last-match sampling mode is used Syntax sampling-mode {first-match | last-match} Parameters first-match - Sample first descriptor matching sampling criteria last-match - Continue sampling and matching descriptor for sampling criteria Command Context Pipeline Configuration and Stage Configuration contexts Example To sample the first descriptor in all Pipeline Stages: Console(debug.0-pa-1)# configure pipeleine Console(debug-pa-1-pipeline)# sampling-mode first-match Console(debug-pa-1-pipeline)# To sample the first descriptor in i-pcl Stage, and the last descriptor in the router Stage: Console(debug.0-pa-1)# configure stage i-pcl Console(debug-pa-1-i-pcl)# sampling-mode first-match Console(debug-pa-1-i-pcl)# exit Console(debug.0-pa-1)# configure stage router Console(debug-pa-1-router)# sampling-mode last-match Console(debug-pa-1-router)# exit Console(debug-pa-1)# show pipeline Use the show pipeline command to display the sampled pipeline-mode data. The displayed data includes, in this order: List of Pipeline Stages, and number of matches found in each List of fields used in filters (configured using the match command) Sampling mode – First/last, or inverse List of all stages and sampled values, if any (no value signifies no found match) Note: Field list depends on command parameter Syntax show pipeline [field {<fieldName> | all | dump}] Parameters fieldName - Field to display all - Display values of all defined fields (both pre and user-defined) dump - Display values of all fields - predefined, user-defined, and unnamed - in all Stages Command Context Packet Analyzer context Example Console(debug.pa-1)# configure pipeline Console(debug.0-pa-1-pipeline)# match local_dev_src_port 1 Console(debug.0-pa-1-pipeline)# exit Console(debug.pa-1)# enable pipeline Console(debug.pa-1)# disable Console(debug.pa-1)# show pipeline Hits: tti : 165719975 i-pcl : 182160528 bridge : 181962972 router : 179923992 i-oam : 179307633 i-policer : 178133064 equeue : 174874642 e-filter : 173543688 header-alt : 0 e-pcl : 0 e-policer : 0 replication : 0 mac : 666079946 Match : local_dev_src_port = 1 mask = 0x3FF Sampled data (first-match): Stage: tti local_dev_src_port = 1 Stage: i-pcl local_dev_src_port = 1 Stage: bridge local_dev_src_port = 1 Stage: router local_dev_src_port = 1 Stage: i-oam local_dev_src_port = 1 Stage: i-policer local_dev_src_port = 1 Stage: equeue local_dev_src_port = 1 Stage: e-filter local_dev_src_port = 1 Stage: header-alt NONE Stage: e-pcl NONE Stage: e-policer NONE Stage: replication NONE Stage: mac Console(debug.pa-1)# show stage Use the show stage command to display the sampled stage-mode data. The displayed data per stage includes, in this order: Stage name, and number of matches found in it List of fields used in Stage filters (configured using the match command) Sampling mode – first/last, inverse List of fields and sampled values, if any (no value signifies no found match) Syntax show stage <stageName> [field {<fieldName> | all | dump}] Parameters stageName - Name of Stage to display field - Field to display. When omitted, all matched fields are displayed fieldName - Field to display all - Display values of all defined fields (both pre and user-defined) dump - Display values of all fields - predefined, user-defined, and unnamed - in the specified Stage Command Context Packet Analyzer context Example Console(debug.pa-1)# configure stage bridge Console(debug.0-pa-1-bridge)# Console(debug.0-pa-1-bridge)# match mac_da 00:00:00:00:00:00 Console(debug.0-pa-1-bridge)# exit Console(debug.pa-1)# enable stage Console(debug.pa-1)# disable Console(debug.pa-1)# show stage bridge field mac_da Stage: bridge Hits: 0 Match : mac_da = 00:00:00:00:00:00 mask = 0xFF:FF:FF:FF:FF:FF Sampled data (last-match): NONE Console(debug.pa-1)# show user-defined stage Use the show user-defined stage Exec context command to display the list of user defined Stages. Syntax show user-defined stage [all] Parameters all - Display information, including Stage index, on all Stages, including pre-defined ones. When omitted, display only user-defined Stages Command Context Packet Analyzer context Example Console(debug.pa-1)# show user-defined stage Stage Name | Interface | Instance | Leg | Status | Index ---------------- --------------- ------------- ------- -------- -------- stage1 i22 s32 1 invalid 0 stage2 i10 s123 2 valid 1 Status may be one of: invalid – Stage is inactive valid – Stage is active To activate a Stage, use the configure stage command. user-defined field Use the user-defined field Packet Analyzer context command to add a field to the list of defined fields. Use the no form of this command to delete the user-defined field definition. Number of UDFs is limited to 64 Syntax user-defined field <udfName> field-id <udfId> no user-defined field <udfName> Parameters udfName - Name to assign to new user-defined field udfId - Field ID in system, as supplied by a Marvell engineer Command Context Packet Analyzer context Example Console(debug-pa-1-router)#user-defied field myField field-id f50 Console(debug.0-pa-1)# no user-defined field myField user-defined stage Use the user-defined stage command to add a Stage to the list of defined Stages. Use the no form of this command to delete the user-defined Stage definition. Number of UDSes is limited to 20 New stages require activation before their usage, and when muxed with another stage, require that the currently muxed stage is deactivated, and only then can they be activated: Utilize the configure pipeline command to activate a new stage, or if muxed, to obtain the name of the currently active muxed stage Use the no form of the configure pipeline command to deactivate the muxed stage, and then re-use configure pipeline to activate the new stage Syntax user-defined stage <udsName> interface <interfaceId> instance <instanceId> leg <instanceLeg> no user-defined stage <udsName> Parameters udsName - Name to assign to new user-defined Stage interfaceId - i-Debug interface ID, as supplied by a Marvell engineer instanceId - ID of i-Debug instance connected the Interface, as supplied by a Marvell engineer instanceLeg - Leg of Interface in Instance, as supplied by a Marvell engineer Command Context Packet Analyzer context Example Console(debug-pa-1-router)#user-defined stage MyStage interface i22 instance s32 leg 0 Console(debug.0-pa-1)# no user-defined stage <udsName> PHY Commands phy 10G register read Use the phy 10G register read Debug context commands to read the specified SMI register and 10G PHY device. Syntax phy 10g register read device {all | <devNum>} port <PortNum> register <reg> phyDev <phyDev_Num> phyID <phyID_Num> Parameters all |devNum – All devices or a specific device PortNum – Port number reg – Register to read, specified as an 16-bit unsigned integer phyDev_Num – PHY device number; range: 0-31 phyID_Num – PHY ID 翻译并解释
最新发布
10-18
Language support for Java ™ for Visual Studio Code Visual Studio Marketplace Installs Join the chat at https://gitter.im/redhat-developer/vscode-java Build Status License Provides Java ™ language support via Eclipse ™ JDT Language Server, which utilizes Eclipse ™ JDT, M2Eclipse and Buildship. Quick Start Install the Extension On the following platforms, the extension should activate without any setup : win32-x64, darwin-x64, darwin-arm64, linux-x64, linux-arm64. If on another platform, or using the "universal" version, you can set a Java Development Kit. It must be Java 21 or above. Optionally, download and install a Java Development Kit for your project (Java 1.8 or above is supported). See Project JDKs for more details Extension is activated when you first access a Java file Recognizes projects with Maven or Gradle build files in the directory hierarchy. Features screencast Supports code from Java 1.8 to Java 24 Maven pom.xml project support Gradle project support (with experimental Android project import support) Standalone Java files support As-you-type reporting of parsing and compilation errors Code completion Code/Source actions / Refactoring Javadoc hovers Organize imports triggered manually or on save when pasting code into a java file with Ctrl+Shift+v (Cmd+Shift+v on Mac). Type search Code outline Code folding Code navigation Code lens (references/implementations) Highlights Code formatting (on-type/selection/file) Code snippets Annotation processing support (automatic for Maven projects) Semantic selection Diagnostic tags Call Hierarchy Type Hierarchy To launch and debug your Java programs, it's recommended you install Java Debug Extension for Visual Studio Code. See the changelog for the latest release. You might also find useful information in the project Wiki. Setting the JDK Java Tooling JDK Now that Java extension will publish platform specific versions, it will embed a JRE for supported platforms such as win32-x64, linux-x64, linux-arm64, darwin-x64, darwin-arm64. The embedded JRE is used to launch the Language Server for Java. Users are only responsible for configuring Project JDKs to compile your Java projects. The following part is only kept for the universal version without embedded JRE. The tooling JDK will be used to launch the Language Server for Java. And by default, will also be used to compile your projects. Java 21 is the minimum required version. The path to the Java Development Kit can be specified by the java.jdt.ls.java.home setting in VS Code settings (workspace/user settings). If not specified, it is searched in the following order until a JDK meets current minimum requirement. the JDK_HOME environment variable the JAVA_HOME environment variable on the current system path Project JDKs If you need to compile your projects against a different JDK version, it's recommended you configure the java.configuration.runtimes property in your user settings, eg: "java.configuration.runtimes": [ { "name": "JavaSE-1.8", "path": "/path/to/jdk-8", }, { "name": "JavaSE-11", "path": "/path/to/jdk-11", }, { "name": "JavaSE-24", "path": "/path/to/jdk-24", "default": true }, ] The default runtime will be used when you open standalone Java files. Available commands The following commands are available: Switch to Standard Mode: switches the Java Language Server to Standard mode. This command is only available when the Java Language Server is in LightWeight mode. Java: Reload Projects (Shift+Alt+U): It forces project configuration / classpath updates (eg. dependency changes or Java compilation level), according to the project build descriptor. Java: Import Java Projects into Workspace: detects and imports all the Java projects into the Java Language Server workspace. Java: Open Java Language Server Log File: opens the Java Language Server log file, useful for troubleshooting problems. Java: Open Java Extension Log File: opens the Java extension log file, useful for troubleshooting problems. Java: Open All Log Files: opens both the Java Language Server log file and the Java extension log file. Java: Force Java Compilation (Shift+Alt+B): manually triggers compilation of the workspace. Java: Rebuild Projects: manually triggers a full build of the selected projects. Java: Open Java Formatter Settings: opens the Eclipse formatter settings. Creates a new settings file if none exists. Java: Clean Java Language Server Workspace: cleans the Java language server workspace. Java: Attach Source: attaches a jar/zip source to the currently opened binary class file. This command is only available in the editor context menu. Java: Add Folder to Java Source Path: adds the selected folder to its project source path. This command is only available in the file explorer context menu and only works for unmanaged folders. Java: Remove Folder from Java Source Path: removes the selected folder from its project source path. This command is only available in the file explorer context menu and only works for unmanaged folders. Java: List All Java Source Paths: lists all the Java source paths recognized by the Java Language Server workspace. Java: Show Build Job Status: shows the Java Language Server job status in Visual Studio Code terminal. Java: Go to Super Implementation: goes to the super implementation for the current selected symbol in editor. Java: Restart Java Language Server: restarts the Java language server. Supported VS Code settings The following settings are supported: java.home : Deprecated, please use 'java.jdt.ls.java.home' instead. Absolute path to JDK home folder used to launch the Java Language Server. Requires VS Code restart. java.jdt.ls.lombokSupport.enabled: Whether to enable lombok support. Defaults to true. java.jdt.ls.vmargs : Extra VM arguments used to launch the Java Language Server. Requires VS Code restart. java.errors.incompleteClasspath.severity : Specifies the severity of the message when the classpath is incomplete for a Java file. Supported values are ignore, info, warning, error. java.trace.server : Traces the communication between VS Code and the Java language server. java.configuration.updateBuildConfiguration : Specifies how modifications on build files update the Java classpath/configuration. Supported values are disabled (nothing happens), interactive (asks about updating on every modification), automatic (updating is automatically triggered). java.configuration.maven.userSettings : Path to Maven's user settings.xml. java.configuration.checkProjectSettingsExclusions: Deprecated, please use 'java.import.generatesMetadataFilesAtProjectRoot' to control whether to generate the project metadata files at the project root. And use 'files.exclude' to control whether to hide the project metadata files from the file explorer. Controls whether to exclude extension-generated project settings files (.project, .classpath, .factorypath, .settings/) from the file explorer. Defaults to false. java.referencesCodeLens.enabled : Enable/disable the references code lenses. java.implementationCodeLens : Enable/disable the implementations code lens for the provided categories. java.signatureHelp.enabled : Enable/disable signature help support (triggered on (). java.signatureHelp.description.enabled : Enable/disable to show the description in signature help. Defaults to false. java.contentProvider.preferred : Preferred content provider (see 3rd party decompilers available in vscode-java-decompiler). java.import.exclusions : Exclude folders from import via glob patterns. Use ! to negate patterns to allow subfolders imports. You have to include a parent directory. The order is important. java.import.gradle.enabled : Enable/disable the Gradle importer. Specify the Gradle distribution used by the Java extension: java.import.gradle.wrapper.enabled: Use Gradle from the 'gradle-wrapper.properties' file. Defaults to true. java.import.gradle.version: Use Gradle from the specific version if the Gradle wrapper is missing or disabled. java.import.gradle.home: Use Gradle from the specified local installation directory or GRADLE_HOME if the Gradle wrapper is missing or disabled and no 'java.import.gradle.version' is specified. java.import.gradle.arguments: Arguments to pass to Gradle. java.import.gradle.jvmArguments: JVM arguments to pass to Gradle. java.import.gradle.user.home: setting for GRADLE_USER_HOME. java.import.gradle.offline.enabled: Enable/disable the Gradle offline mode. Defaults to false. java.import.maven.enabled : Enable/disable the Maven importer. java.autobuild.enabled : Enable/disable the 'auto build'. java.maxConcurrentBuilds: Set max simultaneous project builds. java.completion.enabled : Enable/disable code completion support. java.completion.guessMethodArguments : Specify how the arguments will be filled during completion. Defaults to auto. auto: Use off only when using Visual Studio Code - Insiders, other platform will defaults to insertBestGuessedArguments. off: Method arguments will not be inserted during completion. insertParameterNames: The parameter names will be inserted during completion. insertBestGuessedArguments: The best guessed arguments will be inserted during completion according to the code context. java.completion.filteredTypes: Defines the type filters. All types whose fully qualified name matches the selected filter strings will be ignored in content assist or quick fix proposals and when organizing imports. For example 'java.awt.*' will hide all types from the awt packages. java.completion.favoriteStaticMembers : Defines a list of static members or types with static members. java.completion.importOrder : Defines the sorting order of import statements. java.format.enabled : Enable/disable the default Java formatter. java.format.settings.url : Specifies the url or file path to the Eclipse formatter xml settings. java.format.settings.profile : Optional formatter profile name from the Eclipse formatter settings. java.format.comments.enabled : Includes the comments during code formatting. java.format.onType.enabled : Enable/disable on-type formatting (triggered on ;, } or <return>). java.foldingRange.enabled: Enable/disable smart folding range support. If disabled, it will use the default indentation-based folding range provided by VS Code. java.maven.downloadSources: Enable/disable download of Maven source artifacts as part of importing Maven projects. java.maven.updateSnapshots: Force update of Snapshots/Releases. Defaults to false. java.codeGeneration.hashCodeEquals.useInstanceof: Use 'instanceof' to compare types when generating the hashCode and equals methods. Defaults to false. java.codeGeneration.hashCodeEquals.useJava7Objects: Use Objects.hash and Objects.equals when generating the hashCode and equals methods. This setting only applies to Java 7 and higher. Defaults to false. java.codeGeneration.useBlocks: Use blocks in 'if' statements when generating the methods. Defaults to false. java.codeGeneration.generateComments: Generate method comments when generating the methods. Defaults to false. java.codeGeneration.toString.template: The template for generating the toString method. Defaults to ${object.className} [${member.name()}=${member.value}, ${otherMembers}]. java.codeGeneration.toString.codeStyle: The code style for generating the toString method. Defaults to STRING_CONCATENATION. java.codeGeneration.toString.skipNullValues: Skip null values when generating the toString method. Defaults to false. java.codeGeneration.toString.listArrayContents: List contents of arrays instead of using native toString(). Defaults to true. java.codeGeneration.toString.limitElements: Limit number of items in arrays/collections/maps to list, if 0 then list all. Defaults to 0. java.selectionRange.enabled: Enable/disable Smart Selection support for Java. Disabling this option will not affect the VS Code built-in word-based and bracket-based smart selection. java.showBuildStatusOnStart.enabled: Automatically show build status on startup, defaults to notification. notification: Show the build status via progress notification. terminal: Show the build status via terminal. off: Do not show any build status. For backward compatibility, this setting also accepts boolean value, where true has the same meaning as notification and false has the same meaning as off. java.project.outputPath: A relative path to the workspace where stores the compiled output. Only effective in the WORKSPACE scope. The setting will NOT affect Maven or Gradle project. java.project.referencedLibraries: Configure glob patterns for referencing local libraries to a Java project. java.completion.maxResults: Maximum number of completion results (not including snippets). 0 (the default value) disables the limit, all results are returned. In case of performance problems, consider setting a sensible limit. java.configuration.runtimes: Map Java Execution Environments to local JDKs. java.server.launchMode: Standard: Provides full features such as intellisense, refactoring, building, Maven/Gradle support etc. LightWeight: Starts a syntax server with lower start-up cost. Only provides syntax features such as outline, navigation, javadoc, syntax errors. The lightweight mode won't load thirdparty extensions, such as java test runner, java debugger, etc. Hybrid: Provides full features with better responsiveness. It starts a standard language server and a secondary syntax server. The syntax server provides syntax features until the standard server is ready. And the syntax server will be shutdown automatically after the standard server is fully ready. Default launch mode is Hybrid. Legacy mode is Standard java.sources.organizeImports.starThreshold: Specifies the number of imports added before a star-import declaration is used, default is 99. java.sources.organizeImports.staticStarThreshold: Specifies the number of static imports added before a star-import declaration is used, default is 99. java.imports.gradle.wrapper.checksums: Defines allowed/disallowed SHA-256 checksums of Gradle Wrappers. java.project.importOnFirstTimeStartup: Specifies whether to import the Java projects, when opening the folder in Hybrid mode for the first time. Supported values are disabled (never imports), interactive (asks to import or not), automatic (always imports). Default to automatic. java.project.importHint: Enable/disable the server-mode switch information, when Java projects import is skipped on startup. Defaults to true. java.import.gradle.java.home: Specifies the location to the JVM used to run the Gradle daemon. java.project.resourceFilters: Excludes files and folders from being refreshed by the Java Language Server, which can improve the overall performance. For example, ["node_modules",".git"] will exclude all files and folders named 'node_modules' or '.git'. Pattern expressions must be compatible with java.util.regex.Pattern. Defaults to ["node_modules",".git"]. java.templates.fileHeader: Specifies the file header comment for new Java file. Supports configuring multi-line comments with an array of strings, and using ${variable} to reference the predefined variables. java.templates.typeComment: Specifies the type comment for new Java type. Supports configuring multi-line comments with an array of strings, and using ${variable} to reference the predefined variables. java.references.includeAccessors: Include getter, setter and builder/constructor when finding references. Default to true. java.configuration.maven.globalSettings : Path to Maven's global settings.xml. java.configuration.maven.lifecycleMappings : Path to Maven's lifecycle mappings xml. java.eclipse.downloadSources : Enable/disable download of Maven source artifacts for Eclipse projects. java.references.includeDecompiledSources : Include the decompiled sources when finding references. Default to true. java.project.sourcePaths: Relative paths to the workspace where stores the source files. Only effective in the WORKSPACE scope. The setting will NOT affect Maven or Gradle project. java.typeHierarchy.lazyLoad: Enable/disable lazy loading the content in type hierarchy. Lazy loading could save a lot of loading time but every type should be expanded manually to load its content. java.codeGeneration.insertionLocation: Specifies the insertion location of the code generated by source actions. Defaults to afterCursor. afterCursor: Insert the generated code after the member where the cursor is located. beforeCursor: Insert the generated code before the member where the cursor is located. lastMember: Insert the generated code as the last member of the target type. java.codeGeneration.addFinalForNewDeclaration: Whether to generate the 'final' modifer for code actions that create new declarations. Defaults to none. none: Do not generate final modifier fields: Generate 'final' modifier only for new field declarations variables: Generate 'final' modifier only for new variable declarations all: Generate 'final' modifier for all new declarations java.settings.url : Specifies the url or file path to the workspace Java settings. See Setting Global Preferences java.symbols.includeSourceMethodDeclarations : Include method declarations from source files in symbol search. Defaults to false. java.quickfix.showAt : Show quickfixes at the problem or line level. java.configuration.workspaceCacheLimit : The number of days (if enabled) to keep unused workspace cache data. Beyond this limit, cached workspace data may be removed. java.import.generatesMetadataFilesAtProjectRoot : Specify whether the project metadata files(.project, .classpath, .factorypath, .settings/) will be generated at the project root. Defaults to false. java.inlayHints.parameterNames.enabled: Enable/disable inlay hints for parameter names. Supported values are: none(disable parameter name hints), literals(Enable parameter name hints only for literal arguments) and all(Enable parameter name hints for literal and non-literal arguments). Defaults to literals. java.compile.nullAnalysis.nonnull: Specify the Nonnull annotation types to be used for null analysis. If more than one annotation is specified, then the topmost annotation will be used first if it exists in your project dependencies. This setting will be ignored if java.compile.nullAnalysis.mode is set to disabled. java.compile.nullAnalysis.nullable: Specify the Nullable annotation types to be used for null analysis. If more than one annotation is specified, then the topmost annotation will be used first if it exists in your project dependencies. This setting will be ignored if java.compile.nullAnalysis.mode is set to disabled. java.compile.nullAnalysis.nonnullbydefault: Specify the NonNullByDefault annotation types to be used for null analysis. If more than one annotation is specified, then the topmost annotation will be used first if it exists in your project dependencies. This setting will be ignored if java.compile.nullAnalysis.mode is set to disabled. java.import.maven.offline.enabled: Enable/disable the Maven offline mode. Defaults to false. java.codeAction.sortMembers.avoidVolatileChanges: Reordering of fields, enum constants, and initializers can result in semantic and runtime changes due to different initialization and persistence order. This setting prevents this from occurring. Defaults to true. java.jdt.ls.protobufSupport.enabled: Specify whether to automatically add Protobuf output source directories to the classpath. Note: Only works for Gradle com.google.protobuf plugin 0.8.4 or higher. Defaults to true. java.jdt.ls.androidSupport.enabled: [Experimental] Specify whether to enable Android project importing. When set to auto, the Android support will be enabled in Visual Studio Code - Insiders. Note: Only works for Android Gradle Plugin 3.2.0 or higher. Defaults to auto. java.completion.postfix.enabled: Enable/disable postfix completion support. Defaults to true. java.completion.chain.enabled: Enable/disable chain completion support. Defaults to false. java.completion.matchCase: Specify whether to match case for code completion. Defaults to firstLetter. java.compile.nullAnalysis.mode: Specify how to enable the annotation-based null analysis. Supported values are disabled (disable the null analysis), interactive (asks when null annotation types are detected), automatic (automatically enable null analysis when null annotation types are detected). Defaults to interactive. java.cleanup.actionsOnSave: Deprecated, please use 'java.cleanup.actions' instead. The list of clean ups to be run on the current document when it's saved. Clean ups can automatically fix code style or programming mistakes. Click here to learn more about what each clean up does. java.cleanup.actions: The list of clean ups to be run on the current document when it's saved or when the cleanup command is issued. Clean ups can automatically fix code style or programming mistakes. Click here to learn more about what each clean up does. java.saveActions.cleanup: Enable/disable cleanup actions on save. java.import.gradle.annotationProcessing.enabled: Enable/disable the annotation processing on Gradle projects and delegate to JDT APT. Only works for Gradle 5.2 or higher. java.sharedIndexes.enabled: [Experimental] Specify whether to share indexes between different workspaces. Defaults to auto and the shared indexes is automatically enabled in Visual Studio Code - Insiders. auto on off java.sharedIndexes.location: Specifies a common index location for all workspaces. See default values as follows: Windows: First use "$APPDATA\\.jdt\\index", or "~\\.jdt\\index" if it does not exist macOS: "~/Library/Caches/.jdt/index" Linux: First use "$XDG_CACHE_HOME/.jdt/index", or "~/.cache/.jdt/index" if it does not exist java.refactoring.extract.interface.replace: Specify whether to replace all the occurrences of the subtype with the new extracted interface. Defaults to true. java.import.maven.disableTestClasspathFlag : Enable/disable test classpath segregation. When enabled, this permits the usage of test resources within a Maven project as dependencies within the compile scope of other projects. Defaults to false. java.configuration.maven.defaultMojoExecutionAction : Specifies default mojo execution action when no associated metadata can be detected. Defaults to ignore. java.completion.lazyResolveTextEdit.enabled: [Experimental] Enable/disable lazily resolving text edits for code completion. Defaults to true. java.edit.validateAllOpenBuffersOnChanges: Specifies whether to recheck all open Java files for diagnostics when editing a Java file. Defaults to false. java.editor.reloadChangedSources: Specifies whether to reload the sources of the open class files when their source jar files are changed. Defaults to ask. ask: Ask to reload the sources of the open class files auto: Automatically reload the sources of the open class files manual: Manually reload the sources of the open class files java.edit.smartSemicolonDetection.enabled: Defines the smart semicolon detection. Defaults to false. java.configuration.detectJdksAtStart: Automatically detect JDKs installed on local machine at startup. If you have specified the same JDK version in java.configuration.runtimes, the extension will use that version first. Defaults to true. java.completion.collapseCompletionItems: Enable/disable the collapse of overloaded methods in completion items. Overrides java.completion.guessMethodArguments. Defaults to false. java.diagnostic.filter: Specifies a list of file patterns for which matching documents should not have their diagnostics reported (eg. '**/Foo.java'). java.search.scope: Specifies the scope which must be used for search operation like Find Reference Call Hierarchy Workspace Symbols java.jdt.ls.javac.enabled: [Experimental] Specify whether to enable Javac-based compilation in the language server. Requires running this extension with Java 24. Defaults to off. java.completion.engine: [Experimental] Select code completion engine. Defaults to ecj. java.references.includeDeclarations: Include declarations when finding references. Defaults to true java.jdt.ls.appcds.enabled : [Experimental] Enable Java AppCDS (Application Class Data Sharing) for improvements to extension activation. When set to auto, AppCDS will be enabled in Visual Studio Code - Insiders, and for pre-release versions. Semantic Highlighting Semantic Highlighting fixes numerous syntax highlighting issues with the default Java Textmate grammar. However, you might experience a few minor issues, particularly a delay when it kicks in, as it needs to be computed by the Java Language server, when opening a new file or when typing. Semantic highlighting can be disabled for all languages using the editor.semanticHighlighting.enabled setting, or for Java only using language-specific editor settings. Troubleshooting Check the status of the language tools on the lower right corner (marked with A on image below). It should show ready (thumbs up) as on the image below. You can click on the status and open the language tool logs for further information in case of a failure. status indicator Read the troubleshooting guide for collecting informations about issues you might encounter. Report any problems you face to the project. Contributing This is an open source project open to anyone. Contributions are extremely welcome! For information on getting started, refer to the CONTRIBUTING instructions. Continuous Integration builds can be installed from http://download.jboss.org/jbosstools/jdt.ls/staging/. Download the most recent java-<version>.vsix file and install it by following the instructions here. Stable releases are archived under http://download.jboss.org/jbosstools/static/jdt.ls/stable/. Also, you can contribute your own VS Code extension to enhance the existing features by following the instructions here. Feedback Have a question? Start a discussion on GitHub Discussions, File a bug in GitHub Issues, Chat with us on Gitter, Tweet us with other feedback. License EPL 2.0, See LICENSE for more information.
09-21
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值