ros-industrial / ros_qtc_plugin

ROS Qt Creator Plug-in (https://ros-qtc-plugin.readthedocs.io)
396 stars 213 forks source link

Help: Cannot retrieve remote tree while installation #465

Closed Salman-F closed 2 years ago

Salman-F commented 2 years ago

Hello,

i want to install qtcreator with ros plugin. But i get the error message "Cannot retrieve remote tree".

I think the server is available so i dont know what the problem is.

I am on Ubunut 20.04 (frehsly installed)

I also tried setting a temporary repository with the path to: https://qtcreator-ros.datasys.swri.edu/downloads/repositories/bionic/latest/

But i get this error code: Cannot open Updates.xml for reading: No file name specified

I got this information from #303

I just tried installing it with: sudo snap install qtcreator-ros --classic but the application doesn't open :(

After trying to start qtcreator installed via snap i get this error message

qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Aborted (core dumped)

I tried the offline installer: https://ros-qtc-plugin.readthedocs.io/en/latest/_source/How-to-Install-Users.html But the qt creator version is really old and doesnt include examples or anything... What is the correct way to install qt creator with ros?

christian-rauch commented 2 years ago

Can you be more specific what you are trying to do? Do you have issues to download the git repo or the snap package?

Salman-F commented 2 years ago

@christian-rauch Hello, i documented everythin i tried. I am trying to install qt creator with ros plugin. I tried 1) The online installer found here 2) after that i tried the snap package and this did not work either 3) after that i installed the offline installer here --> but this versions seems old and it looks like it is not the right way to install

All errors accurd are mentioned above. What do you mean with "do you have issues downloading the git repo"?

I just want to install qtcreator with ros for a university project. I dont care on which way haha

christian-rauch commented 2 years ago

What do you mean with "do you have issues downloading the git repo"?

When you said

i want to install qtcreator with ros plugin.

it wasn't clear to me how you tried to install it. There are multiple ways. I assumed that Cannot retrieve remote tree was related to the git remote tree.

The recommended (and easiest) way is now the snap package. But I see just now that it does not work properly with the platform plugins.

Alternatively, you can follow the Plugin Installation instructions and install the plugin on top of a regular Qt Creator installation.

Salman-F commented 2 years ago

I got this message Cannot retrieve remote tree from the online installer found in the documentation here (for bionic 18.04) -> I also tried everythin mentioned in #303

Sadly the easiest way doesn't work :(

Okay i will try to install the plugin on top of a regular Qt Creator installation. Do i have to execute the Build section too?

And thank you very much for your fast help

christian-rauch commented 2 years ago

I think the online installer is deprecated. I haven't used either of those in a long time since they install a very old Qt Creator version.

Sadly the easiest way doesn't work :(

I reverted that change to an older version (Qt Creator 7). If you delete the snap and install again, it should install the previous version on the stable channel with Qt Creator 7. The new version will stay on the edge channel until I managed to fix that issue.

Salman-F commented 2 years ago

Okay. I just tried to install the Plugin on top of a regular Qt Creator installation. All seemed well but unfortunately i can't build my projects. I get the following message (in the tab general message)

[ROS Error] ROS does not appear to be installed.
 Check ROS Settings page to verify that the install location is valid 

And this error message

23:41:18: Could not start process "colcon" build --cmake-args -G 'CodeBlocks - Unix Makefiles' -DCMAKE_BUILD_TYPE=Debug.
Error while building/deploying project test (kit: Desktop)
When executing step "Colcon Step"

I think it appears because i cant set my Default Distribution.

Screenshot from 2022-07-28 23-39-00

If i press the Drop down menu nothing appears. This is Qt Creator 8.0.0.

Any suggestions why this happens?

christian-rauch commented 2 years ago
  1. Can you build the workspace from the terminal?
  2. Does the file /usr/bin/colcon exist?
Salman-F commented 2 years ago
  1. Yes i can build from the terminal
  2. Yes the file /usr/bin/colcon exist

