-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source classes location issue #791
Comments
hello @marcin-olejarczyk , that's how it was originally designed by the Plugin authors - separate IDEA compilation from Ant compilation. 1st - Import OOTB modules in read-only mode
2nd - Exclude test sources for OOTB modules
p.s. if you would like to clarify this further or have any suggestions feel free to reach me out in the Plugin's Slack and we can discuss it verbally. |
Hi @mlytvyn Thanks for your answer. Right, not every module is delivered with sources, but most of them are - for example, Not sure if it is related with the separate IDEA compilation from Ant compilation, but we are getting a lot of errors like: What do you mean by (it will be adjusted in 2023.2.11) in relation to 'any src folders will not be registered as source or test-source directories'? |
@marcin-olejarczyk , original plugin was designed in a way that all OOTB classes will be available via module specific Lib in case of read-only mode. It was done with intention to simulate Ant class path configuration behaviour. Indeed, it does not always work well with SAP Commerce addon approach. In most cases such addon compilation issues caused by incomplete extension dependencies. p.s. Library usually has both classes and sources (if available) |
@marcin-olejarczyk , looks like good news :) there was an issue in legacy code: Please wait for next I hope it will help you and other developers. Once again, thank you for your feedback, only thanks to every such feedback we can make this free Plugin better. |
Hi @mlytvyn Good news. One additional note from my side: I have the impression that the problems described here appeared with the IntelliJ 2023.2.0, but maybe I am wrong. I'm looking forward to your new plugin version. I hope it will fix our issue with the new plugin release 🤞 |
Hi @mlytvyn I downloaded and installed the latest SAP Commerce IntelliJ IDEA Plugin 2023.2.11 ver. and then refreshed the project and cleaned IDE caches. Unfortunately, I still can see IDE issues for the SAP Commerce 2211 project build with the CX recipe (no any customisation from my side): Please advise me how to deal with this problem. |
@marcin-olejarczyk , most probably it is related to this issue -> #729 (comment). I'll check if it's so... |
+1 |
Similar issue on my end using IntelliJ 2023.2.5 and plugin 2023.2.12 |
@tomtrapp , @felipekunzler , @marcin-olejarczyk , pushed 3 extra changes related to the classpath, let's hope that they will help for addons / web / acceleratoraddon modules. Backoffice classpath issue is still pending on Jetbrains. I'll request release of the |
Hi @mlytvyn. The fix worked for me, classes are now correctly referenced on controller addons when using |
I have installed SAP Commerce 2211 locally using CX recipe, all working fine. Then I imported this local SAP Commerce project to IntelliJ using your SAP Commerce Developers Toolset plugin without any issue (Project imported successfully).
Unfortunately, IDE is not able to locate source classes properly, for example, DefaultDeliveryService:
All classes are found in the class compiler output folder:
but not in the original src folder, even properly imported by your plugin:
I did some investigation, and my conclusion is related to the destination class path:
SAP Commerce builds and places all module compiled classes under the class folder,
SAP Commerce Developers Toolset configures all modules with compiled classes under eclipsebin folder,
The text was updated successfully, but these errors were encountered: