Bug 551176 - external classpath entries in .launch config auto converted to project paths
Summary: external classpath entries in .launch config auto converted to project paths
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.11   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-18 01:04 EDT by Ilya Basin CLA
Modified: 2023-08-30 03:35 EDT (History)
1 user (show)

See Also:


Attachments
screenshot (26.30 KB, image/png)
2019-09-18 01:04 EDT, Ilya Basin CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Basin CLA 2019-09-18 01:04:23 EDT
Created attachment 279908 [details]
screenshot

For a certain test I need a launch configuration without the default project classpath and instead launches a .jar file in a project output directory "bin/". Don't ask why it's there.

I add this jar as external jar to the launch config, however, Eclipse is being too smart and automatically converts the external jar to a project-relative path.

As the result, I get the following error dialog when trying to launch:

    The archive: /testexternal/bin/aaa.jar which is referenced by the classpath, does not exist.

Look, if I wanted a relative path, I would do that myself. What problem does Eclipse try to solve by this conversion? In my opinion this feature should be removed.
Comment 1 Andrey Loskutov CLA 2019-09-18 01:09:43 EDT
I assume the "external" path you enter matches exactly a path inside your project?

Please try with 4.13. What happens if you manually change the config on disk, will it be automatically updated?
Comment 2 Ilya Basin CLA 2019-09-18 10:46:55 EDT
(In reply to Andrey Loskutov from comment #1)
> I assume the "external" path you enter matches exactly a path inside your
> project?
> 
> Please try with 4.13. What happens if you manually change the config on
> disk, will it be automatically updated?

I see no difference between 4.13 and 4.11. If I manually change the entry it stays external until I try to edit it again in Eclipse.
Comment 3 Eclipse Genie CLA 2021-09-08 13:37:10 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.
Comment 4 Eclipse Genie CLA 2023-08-30 03:35:04 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.