Eclipse is not functioning (f3, ctrl+space, Open Implementation via ctrl, Compile errors) correctly after i imported my Hybris project. - spring

After i imported my Hybris 6.3 extension and custom extension to eclipse, it is not working properly in some extension(project) and working fine in other(project), even it is not showing compile error. I have re-installed other eclipse version like Neon and photon but it didn't worked out.
I have tried deleting the .metadata folder from my workspace but the issue still persist.
i tried opening eclipse.exe -clean from command prompt but it is not getting corrected. This is giving me a hard time. Please suggest me a fix.
If any other IDE could be used instead which is compatible for Hybris then i would try switching it.
Any help would be appreciated.

I don't think the problem you are facing is because of Hybris extension.
You can try
Download/Install Eclipse
Create new workspace
Install the Hybris Plugin from the eclipse marketplace
Import the platform (Click on Import > select Import SAP Hybris platform > select the platform path), the eclipse will import other dependent projects.

This is an Eclipse related issue generally.
Try importing your extension projects alongwith the platform ext. project in an usual manner through "Import existing projects into workspace" followed by selecting all the projects and pressing F5 (Refresh).
If the issue persists select all the projects again and click on Projects -> Clean (Can be found on the tool bar along side File and Edit)

Related

Visual Studio: Include PlugIn but leave out windows part

I am trying to use not the nuget package but the project itself from the media plugin for xamarin forms.
I am adding all the references and upon build (or even clean) i get :
Error: The specified language targets for uap10.0.16299 is missing. Ensure correct tooling is installed for 'uap'. Missing: '/Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/xbuild/Microsoft/WindowsXaml/v16.0/Microsoft.Windows.UI.Xaml.CSharp.targets' (Media.Plugin)
I beleive it is looking for the windows SDK which isnt isntalled on my mac and the project itself only supports android and ios.
Using the nuget package, I can check that I only want ios and Android and it works fine, but upon loading the project in as the project it gives me this error.
In the dependencies folder of the project it is still referencing this UAP 10.0.16299 but upon right click all I can do is "refresh".
How can I build my project and leave out this windows crap?
First include the whole project, then edit the CS proj file (right click on solution -> edit project file).
In the first few lines it says: <TargetFramworks...
Remove the unwanted dependencies. They will be gone in the main folder if you save.
Thats it.

Module Not in Gradle View [duplicate]

I've a big problem with Android Studio.
I have a project that depends on two other projects (as libs).
I followed the guide Problems importing project into Android Studio regarding ActionBarSherlock for import external modules.
I opened "Project Structure", imported the module, but after that I can't see it in the Modules area.
The Modules area contains only the root module, seems it is not refreshed (this is strange). So if I try to add the module as a Dependency, Android Studio doesn't find any module!
Then, if I try to re-import the module, it says that the module/project is already registered!!
Maybe I'm missing something, but I don't know what....! I have this problem both on Windows and MacOSX.
Thanks in advance,
Federico
Look around in your .idea directory for mentions of the problematic project. I had the same problem and resolved it by deleting the entry from .idea/sbt.xml.
In ij go to menu: View -> Tool Windows-> Gradle
Right click on the problematic module and click Refresh External Project, You should see the module in project explorer.
I had a similar problem with ABS and other library imports. The 'Project Structure' interface just wouldn't show the modules. On trying to import the modules, it would prompt, "The project is already registered". Seems to be an IntelliJ/Android Studio issue. Invalidate Caches option didn't help.
Reimporting the project after some cleanup did work for me.
As a precaution, take a backup of your project and store it safely
Ensure that your project builds via gradle command-line and you have all required dependencies specified in respective build.gradle files. Try building with: gradle clean && gradle build
Close the project in Android Studio (or close Android Studio)
Delete .iml files and .idea folders from all modules and the main project
Start Android Studio and reimport the project (Import project from external model > Gradle)
you should remove the project from respective gradle/sbt/maven/ant tab (used to be on right vertical line of Android Studio/Intellij IDEA)
See this answer: https://stackoverflow.com/a/30442195/907576
My issue was fixed when I restart IDEA.

Appcelerator Studio stalls when trying to browse to a file

My appcelerator studio and Mac stalls everytime when I want to browse to import a project, or open a file.
I'm using Appcelerator Studio 4.7.0.20..... on my Mac 10.11.6 with Java 7 installed.
I have to hard reset my mac when hitting the browse button.
Any ideas anyone?
Thanks in advance.
There are other ways you can import your projects into Appcelerator Studio.
Drag-and-drop your project into Project Explorer empty area - here, you will find two options - either linking or copying your project into workspace
Go to File ->Import -> General ->Existing projects into Workspace
I hope one of them will help you to import your project.
However, issue is similar to this - https://jira.appcelerator.org/browse/TISTUD-7851. Can you provide more details on the environment and exact reproducible case in the ticket, so that issue will be addressed soon.

How to Import project into Android Studio and show project folder, not app module

I am trying to import a gradle project that has one 'app' module into Android Studio 0.8.4. During the import, I select the project folder above 'app'. After the import, however, the iml file is only created under the app directory (app/app.iml) and therefore the top level folders in the project are not visible. Android studio opens up into (.../myproject/app)
How can I import my existing gradle project into Android Studio and have it open into (../myproject/)?
I also tried with 0.8.2 and had the same issue.
PS: I saw this similar question, but no matter how many times I try it is still not working for me:
Android Studio 0.8.1: imported project, missing root folder
(There were times when importing the same project twice would do the trick for some reason, but that workaround has stopped working for me)
I had the same problem
I closed the project completely, then I imported it again as non android studio project

Namespace not found within the same project according to intellisense, yet project builds

I have a simple ASP.Net MVC project which for some reason has issues with intellisense. It is constantly giving me errors that namespaces local to the project can not be found, even though they do exist and the project will build fine. Here's an example:
It is very frustrating as this results in me having no intellisense available whatsoever. Has any one encountered a problem like this before, and do they know of a solution?
The project itself is an MVC4 website running in VS2013 in W8 under Paralells on a Macbook Air, should that have any effect on the problem.
As stated, I have no error messages to provide as the project builds and runs successfully, but please let me know if more details are required.
I had the same issue. Try removing your project from the solution and then add it again. It worked for me. Looks like a solution file quirk.
UPDATE: this is not a permanent fix as closing and reopening visual studio brings back the issue.
UPDATE 2: while looking to fix another issue where I couldn't change the default namespace of a project (I would get a System.Runtime.InteropServices.ExternalException), I found out that it was related to Xamarin tools for Visual Studio. I proceeded to completely uninstall Xamarin. It fixed my namespace renaming issue as well as the weird type or namespace not found / intellisense issue.
I had this same issue, seems to be something with the solution file and building the project as I could replicate the problem by simply creating a new project building then restarting visual studio.
Anyway I get around it at the moment by deleting the solution file and opening the project using the project file.
For anyone reading this in 2020, a fix that I've found that has worked for me is:
cleaning the solution and unloading the projects that have dependencies such as a web API depending on a data project and an application project (right click on the project in solution explorer and find "Unload Project"),
then reloading and building each project in the order of dependence such that they build successfully (right click on the unloaded project in solution explorer and find "Reload Project").
so in my case my data project does not depend on any other project so I reloaded and built that first, then the application project which depends on the data project and finally the web API project which depended on both data and application.

Resources