nehaarya2003 / moloko

Automatically exported from code.google.com/p/moloko
GNU General Public License v3.0
0 stars 0 forks source link

Failed to lex - Smart List not working #89

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create Smart List with the filter "dueBefore:tommorow OR due:tommorow OR 
list:"Kurzfristig (Woche)" OR ((dueWithin:"1 week" OR due:"1 week") AND NOT 
tag:hide)"
2. Sync with RTM

What is the expected output? What do you see instead?

Expected output is a short list with all entries from the list "Kurzfristig 
(Woche)" and all entries due today or tommorow - and all entries due within a 
week (except the ones that have the tag hide)

What I see instead is a list with all tasks that I every created in RTM (open 
and finished). 

What version of the product are you using? On what operating system?
0.17.0b on Android 4.2.1 (Nexus 4)

Please provide any additional information below.

Moloko version: 0.17.0b
Device model: Nexus 4
Firmware version: 4.2.1
Board: MAKO
Brand: google
Device: mako
Display: JOP40D
Fingerprint: google/occam/mako:4.2.1/JOP40D/533553:user/release-keys
Host: vpba6.mtv.corp.google.com
ID: JOP40D
Model: Nexus 4
Product: occam
Tags: release-keys
Time: 1353372961000
Type: user
User: android-build

02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): Failed to lex 
(dueBefore:tommorow OR due:tommorow OR list:"Kurzfristig (Woche)" OR 
((dueWithin:"1 week" OR due:"1 week") AND NOT tag:hide))
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): 
org.antlr.runtime.RecognitionException
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
dev.drsoran.moloko.grammar.RtmSmartFilterLexer.getResult(RtmSmartFilterLexer.jav
a:429)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
dev.drsoran.moloko.util.parsing.RtmSmartFilterParsing.evaluateRtmSmartFilter(Rtm
SmartFilterParsing.java:122)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
dev.drsoran.rtm.RtmSmartFilter.evaluate(RtmSmartFilter.java:221)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
dev.drsoran.rtm.RtmSmartFilter.getEvaluatedFilterString(RtmSmartFilter.java:134)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
dev.drsoran.moloko.content.ListOverviewsProviderPart.getSmartFilterTaskCount(Lis
tOverviewsProviderPart.java:467)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
dev.drsoran.moloko.content.ListOverviewsProviderPart.createListOverview(ListOver
viewsProviderPart.java:455)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
dev.drsoran.moloko.content.ListOverviewsProviderPart.getListsOverview(ListOvervi
ewsProviderPart.java:223)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
dev.drsoran.moloko.loaders.RtmListWithTaskCountLoader.queryResultInBackground(Rt
mListWithTaskCountLoader.java:75)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
dev.drsoran.moloko.loaders.RtmListWithTaskCountLoader.queryResultInBackground(Rt
mListWithTaskCountLoader.java:1)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
dev.drsoran.moloko.loaders.AbstractLoader.loadInBackground(AbstractLoader.java:7
3)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
android.support.v4.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.ja
va:240)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoad
er.java:51)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
android.support.v4.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoad
er.java:40)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
android.support.v4.content.ModernAsyncTask$2.call(ModernAsyncTask.java:123)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
java.util.concurrent.FutureTask.run(FutureTask.java:234)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
02-12 19:27:51.030 W/Moloko.RtmSmartFilterParsing( 1517): at 
java.lang.Thread.run(Thread.java:856)

Original issue reported on code.google.com by andreas....@gmail.com on 12 Feb 2013 at 7:01

GoogleCodeExporter commented 8 years ago

Original comment by ronny.roehricht on 13 Feb 2013 at 4:55

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r722.

Original comment by ronny.roehricht on 13 Feb 2013 at 6:51

GoogleCodeExporter commented 8 years ago
Problem was a spelling error in 
dueBefore:tommorow (<-- INCORRECT)
dueBefore:tomorrow (<-- CORRECT)

Apparently RTM is a little bit more spelling error tolerant than Moloko

Original comment by andreas....@gmail.com on 14 Feb 2013 at 10:29

GoogleCodeExporter commented 8 years ago

Original comment by ronny.roehricht on 14 Feb 2013 at 12:12

GoogleCodeExporter commented 8 years ago

Original comment by ronny.roehricht on 15 Feb 2013 at 5:42

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r723.

Original comment by ronny.roehricht on 15 Feb 2013 at 6:01