You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by "ttaolu (via GitHub)" <gi...@apache.org> on 2023/03/21 03:30:19 UTC
[GitHub] [jmeter] ttaolu opened a new issue, #5794: Can't build, The following files have format violations
ttaolu opened a new issue, #5794:
URL: https://github.com/apache/jmeter/issues/5794
### Expected behavior
```
$ git fetch
$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
```
```
$ ./gradlew buid
> Configure project :buildSrc
Multiple files present for artifact org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10: D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10-gradle70.jar and D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10.jar
> Task :buildSrc:batchtest:compileKotlin UP-TO-DATE
Multiple files present for artifact org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10: D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10-gradle70.jar and D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10.jar
> Task :buildSrc:autostyleKotlinGradleCheck FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildSrc:autostyleKotlinGradleCheck'.
> The following files have format violations:
build.gradle.kts
settings.gradle.kts
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
12 actionable tasks: 1 executed, 11 up-to-date
```
```
$ git log -1
commit 95ccef20bcf845a937ba242a0f9b2e1790aadefa (HEAD -> master, origin/master, origin/HEAD)
Author: Felix Schumacher <fe...@internetallee.de>
Date: Mon Feb 20 15:07:13 2023 +0100
Issue 5694: Log a warning if 'u' is found in time functions format string
A warning will be logged, if the code 'u' is found in the format string,
as the meaning for that code has changed from day-of-week to year.
Part of #5694
```
### Actual behavior
_No response_
### Steps to reproduce the problem
null
### JMeter Version
5.5
### Java Version
java version "11.0.17" 2022-10-18 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.17+10-LTS-269) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.17+10-LTS-269, mixed mode)
### OS Version
Microsoft Windows [Version 10.0.22621.1265]
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] vlsi commented on issue #5794: Can't build, The following files have format violations
Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi commented on issue #5794:
URL: https://github.com/apache/jmeter/issues/5794#issuecomment-1483840460
Have you figured out what was the reason?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] vlsi commented on issue #5794: Can't build, The following files have format violations
Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi commented on issue #5794:
URL: https://github.com/apache/jmeter/issues/5794#issuecomment-1477740257
What if you change directory to `buildSrc` and issue `../gradlew autostyleApply`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] ttaolu commented on issue #5794: Can't build, The following files have format violations
Posted by "ttaolu (via GitHub)" <gi...@apache.org>.
ttaolu commented on issue #5794:
URL: https://github.com/apache/jmeter/issues/5794#issuecomment-1477783104
it seems ok, but what can i do next
![image](https://user-images.githubusercontent.com/82750254/226608368-6d7cda51-ec44-4829-8429-645225873322.png)
my project can not run
![image](https://user-images.githubusercontent.com/82750254/226609567-0e26974d-5394-4005-9ebc-bcc23c1d832b.png)
run failed for all
- ../gradlew build -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 (in build src)
- ../gradlew build (in build src)
- ./gradlew build (in jmeter root)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] vlsi commented on issue #5794: Can't build, The following files have format violations
Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi commented on issue #5794:
URL: https://github.com/apache/jmeter/issues/5794#issuecomment-1477318836
Does gradlew autostyleApply resolve the issue?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] vlsi commented on issue #5794: Can't build, The following files have format violations
Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi commented on issue #5794:
URL: https://github.com/apache/jmeter/issues/5794#issuecomment-1477267904
Try running the build with -PmaxCheckMessageLines=500 -PmaxFilesToList=10 -PminLinesPerFile=40
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] ttaolu commented on issue #5794: Can't build, The following files have format violations
Posted by "ttaolu (via GitHub)" <gi...@apache.org>.
ttaolu commented on issue #5794:
URL: https://github.com/apache/jmeter/issues/5794#issuecomment-1477789575
when in buildSrc the task of clean and tasks can run success.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] ttaolu commented on issue #5794: Can't build, The following files have format violations
Posted by "ttaolu (via GitHub)" <gi...@apache.org>.
ttaolu commented on issue #5794:
URL: https://github.com/apache/jmeter/issues/5794#issuecomment-1477700699
same error
- ./gradlew :buildSrc:autostyleApply
- ./gradlew :buildSrc:autostyleApply -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4
- ./gradlew -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 :buildSrc:autostyleApply
```groovy
$ ./gradlew -PmaxCheckMessageLines=50 -PmaxFilesToList=10 -PminLinesPerFile=4 :buildSrc:autostyleApply
> Configure project :buildSrc
Multiple files present for artifact org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10: D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10-gradle70.jar and D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10.jar
> Task :buildSrc:batchtest:compileKotlin UP-TO-DATE
Multiple files present for artifact org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10: D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10-gradle70.jar and D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10.jar
> Task :buildSrc:autostyleKotlinGradleCheck FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildSrc:autostyleKotlinGradleCheck'.
> The following files have format violations:
build.gradle.kts
settings.gradle.kts
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
12 actionable tasks: 1 executed, 11 up-to-date
```
and why Multiple files present
thinks for help
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] ttaolu closed issue #5794: Can't build, The following files have format violations
Posted by "ttaolu (via GitHub)" <gi...@apache.org>.
ttaolu closed issue #5794: Can't build, The following files have format violations
URL: https://github.com/apache/jmeter/issues/5794
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] ttaolu commented on issue #5794: Can't build, The following files have format violations
Posted by "ttaolu (via GitHub)" <gi...@apache.org>.
ttaolu commented on issue #5794:
URL: https://github.com/apache/jmeter/issues/5794#issuecomment-1477315316
not work
```
$ ./gradlew build -PmaxCheckMessageLines=500 -PmaxFilesToList=10 -PminLinesPerFile=40
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
> Configure project :buildSrc
Multiple files present for artifact org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10: D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10-gradle70.jar and D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10.jar
> Task :buildSrc:batchtest:compileKotlin UP-TO-DATE
Multiple files present for artifact org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10: D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10-gradle70.jar and D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10.jar
> Task :buildSrc:autostyleKotlinGradleCheck FAILED
checksum-dependency elapsed time: 1625ms, configurations processed: 13 (add -PchecksumTimingsPrint to print detailed timings)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildSrc:autostyleKotlinGradleCheck'.
> The following files have format violations:
build.gradle.kts
settings.gradle.kts
You might want to adjust -PmaxCheckMessageLines=500
-PmaxFilesToList=10
-PminLinesPerFile=40
to see more violations
Run './gradlew autostyleApply' to fix the violations.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 5s
12 actionable tasks: 1 executed, 11 up-to-date
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] vlsi commented on issue #5794: Can't build, The following files have format violations
Posted by "vlsi (via GitHub)" <gi...@apache.org>.
vlsi commented on issue #5794:
URL: https://github.com/apache/jmeter/issues/5794#issuecomment-1477581522
Try runing `./gradlew :buildSrc:autostyleApply`
The issue is related to `:buildSrc`, not to the main code.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] ttaolu commented on issue #5794: Can't build, The following files have format violations
Posted by "ttaolu (via GitHub)" <gi...@apache.org>.
ttaolu commented on issue #5794:
URL: https://github.com/apache/jmeter/issues/5794#issuecomment-1477448014
no, that was I run autostyleApply ,
```
$ ./gradlew autostyleApply --stacktrace
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
> Configure project :buildSrc
Multiple files present for artifact org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10: D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10-gradle70.jar and D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10.jar
> Task :buildSrc:batchtest:compileKotlin UP-TO-DATE
Multiple files present for artifact org.jetbrains.kotlin:kotlin-gradle-plugin-api:1.7.10: D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10-gradle70.jar and D:\Gradle\GradleUserHome\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-gradle-plugin-api\1.7.10\3b38be7ed8f8c678b13991d5b3ec99c4908d3313\kotlin-gradle-plugin-api-1.7.10.jar
> Task :buildSrc:autostyleKotlinGradleCheck FAILED
> Task :buildSrc:batchtest:autostyleKotlinCheck FAILED
checksum-dependency elapsed time: 1087ms, configurations processed: 13 (add -PchecksumTimingsPrint to print detailed timings)
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':buildSrc:autostyleKotlinGradleCheck'.
> The following files have format violations:
build.gradle.kts
settings.gradle.kts
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
* Try:
> Run with --info or --debug option to get more log output.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':buildSrc:autostyleKotlinGradleCheck'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:142)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
...
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:379)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
Caused by: org.gradle.api.GradleException: The following files have format violations:
build.gradle.kts
settings.gradle.kts
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
at com.github.autostyle.gradle.AutostyleCheckTask.run(AutostyleCheckTask.kt:94)
at jdk.internal.reflect.GeneratedMethodAccessor360.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:125)
...
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:379)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':buildSrc:batchtest:autostyleKotlinCheck'.
> The following files have format violations:
src\main\kotlin\org\apache\jmeter\buildtools\batchtest\BatchTest.kt
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
* Try:
> Run with --info or --debug option to get more log output.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':buildSrc:batchtest:autostyleKotlinCheck'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:142)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:282)
...
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.gradle.api.GradleException: The following files have format violations:
src\main\kotlin\org\apache\jmeter\buildtools\batchtest\BatchTest.kt
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
at com.github.autostyle.gradle.AutostyleCheckTask.run(AutostyleCheckTask.kt:94)
...
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
13 actionable tasks: 2 executed, 11 up-to-date
```
any task not sucess e.g. refresh
```
$ ./gradlew refresh -q
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':buildSrc:autostyleKotlinGradleCheck'.
> The following files have format violations:
build.gradle.kts
settings.gradle.kts
You might want to adjust -PmaxCheckMessageLines=50
-PmaxFilesToList=10
-PminLinesPerFile=4
to see more violations
Run './gradlew autostyleApply' to fix the violations.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [jmeter] ttaolu commented on issue #5794: Can't build, The following files have format violations
Posted by "ttaolu (via GitHub)" <gi...@apache.org>.
ttaolu commented on issue #5794:
URL: https://github.com/apache/jmeter/issues/5794#issuecomment-1484033629
No, it has not been resolved. It may be a problem with my own computer or with tools or environments
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org