After i build from the terminal i could also build in qt creator. I tried added a executable to the run configuration and got this error message image

Because of that i tried cleaning the project and again i cant build from qt creator. But if i colcon build from the terminal it works again but the error above occurs.

christian-rauch commented 2 years ago

Not sure what the problem is here. In any case, this problem is unrelated to the installation the snap and the manual installation should work now.

For the other issue you encounter, check if this is a regression from Qt Creator 7 or earlier by installing those older Qt Creator versions manually and testing with the corresponding plugins from https://github.com/ros-industrial/ros_qtc_plugin/releases.

If this is a regression, please open a new issue related to this specific issue. I am going to close this issue as I consider it fixed. If you still have installation issues, reopen it.

Salman-F commented 2 years ago

I personally think it is still an installation issue because i can't get my application running trough qt creator. I tried executing the executable with a terminal and it worked. I think the red error message above has to do something with the integration of ros in qt creator.

I will try the snap installation later but is their something we could do about Qt Creator 8.0.0 and the ros plugin? Any way to fix it? (so colcon works immediately and you can execute executables)

Salman-F commented 2 years ago

@christian-rauch i don't think i can reopen this issue by myself

christian-rauch commented 2 years ago

I personally think it is still an installation issue because i can't get my application running trough qt creator. I tried executing the executable with a terminal and it worked. I think the red error message above has to do something with the integration of ros in qt creator.

The title of this issue does not reflect the problem you are facing. As far as I can tell, you managed to install Qt Creator with plugin.

I will try the snap installation later but is their something we could do about Qt Creator 8.0.0 and the ros plugin? Any way to fix it? (so colcon works immediately and you can execute executables)

I cannot tell what is wrong in your setup. I cannot reproduce this. It would be better if you provide a full list of steps to reproduce this. From what I can tell from your screenshot is that colcon seems to work but that there are issues writing to a directory.

Qt Creator 8 with plugin works for me on a colcon workspace on ROS2 humble.

Salman-F commented 2 years ago

Hello i just tried the snap installation but if i try to execute an executable i get this error:

image

And i am sure that the executable is in that directory.

I will try to get Qt Creator 8 running with the plugin and ROS2 foxy. The steps i made (maybe you could also post your steps so i can recreate them because it is working for you? @christian-rauch )

  1. I installed ROS2 foxy from here
  2. After that i installed colcon as described on the foxy website here
  3. After that i downloaded Qt creator from here (Qt Creator 8.0.0 and Qt 6.3.1)
  4. After that i followed the instruction from your installation page here --> Thats how i got the error in here

After i build from the terminal i could also build in qt creator. I tried added a executable to the run configuration and got this error message image

Because of that i tried cleaning the project and again i cant build from qt creator. But if i colcon build from the terminal it works again but the error above occurs.

I think that maybe i am missing a step or some dependencies because my system is freshly setup -> Ubuntu 20.04

In the general messages tab in Qt Creator i get messages like that image I think it is related because i cant set a default distribution

jage92 commented 1 year ago

I have the same issue when I try to run ROS2 node from QtCreator. If I activate the check to run the node in the Linux terminal (in run config panel) not work and QtCreator crash.

It makes a correct compile of the workspace with Colcon from QtCreator can not run nor debug. I am using also Ubuntu 20 with ROS Galactic

christian-rauch commented 1 year ago

I have the same issue when I try to run ROS2 node from QtCreator.

Which issue?

If I activate the check to run the node in the Linux terminal (in run config panel) not work and QtCreator crash.

Can you provide a backtrace or something to reproduce this crash? Is this the snap version or the one from the Qt website?

It makes a correct compile of the workspace with Colcon from QtCreator can not run nor debug.

You can compile the workspace in Qt Creator but not run it? Can you provide more details what you tried to do?

This issue mentions different settings, e.g. installation with and without the snap. It's difficult to fix the issue if different issues are reported in different configurations.

jage92 commented 1 year ago

You are right, I have opened a new issue. Sorry. The issue is: #473

Best