Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TW-1511] Project titles not properly parsed if they contain hyphens #1537

Closed
taskwarrior opened this issue Feb 14, 2018 · 6 comments
Closed
Labels
type:bug Something isn't working
Milestone

Comments

@taskwarrior
Copy link

Leon Feng on 2015-01-14T17:59:14Z says:

bq. The expression could not be evaluated.
Thus saith the warrior, when I enter
task pro:<any-project-title-with-hyphens-in-it>.

The end.

(Related to TW-1479, I presume.)

@taskwarrior taskwarrior added this to the 2.4.5 milestone Feb 14, 2018
@taskwarrior taskwarrior added type:bug Something isn't working fixed labels Feb 14, 2018
@taskwarrior
Copy link
Author

Migrated metadata:

Created: 2015-01-14T17:59:14Z
Modified: 2015-07-16T10:33:28Z

@taskwarrior
Copy link
Author

Blake Sweeney on 2015-02-18T14:00:57Z says:

This seems to have gotten worse in 2.4.1. See:

$ task add Some example project:an-example
Created task 96.
$ task list project:an-example
The expression could not be evaluated.
task(76975) malloc: error for object 0x7ff4c9c71658: incorrect checksum for freed object - object was probably modified after being freed. set a breakpoint in malloc_error_break to debug
zsh: abort      task list project:an-example
$ task --version
2.4.1

@taskwarrior
Copy link
Author

Paul Beckingham on 2015-02-19T04:28:57Z says:

I cannot replicate the malloc error on OSX.

Workaround (also puts the filter before the command - good habit):

task project.is:an-example list

@taskwarrior
Copy link
Author

Blake Sweeney on 2015-02-19T14:12:03Z says:

I also have OSX. When I use task project.is:an-example it does work. But when I do:

task project:an-example list

I no longer get malloc errors, but now it just says The expression could not be evaluated.. I'll use .is for now. Thanks. I think there was something wrong with my machine because I can no longer get a malloc error. Odd.

@taskwarrior
Copy link
Author

Dylan Mikus on 2015-05-12T14:47:04Z says:

Just a note, in v2.4.3, if I have a project "foo-bar" and I type the command:

{code}
task project:foo-bar
{code}

It does nothing except error out and say "Cannot subtract strings".

This error also happens if I surround "foo-bar" in single- or double-quotes.

@nanangarsyad
Copy link

I got the same message

"Cannot subtract strings"

after I built the latest commit 8e20c48
How to fix this?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants