anyone know if there is (or is plan to be) some kind of extension for VSCode to use MapStruct better and smarter as in IDEA or Eclipse?
I mean some tool as IDEA or Eclipse Plugin to easily manage the mappers.
In the official page https://mapstruct.org/documentation/ide-support/ there's nothing about VSCode.
Thanks
your example doesn't even build from CLI:
./gradlew build ✔ 11:12:33
Welcome to Gradle 5.6.2!
Here are the highlights of this release:
Incremental Groovy compilation
Groovy compile avoidance
Test fixtures for Java projects
Manage plugin versions via settings script
For more details see https://docs.gradle.org/5.6.2/release-notes.html
Starting a Gradle Daemon, 6 busy and 1 incompatible Daemons could not be reused, use --status for details
FAILURE: Build failed with an exception.
Where:
Build file '/Users/fbricon/Dev/souk/mapstruct-gradle-demo/build.gradle' line: 2
What went wrong:
A problem occurred evaluating root project 'halo'.
Could not get resource 'http://saos-publish-test.chj.cloud/gradle/version.gradle'.
Could not GET 'http://saos-publish-test.chj.cloud/gradle/version.gradle'.
> saos-publish-test.chj.cloud: nodename nor servname provided, or not known
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 6s
Related
Even I remove and setup again nothing changed.
error
FAILURE: Build failed with an exception.
* What went wrong:
Could not open settings generic class cache for settings file 'C:\Users\Ozgur\Documents\flutterprojects\android\settings.gradle' (C:\Users\Ozgur\.gradle\caches\7.4\scripts\ea4ydi90mwjg9g63m7r6nimmx).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
Exception: Gradle task assembleDebug failed with exit code 1
I remove program and setup again added JAVA_HOME path and reinstall Java JDK-19 and didn't fix
it looks like gradle cache issues, remove the cache and re-install it via android studio, i will auto-install it based on the version you specified.
I recently fixed error it's happening due to gradle version and JDK version aren't capatible. There are 2 solution one of them is remove JDK 19 completelty and install JDK 17 instead of it. Or edit link in gradle-wrapper.properties like this gradle-7.4-all.zip
I am currently setting up my environment to create a Minecraft Mod using VSCode as this is my main editor at work, but I'm getting an error running the .\gradlew genVSCodeRun.
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':runtimeClasspathCopy'.
> Could not find net.minecraftforge:forge:1.16.5-36.2.34_mapped_official_1.16.5.
Searched in the following locations:
- file:/C:/Users/luism/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.2.34_mapped_official_1.16.5/forge-1.16.5-36.2.34_mapped_official_1.16.5.pom
- file:/C:/Users/luism/.gradle/caches/forge_gradle/bundeled_repo/net/minecraftforge/forge/1.16.5-36.2.34_mapped_official_1.16.5/forge-1.16.5-36.2.34_mapped_official_1.16.5.jar
Required by:
project :
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 18s
I can see that the Gradle importing process is failing because I don't have those two files.
I saw in this thread that the solution is to run the gradle eclipse command, but the Build still fails with the same error. I have the 1.17 JDK as it is recommended in the Forge documentation and pathed it in the VS settings.json. I also downloaded the Forge MDK for 1.16.5 and executing commands in the correct unzipped location of the MDK.
Any ideas about what I'm doing wrong? Thanks!
I am trying to run a flutter project and I get this error:
* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.internal.application'.
> Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing `org.gradle.java.home` in `gradle.properties`.
I checked all solutions and they all about changing the java version in gradle setting but when I open it, it doesn't include that option. Is there any alternative solution?the gradle options photo is here
the same problem.
What went wrong:
A problem occurred evaluating project ':app'.
Failed to apply plugin 'com.android.internal.application'.
Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
You can try some of the following options:
- changing the IDE settings.
- changing the JAVA_HOME environment variable.
- changing org.gradle.java.home in gradle.properties.
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1s
I'm trying to use OpenSSL with Flutter using dart:ffi, but when i run the project on Ubuntu 20.04 the error message as below comes out. I tested the project on Windows 10 and it worked.
Project repository
CMakeLists.txt
cmake_minimum_required(VERSION 3.6)
project(flutter_openssl_crypto)
find_package(openssl REQUIRED CONFIG)
add_library(${PROJECT_NAME} SHARED empty.c)
target_link_libraries(${PROJECT_NAME} PRIVATE openssl::crypto)
Error
CMakeLists.txt:6 (find_package):
Could not find a package configuration file provided by "openssl" with any
of the following names:
opensslConfig.cmake
openssl-config.cmake
Add the installation prefix of "openssl" to CMAKE_PREFIX_PATH or set
"openssl_DIR" to a directory containing one of the above files. If
"openssl" provides a separate development package or SDK, be sure it has
been installed.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 5.3s
Exception: Gradle task assembleDebug failed with exit code 1
How can i run the project on Ubuntu?
I found the problem.
I had installed Android Studio and Flutter SDK for Ubuntu software, that's the problem.
When I reinstalled both from the official websites, the project work's.
hey this is my first app on flutter i got this problem when I run it and I don't know what to do please help:
Plugin project :firebase_auth_web not found. Please update settings.gradle.
Plugin project :firebase_core_web not found. Please update settings.gradle.
Plugin project :cloud_firestore_web not found. Please update settings.gradle.
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users\nouhaila\AndroidStudioProjects\elearning\android\build.gradle' line: 35
What went wrong:
A problem occurred evaluating root project 'android'.
Could not find method implementation() for arguments [com.android.support:support-annotations:28.0.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 1s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin cloud_firestore...
Running Gradle task 'assembleAarRelease'...
Exception: The plugin cloud_firestore could not be built due to the issue above.
If you only have written a little code it might be simplest to start a new project. Start by compiling the starting counter app. After that works you can add more code with every step.