epam / sap-commerce-intellij-idea-plugin

A plugin for integration of SAP Commerce (aka Hybris) platform with JetBrains IntelliJ IDEA
https://plugins.jetbrains.com/plugin/12867-sap-commerce-developers-toolset/
GNU Lesser General Public License v3.0
53 stars 41 forks source link

Selected Open File is located in junk(virtual directory), not in src #741

Closed thetruechar closed 1 year ago

thetruechar commented 1 year ago

Hi, I'm new to commerce cloud and I found this great plugin, but however, when I search for something and click Selected Open File, it always shows it located in junk(virtual directory) instead of src directory(see the pic), anyone can help me how to configure something which I missing?

image
mlytvyn commented 1 year ago

Hello @thetruechar , original version of the plugin will register src dirs for ootb extensions only if project import flag “import ootb extensions in readonly mode” is set to false.

Such approach is required to improve compilation time in Idea.

I’ll try to play around with it in the upcoming release to always register src dirs, but mark them as ignored.

thetruechar commented 1 year ago

@mlytvyn thanks for the prompt reply! I just re-imported with import ootb extensions in readonly mode enabled, but the location remains the same...

image image
mlytvyn commented 1 year ago

try to uncheck that flag ;)

thetruechar commented 1 year ago

It works after uncheck the flag, you mentioned only if it is set to true, so... anyway, big big thanks for your help!

mlytvyn commented 1 year ago

@thetruechar , yeah, my bad, slightly tired. I'll adjust my comment above.

anyway, I'll try to improve classpath resolution even for readonly mode.

GOOD luck on your SAP Commerce journey!!!

mlytvyn commented 1 year ago

@thetruechar , looks like Intellij IDEA will not ideally support directories both ignored and registered as sources. Even defining new module lib leads to unexpected issues.

let's leave it as is, if anyone will find a way how to improve classpath resolution it would be great to see such contribution.

closing this ticket, and thank you once again!