Comments (9)
Gotcha, I've had this issue. Thanks for reporting. When the physical source path doesn't exist for test it causes an issue because m2e sets it up anyway. This feels like a m2e issue, although I'll have to investigate further.
from gwt-eclipse-plugin.
Ok, inasmuch as it is so annoying to cleanup ~30 projects from generated staff after each project update I spent few hours and find the the reason (workaround).
The problem is in the launch generator. The default launch configuration SHOULD NOT include the test sources. It does not resolve the "optional" issue, but it resolve MY issue (all my wrong classpath entries are from tests).
Nonetheless the launch configuration INCLUDE all the sources from the projects. The reason is in wrong test Source Folder detection.
gwt-eclipse-plugin\plugins\com.google.gwt.eclipse.core\src\com\google\gwt\eclipse\core\GWTProjectUtilities.java
public static boolean isTestPath(IPath path) {
return "test".equals(path.lastSegment())
|| "javatests".equals(path.lastSegment());
}
It tests the last segment, but the standard maven project has "src/test/java".
So if you will fix the test Source Folder detection it will eliminate the issue with m2e which generate non existing classpath entries.
from gwt-eclipse-plugin.
Ok. It is not a real solution, because it fix include/exclude tests from launch configuration. To fix he original issue you should change fillGWTSourceFolderPathsFromProject from the same class (GWTProjectUtilities) to check IClasspathEntry is optional (like bellow)
public boolean isOptional() {
for (int i = 0, length = this.extraAttributes.length; i < length; i++) {
IClasspathAttribute attribute = this.extraAttributes[i];
if (IClasspathAttribute.OPTIONAL.equals(attribute.getName()) && "true".equals(attribute.getValue())) //$NON-NLS-1$
return true;
}
return false;
}
and check if curClasspathEntry.getPath() exists on the file system.
from gwt-eclipse-plugin.
Do I have to create a separate issue for incorrect including test sources to run-time classpath?
from gwt-eclipse-plugin.
Looks fine. I guess you don't have to create an issue for that.
from gwt-eclipse-plugin.
I'm out of country at the moment and tired, so I'll wait till I get back to merge it. Thats the 15th and a couple days to recover. Then I can merge and build the snapshot.
from gwt-eclipse-plugin.
Greate 👍
from gwt-eclipse-plugin.
Merged and updated repo. I've marked this fixed and if you can verify that would be great.
from gwt-eclipse-plugin.
I update the workspace with new version, it continue works. I am going to create new workspace from scratch in few days. will let you know if it will works correctly.
from gwt-eclipse-plugin.
Related Issues (20)
- Marketplace install does not contain the SDKs HOT 2
- Installing GWT Plugin involves trusting unsigned code HOT 1
- Super/Legacy Development Mode Radio Toggle missing for GWT 2.10.x HOT 17
- "Language Servers" Errors in Eclipse 2023-03 HOT 3
- Build failure due to bad caching performed by maven-download-plugin HOT 2
- Long paths stopped working on 4.0.0 HOT 3
- Plugin 4.0.0 / Run Configuration / Not producing SuperDev HOT 2
- GWT compilation error in Eclipse with GWT 3.0 plugin HOT 10
- Change plugin's content assist contributors to support asynchronous non-blocking completions HOT 1
- Is there a tutorial here on how to install the plugin in Eclipse? HOT 4
- Unable to install plugin version 4.0.0 in Eclipse 2023-12 (requires 'osgi.bundle; javax.inject 1.0.0' but it could not be found) HOT 12
- Unable to create run configuration for super dev mode
- Is it possible to update the Jetty to a version that supports Jakarta? HOT 1
- Update to GWT 2.11
- Error while installing in eclipse HOT 1
- Installation fails on Eclipse 2023.12 HOT 2
- Error installing from market place because of javax.inject which was moves to jakarta.inject HOT 4
- Fresh install of the plugin in Eclipse 2024-03 is missing dependencies HOT 2
- Add support for Eclipse 2024-03 (4.31.0) HOT 6
- GWT recompilation does not occur if you modify a properties file located on a submodule
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwt-eclipse-plugin.