Eclipse not showing any 'targets' when creating a new project
Hey all,
I just installed the new Eclipse plugin (PLCn CLI and SDK) by following the "How to install Eclipse IDE tools on Windows 10" -Youtube video: https://www.youtube.com/watch?v=UNbNv7eBHPE
But when I started to follow the "How to program C++ on a PLCnext Control" -video: https://www.youtube.com/watch?v=IUGSZzuzm-c my "start new program" part was different.
At timestamp 1:00 there is a "Supported Targets" part where "Available Targets" -list has a 'AXCF2152_V2.0' but I don't have anything (picture).
Where I can add this target and why I don't have it..? Without the target I can't build the project.
Comments
Hello Jarkko,
If that all looks OK, then please execute the following from a command prompt (from the plcncli installation directory):
plcncli get sdks
This shows all the SDKs that are available to the CLI. Does this show the directory where you installed the SDK?
Then execute the following command:
plcncli get targets
This should show the following target:
AXCF2152,2019.0 LTS (19.0.0.17548 )
This is the target that you should see in the Eclipse window in you screen shot.
If you cannot see the SDK, then please try re-installing the SDK in the same location.
Please let me know how you get on.
- Martin.
Thank you Martin,
Everything in Eclipse is as it should be but it seems that the SDK is not installing properly.
CLI unpacks the .tar file and installs something for 5 minutes, but after that it never gives me "Successfully installed" message and only leaves the empty folders in installation path.
I followed the C:\SDKs\AXCF2152\2019.0\ folder as it was installing and I saw how it creates all the files, but after 4,5 minutes the CLI stops, shows me 0.00% and all the files disappear from the installation folder (picture).
I don't know if my win10 is deleting them or if the SDK is corrupted. Is there any way to check this? I already re-downloaded the SDK
Hmm, yes, that looks like an incomplete installation ...
I have had a problem with the installation timing out after about 5 minutes (on a slow Windows VM), in this case I just repeated the install command and it (eventually) finished OK.
I see an archive file in the installation folder during the install - is this where you put the .tar.xz file that you downloaded? If so, perhaps try putting the archive file in another folder outside the install location, and run the install again ... this might be confusing the install process?
If that doesn't work, then you might try opening the command prompt as Administrator before running the plcncli install command.
- Martin.
The real archive file is in an other folder. I run it from My Documents where I downloaded it.
I have also opened the command prompt as Administrator and without, neither of them works.
I will try the repetition method later if nothing else comes up.
OK, the "during install" picture shows the files I'd expect to see for a complete install - so I don't know why it deletes them again. The SDK is pretty big - you have plenty of space on C? (the installer should check this, but ...)
Yes, have a plenty of space on C:-drive, that can't be the issue.
While I was trying the repetition method, I noticed the installer gives a error message that only flashes for a 1/2 second. After couple of tries I was able to get a screenshot and in picture you see it says "While exploring the SDK path_name an error occurred. Operation has timed out."
After this very brief message all the files disappear and the installer stops. I tried to turn off my virus protection and everything just to be sure it wasn't win10 Defender.
Any idea what could cause this and how to fix this?
This is also the message that I saw when my installation timed out. I guess there is a timeout set in the installer ...
It looks like it managed to install the SDK, but timed out while looking through the SDK for targets to add. In this case, please try the following command from that same folder:
plcncli set setting SdkPaths C:/SDKs/AXCF2152/20190 --add
This should make the CLI aware of the SDK that has been installed.
Then try the commands:
plcncli get sdks
plcncli get targets
... to check if the CLI has picked up the SDK and the AXC F 2152 target.
Well, I tried the command:
"
plcncli set setting SdkPaths C:/SDKs/AXCF2152/20190 --add"
and it gives an error because there is no SDKs to be found.. (picture) After that re-install does the same thing (timed out).
"get targets" and "get sdks" shows an empty list.
Hello Jarkko,
can you please upload the log.txt from your C:/user/AppData/Roaming/plcncli.Common folder. The timeout occurs while exploring, because the unpacking failed and it is missing some files.
My first idea is any antivirus is deleting your files after unpacking. But a typical antivirus is giving some warnings before deleting files. Anyway check this.
An other idea is a permission problem. You shall not install the CLI (run as administrator) or SDKs via the CLI (start an administrator console) with administrator rights. The configuration of the CLI is user bound, that means, if you install an SDK as administrator, the admin has an installed SDK but not the user. Please try to install the SDK to your User folder instead of "C:/SDKs/". For me C:/SDKs/ worked out fine, but probably this could lead to permission problems as well.
If nothing helps you can unpack the SDK manually with e.g. 7zip. Ignore the warning about data after the end of the payload and overwrite duplicate files.
Start the console as normal user and use the following command: plcncli.exe set setting SdkPaths -a
- Marcel
Hello Jarkko,
please check your windows username.
It must not have any space character in it.
Repeat the installation of PLCnCLI and SDK with another windows user without space characters.
Regards
Angel
Thank you all,
I have tried everything you have suggested and it seems that the Win10 User Name must not have any space characters in it like Angel said.
Now this is a huge problem... I made a new user profile just to test this out and it worked just fine, but of course my "main account" now can't access the SDK. I can change the user name, but the "C:\Users\Account Name\" will always have a space character, which is the main problem. Yeah, I can make a new account and use that but then I have to install all the programs and user settings again.
This is a major flaw in design and will be a headache for a lot of users.
It seems there is no solution for this problem..?
The only answer is to just "create a new win10 user profile with no space characters in the name"?
It would be nice to be able to install the eclipse plugin under the same user as PLCn Engineer...
Hi Jarkko,
I have spoken to the product manager for the CLI and he has raised this as a bug with the developers. Until we have a fix, I am afraid that the best solution appears to be the one you mentioned.
- Martin.
Hallo Martin,
the issue isn't limited to windows 10. I have the same issues with windows 7 on a VM.
I have run all the options mentioned above but still can't get an target in Eclipse. I hope your developer comes up with a solution fast, as I would like to work on a project using C++.
The C# programming works fine but Oliver Warneke suggested to me, to use C++ insted, so that we would have some better options to work in the realtime enviroment.
Peter
Hello together,
I probably have a solution. I was not able to reproduce the issue by myself and there for I can't verify the fix. But it looks like an issue of the CMake version currently delivered with the PLCnCLI. It randomly freezes in the middle of the "exploring SDK" step. After three attempts the CLI throws the timeout.
My suggestion is, to install the up to date version of CMake (https://cmake.org/download/) and let the installer set the path variables or do it by yourself.
Then set the PLCnCLI to prefer system commands with the following setting:
plcncli set setting UseSystemCommands false
It would be nice if someone with this issue can verify if the new CMake fixes it or not.
- Marcel