ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rosed not working with nano

asked 2020-02-07 19:33:26 -0500

phil123456 gravatar image

updated 2020-02-07 19:36:56 -0500

jayess gravatar image

Hello,

I cant get rosed to work at all in melodic with nano (Ubuntu 18.04 LTS)

$ export EDITOR='nano -w'

when I run it :

$ rosed find: paths must precede

expression: `f' That file does not

exist in that package.

when I use it to edit a file :

$ rosed CMakeLists.txt

Couldn't find package [CMakeLists.txt]

I dont get it, the file is there, any help appreciated

regards

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2020-02-07 19:41:22 -0500

jayess gravatar image

If you take a look at rosed on the wiki, you'll see that the pattern for using rosed is as follows:

rosed [package_name] [filename]

not

rosed [filename]

The error that you're getting tells you that you're passing CMakeLists.txt as the package name (which isn't what you want):

Couldn't find package [CMakeLists.txt]

So, to edit the file using rosed, use the pattern:

rosed [package_name] [filename]
edit flag offensive delete link more
0

answered 2020-02-07 19:36:46 -0500

phil123456 gravatar image

updated 2020-02-07 19:42:09 -0500

jayess gravatar image

damned, I had to add the package name

dont know why it did not work the first time, now it does

rosed beginner_tutorials Num.msg

rosed beginner_tutorials CMakeLists.txt

these work fine

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-02-07 19:33:26 -0500

Seen: 363 times

Last updated: Feb 07 '20