forked from devonfw/ide
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/devonfw#1039-Add-support-for-Kotlin
- Loading branch information
Showing
22 changed files
with
374 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
-Drevision=2023.02.001-SNAPSHOT | ||
-Drevision=2023.04.001-SNAPSHOT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
= Guide: Finding Processes that Block Specific Files | ||
|
||
== Introduction | ||
|
||
Sometimes, when you try to perform an action on a file on your Windows computer, you may encounter an error message that says the file is in use and cannot be accessed. This is usually because the file is locked by a process that is currently running on your system. In this guide, we will show you how to find the processes that are blocking specific files, as well as provide information on Windows file locks and resulting problems and solutions. | ||
|
||
== Understanding Windows File Locks | ||
|
||
In Windows, when a process opens a file, the operating system creates a file lock to prevent other processes from modifying or deleting the file while it is being used. When a file is locked, any attempt to modify or delete the file will fail. This can result in errors or unexpected behavior when you try to perform actions on the file. | ||
|
||
There are two types of file locks in Windows: shared locks and exclusive locks. Shared locks allow multiple processes to access a file at the same time, but prevent any one process from modifying or deleting the file while it is in use. Exclusive locks, on the other hand, prevent all other processes from accessing the file while it is in use. | ||
|
||
== Finding Processes that Block Specific Files | ||
|
||
To find the processes that are blocking a specific file, you can use the Windows Resource Monitor or the Command Prompt. Here are the steps to do so: | ||
|
||
1. Open the Windows Resource Monitor by typing "resmon" in the Start menu search bar, then press Enter. | ||
|
||
2. Click on the CPU tab. | ||
|
||
3. In the Associated Handles section, type the name of the file that is being blocked in the Search Handles field, then press Enter. | ||
|
||
4. The processes that are blocking the file will be listed in the lower pane of the Resource Monitor. Note the name of the process that is blocking the file. | ||
+ | ||
image::images/ResourceManager.png[UnlockFileResourceMonitor] | ||
+ | ||
5. You can right click the process name and terminate it. | ||
|
||
== Solutions for File Locking Problems | ||
|
||
If you have identified the process that is blocking a file, you can take one of the following actions: | ||
|
||
- Close the process: If the process is not necessary, you can close it to release the file lock. | ||
|
||
- Wait for the process to complete: If the process is performing a necessary operation on the file, you can wait for it to complete before attempting to perform your action. | ||
|
||
- Use a file unlocking tool: There are many third-party tools available that can unlock files and release file locks. Some popular tools include Unlocker and ProcessExplorer. Another option is IObit Unlocker, which is a free tool that can help you unlock and delete files that are in use. You can download IObit Unlocker from the following link: https://www.iobit.com/en/iobit-unlocker.php | ||
|
||
== Conclusion | ||
|
||
In this guide, we have provided information on Windows file locks and how to find processes that are blocking specific files. We have also provided solutions for file locking problems, including using third-party tools like Unlocker, ProcessExplorer, and IObit Unlocker. If you encounter file locking problems on your Windows computer, following the steps in this guide should help you resolve them. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
:toc: | ||
toc::[] | ||
|
||
= migration | ||
|
||
When we publish a new release, our users can install it to existing devonfw-ide installations via `devon ide update scripts`. | ||
Sometimes we do some structural changes and to avoid "polluting" our scripts with legacy handling code, there is a `migration` script under `${DEVON_IDE_HOME}/scripts` that is automatically executed by `devon ide update scripts` after the new release has been installed. | ||
The `migration` script then executes all potential upgrades in `${DEVON_IDE_HOME}/scripts/migrations/«version»` that are greater or equal to the previously installed version in numerical order. | ||
|
||
== upgrade scripts | ||
The `migrations` folder contains a file for each devonfw-ide version that requires an upgrade migration on installation as illustrated by the following example: | ||
|
||
.Structure of migrations folder | ||
[subs=+macros] | ||
---- | ||
/migrations | ||
├──/ ... | ||
├──/ 2023.03.001 | ||
├──/ 2023.03.003 | ||
├──/ 2023.12.001 | ||
├──/ ... | ||
---- | ||
|
||
As you can see, the migrations folder contains scripts with specific ide versions. | ||
If no upgrade is required for a new version there will be no migration script so there can be gaps in their numbers. | ||
So if the user runs `devon ide update scripts` on ide with version `«version-x»`, the `migration` script will execute each script in migrations folder from the same version to the latest version in numerical order. | ||
|
||
ATTENTION: Since this feature is available with version ´2023.02.001´, older ide's are not affected by the migration. | ||
We try to reach our users with an announcement to upgrade all installations to that version once released. | ||
In case you missed to follow this guidance, you can still manually call `migration 2023.02.001` in your `${DEVON_IDE_HOME}/scripts/` folder to fix it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
:toc: | ||
toc::[] | ||
|
||
= rewrite | ||
|
||
The rewrite commandlet allows the use of https://docs.openrewrite.org/[Openrewrite], a Maven based tool that can be used to refactor code with recipes for multiple languages and tools. | ||
Before using this tool, we recommend that you read the https://docs.openrewrite.org/running-recipes/getting-started[Getting-Started] page. | ||
|
||
== Usage | ||
The commandlet accepts the name of a recipe such as `org.openrewrite.java.format.AutoFormat` as the first argument. | ||
If this recipe is built-in, the second argument can be ignored. | ||
In case the recipe is provided by an external catalog of recipes, the second parameter must be passed. | ||
Usually this information is set in the pom.xml of the project in plugin dependencies: | ||
|
||
``` | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.openrewrite.recipe</groupId> | ||
<artifactId>rewrite-spring</artifactId> | ||
<version>4.33.0</version> | ||
</dependency> | ||
</dependencies> | ||
``` | ||
However, you can set up the second parameter in this structure instead: `groupId:artifactId:version`. | ||
In the example the second parameter would be `org.openrewrite.recipe:rewrite-spring:LATEST`. You can also use the exact version instead of `LATEST`. | ||
|
||
The catalog of recipes can be found here: | ||
|
||
https://docs.openrewrite.org/reference/recipes | ||
|
||
The arguments (devon rewrite «args») are explained by the following table: | ||
|
||
Usage of `devon rewrite` | ||
[options="header"] | ||
|======================= | ||
|*Argument(s)* |*Meaning* | ||
|«recipe» [«catalog»] |run a «recipe». If it is not a built-in recipe then provide the catalog of this recipe in [«catalog»]" | ||
|======================= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.