Bug 570697 - Projects imported from ZIP archive do not automatically add included JARs to classpath
Summary: Projects imported from ZIP archive do not automatically add included JARs to ...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.16   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: bugday, helpwanted, usability
Depends on:
Blocks:
 
Reported: 2021-01-27 13:03 EST by Dylan Staley CLA
Modified: 2023-04-30 11:38 EDT (History)
3 users (show)

See Also:


Attachments
Project to import (1.39 MB, application/x-zip-compressed)
2021-01-27 13:03 EST, Dylan Staley CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dylan Staley CLA 2021-01-27 13:03:41 EST
Created attachment 285401 [details]
Project to import

When importing a ZIP archive using the Import Projects from Folder or Archive wizard that contains a JAR file, the JAR file is not automatically added to the classpath.

Steps to reproduce:
1. File > Import
2. Select "General > Projects from Folder or Archive"
3. Click "Archive"
4. Select "WeatherStation.zip" (attached to bug report)
5. Select "Finish"
6. Expand newly created project, open "Welcome01.java" in editor

Expected result:
File has no issues

Actual result:
Error stating that "The import core cannot be resolved"

Video demonstration: https://www.youtube.com/watch?v=2p4MVNIbwCY
Comment 1 Mickael Istria CLA 2021-01-27 14:54:08 EST
Thanks for the detailed report. I can reproduce the issue. I think it's a relatively easy one to improve. Would you be interested in trying to author a patch.
Comment 2 Dylan Staley CLA 2021-01-27 15:20:47 EST
(In reply to Mickael Istria from comment #1)
> Thanks for the detailed report. I can reproduce the issue. I think it's a
> relatively easy one to improve. Would you be interested in trying to author
> a patch.

Sure! I'm not familiar with the contribution process, but I assume I can figure that out from available documentation. If you could point out where to start adding this functionality that'd be helpful! I can go from there to figure out how to generate and submit a patch.
Comment 3 Andrey Loskutov CLA 2021-01-27 15:26:30 EST
https://wiki.eclipse.org/Platform/How_to_Contribute
Comment 4 Mickael Istria CLA 2021-01-27 15:45:10 EST
ProjectWithJavaResourcesImportConfigurator and ClasspathDetector classes is where attention should be placed.
Comment 5 Eclipse Genie CLA 2023-04-30 11:38:09 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.