RESOLVED: Imported Project Not Visible. Re-import NGClient?

Questions and answers regarding the use of eclipse environment as seen in Servoy Developer

RESOLVED: Imported Project Not Visible. Re-import NGClient?

Postby joe26 » Thu Mar 11, 2021 6:50 pm

Hey all,

Attempting to import a new project from git that is new, but the project isn't showing. Was running 2020.09, and updated to 2020.12.

The new project is an ng-client app, I believe. Got it secondhand, as in, not mine. It has artifacts that make it look like an ngclient.

Some or all projects cannot be imported because they already exist in the workspace


I'm just viewing the branch with a new form, but the project does not show in my workspace.

It is in the git directory for the branch.

I've attempted this with new workspaces and the new code just will not show. This is coming from another programmer, and it's the same Servoy version after my update to theirs.

Is this due to a version update?
Are there log files anywhere indicating the error?

thanks,
--Joe.
Last edited by joe26 on Sun Apr 18, 2021 4:06 pm, edited 1 time in total.
joe26
 
Posts: 172
Joined: Wed Jun 19, 2013 10:30 pm

Re: Imported Project Not Visible. How to re-import NGClient?

Postby Andrei Costescu » Mon Mar 15, 2021 8:38 am

It is not clear to me what you are doing.

What git client do you use?
What dir is the git repo and git project?
What dir is your developer's workspace?
(you can change the names of repos/projects with something similar (different strings) if you want to keep those private but just keep similar paths to make me understand)

What do you use to import the project? Import existing projects wizard from the File menu or eGit import projects context menu or? Do you check also the "copy projects into workspace" option of that importer wizard/dialog?

If you open the Project Explorer or Navigator view from Window -> Show view and you deselect working set from the view toolbar to see all projects, do you have the project you are trying to import already in there? Maybe as "closed"?
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm

Re: Imported Project Not Visible. How to re-import NGClient?

Postby joe26 » Fri Mar 19, 2021 5:03 pm

My git client is eGit.

The git repo is C:\Users\Alienware\git2020\files_sts748.

The developers workspace is C:\Users\Alienware\servoy_workspace2020_new

I used the smart import, and in another used the manual input. I try to use the basic tools within eclipse so that I don't get stuck in trying to remember when reinstalling. So this is all from with eclipse.

That last, Deselect the Working Set from the view toolbar, I'm not seeing the Project in the Project Explorer but can see it in the Project Explorer.

thanks!
joe26
 
Posts: 172
Joined: Wed Jun 19, 2013 10:30 pm

Re: Imported Project Not Visible. How to re-import NGClient?

Postby Andrei Costescu » Fri Mar 19, 2021 6:07 pm

  1. What does smart import mean?
  2. What does manual input mean?
  3. What do you mean with "I'm not seeing the Project in the Project Explorer but can see it in the Project Explorer"? Do you mean you do not see it under "All solutions" node in Solution Explorer but you do see it in Project Explorer? If that is the case then the projects are either closed or their files are incomplete/incorrect. You have to make sure that all the needed projects are open (action from context menu on a project in Project Explorer). Also all solutions should have in their root folder a .project file (maybe check in on disk) and that should contain the com.servoy.eclipse.core.ServoyProject nature. You could create a new solution, see what that generates and compare with what you have.

The developer workspace log file would be in C:\Users\Alienware\servoy_workspace2020_new\.metadata\.log" and another log you can check is [your servoy install dir]\application_server\servoy_log.txt.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm

Re: Imported Project Not Visible. How to re-import NGClient?

Postby joe26 » Fri Mar 19, 2021 10:45 pm

1. Smart import = File/Import/Git/Import from Git (with smart import)

2. Manual import = File/Import/Git/Import from Git

3. Oh, yeah, meant 'All Solutions'. Cannot blame phone text substitution for that one...
The additional items in the Git folder the problematic import is missing the following files:
medias.obj
rootmetadata.obj
solution_settings.obj
.buildpath

Looks like a .project template instead of a current project:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
   <name>KEYGEN</name>
   <comment></comment>
   <projects>
   </projects>
   <buildSpec>
   </buildSpec>
   <natures>
   </natures>
</projectDescription>


Versus what is in the operational Solution (just copied the code into the same-named folders and files...
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
   <name>KEYGEN2</name>
   <comment></comment>
   <projects>
      <project>resources_sts</project>
   </projects>
   <buildSpec>
      <buildCommand>
         <name>org.eclipse.dltk.core.scriptbuilder</name>
         <arguments>
         </arguments>
      </buildCommand>
      <buildCommand>
         <name>com.servoy.eclipse.core.servoyBuilder</name>
         <arguments>
         </arguments>
      </buildCommand>
   </buildSpec>
   <natures>
      <nature>com.servoy.eclipse.core.ServoyProject</nature>
      <nature>org.eclipse.dltk.javascript.core.nature</nature>
   </natures>
</projectDescription>


I should be able to sub in the missing information, right?

thanks,
--Joe.
joe26
 
Posts: 172
Joined: Wed Jun 19, 2013 10:30 pm

Re: Imported Project Not Visible. How to re-import NGClient?

Postby Andrei Costescu » Mon Mar 22, 2021 10:27 am

Yes you should be able to insert the missing content in .project and reconstruct/guess contents of the other files that are needed - if you can't get the original ones (which would be ideal - less guessing as to what they should be; for example you don't have to guess the first form from solution_settings.obj nor populate medias.obj with all media file info).
It's weird that they are not on git. So the rest of the solution is there in the project(s), just these root files are missing?

I actually never used those import options. I always go to Git perspective, Git repositories view, add/clone my git repos there and using right click I import the projects. But I expect the result to be identical to directly using the import options that you mentioned.
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm

Re: Imported Project Not Visible. How to re-import NGClient?

Postby joe26 » Fri Mar 26, 2021 1:09 am

Andrei,

I've replaced the files with a functional NGClient app from my developer. Adding the missing files enabled the visibility of the project.

Initially, Developer indicated the Solution cannot be activated due to being created by a later version. A restart if the IDE brought permitted activation of the App.

Thanks,
--Joe.
joe26
 
Posts: 172
Joined: Wed Jun 19, 2013 10:30 pm

Re: Imported Project Not Visible. How to re-import NGClient?

Postby Andrei Costescu » Fri Mar 26, 2021 9:23 am

Great! :)
Andrei Costescu
Servoy
Andrei Costescu
 
Posts: 1018
Joined: Tue Jun 26, 2007 3:14 pm


Return to Eclipse Environment

Who is online

Users browsing this forum: Bing [Bot] and 4 guests