Skip to content

Feat: Allow analysis to take absolute Paths without activator for both PCM and DFD#219

Merged
sebinside merged 2 commits intomainfrom
absolutepaths
Nov 8, 2024
Merged

Feat: Allow analysis to take absolute Paths without activator for both PCM and DFD#219
sebinside merged 2 commits intomainfrom
absolutepaths

Conversation

@01Parzival10
Copy link
Contributor

For running the analysis standalone and using the converter properly it is necessary for the analysis to take absolute paths instead of relative plugin paths

Copy link
Member

@sebinside sebinside left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All changes boil down to:

  1. Get path
  2. If path absolute
  3. Use URI.createFileURI and use this instead of createRelativePluginURI

This could be generalized to 1. minimize code duplication 2. minimize the risk of subsequent faults in future resource providers / file types 3. support cases where only some of the paths are absolute (for whatever reason)

@01Parzival10
Copy link
Contributor Author

All changes boil down to:

  1. Get path
  2. If path absolute
  3. Use URI.createFileURI and use this instead of createRelativePluginURI

This could be generalized to 1. minimize code duplication 2. minimize the risk of subsequent faults in future resource providers / file types 3. support cases where only some of the paths are absolute (for whatever reason)

@sebinside Are these changes what you meant?

Copy link
Member

@sebinside sebinside left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect, as disscused

@sebinside sebinside merged commit bc93d45 into main Nov 8, 2024
@sebinside sebinside deleted the absolutepaths branch November 8, 2024 09:48
@sebinside sebinside removed the request for review from Nicolas-Boltz November 8, 2024 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants