Code Monkey home page Code Monkey logo

Comments (4)

d-walsh avatar d-walsh commented on July 23, 2024 2

1) *.launch:globbed-files Error

I think one of the problems is when you source using the standard setup.zsh it doesn't load/use the environment hooks correctly:

➜  source /opt/ros/melodic/setup.zsh 
➜  mon launch 
(eval):1: no matches found: *.launch:globbed-files

A workaround is to directly source the rosmon environment hooks:

➜  source /opt/ros/melodic/etc/catkin/profile.d/50-rosmon.zsh

This avoids the *.launch:globbed-files error.

2) _values:compvalues:11: not enough arguments Error

There is another error:

➜  mon launch image_geometry 
_values:compvalues:11: not enough arguments
_values:compvalues:11: not enough arguments
_values:compvalues:11: not enough arguments

And I have a fix for it - it's because even with an empty string the size of files is 1.
In https://github.com/xqms/rosmon/blob/master/rosmon_core/env-hooks/50-rosmon.zsh#L47

		if [[ $#files -gt 0 ]] && [[ -n $files ]]; then
			_values 'launch files' $files
		fi

from rosmon.

xqms avatar xqms commented on July 23, 2024

Hm, I don't use zsh myself. I doubt that there has been a regression (the zsh completion code has remained largely unchanged), probably you are hitting a problem that was always there.

If you are interested in this, feel free to look into it - as mentioned, I'm not a zsh expert myself...

from rosmon.

matawed avatar matawed commented on July 23, 2024

Yes, most likely this is no degradation.

I'll have a look at it. One of the problems is in here:

'launch:launch file:{_files -g "*.launch"}' \

if there is no launch file in this directory globbing fails and thus this error is reported.

from rosmon.

xqms avatar xqms commented on July 23, 2024

Hey, thanks for the information :)

Regarding 1): As far as I know the setup.zsh should do exactly the same as directly sourcing our file... Maybe it's an ordering issue? Maybe we get loaded too early in setup.zsh?

Regarding 2): Nice! Maybe we can prepare a PR to collect the fixes. I don't have time to work on this right now, though (and zsh is pretty low on my priority list, as I don't use it :-P).

from rosmon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.