Coder Social home page Coder Social logo

flow.launcher.plugin.datediff's People

Contributors

leodupont avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jjw24

flow.launcher.plugin.datediff's Issues

BUG: Error message witth incorrect input

I got an error after typing: dd 1-2-2020 1-3-2020 day

Message:
Please open new issue in: https://github.com/LeoDupont/Flow.Launcher.Plugin.DateDiff/issues/new

  1. upload log file: C:\Users\dawid\AppData\Roaming\FlowLauncher\Logs\1.11.0\2023-01-19.txt
  2. copy below exception message

Flow Launcher version: 1.11.0
OS Version: Microsoft Windows NT 10.0.22621.0
IntPtr Length: 8
x64: True

Python Path: C:\Users\dawid\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe
Node Path:
Date: 01/19/2023 16:33:58
Exception:
DateDiff Exception:
Websites: https://github.com/LeoDupont/Flow.Launcher.Plugin.DateDiff
Author: LeoDupont
Version: 1.1.0
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3
return number.toLocaleString({
^

TypeError: Cannot read properties of undefined (reading 'toLocaleString')
at localeNumber (file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3:16)
at dateDiff (file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/dates.js:123:20)
at query (file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/query.js:68:22)
at file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/main.js:9:3
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)

Node.js v18.12.1

---> System.IO.InvalidDataException: file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3
return number.toLocaleString({
^

TypeError: Cannot read properties of undefined (reading 'toLocaleString')
at localeNumber (file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3:16)
at dateDiff (file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/dates.js:123:20)
at query (file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/query.js:68:22)
at file:///C:/Users/dawid/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/main.js:9:3
at ModuleJob.run (node:internal/modules/esm/module_job:193:25)
at async Promise.all (index 0)
at async ESMLoader.import (node:internal/modules/esm/loader:530:24)
at async loadESM (node:internal/process/esm_loader:91:5)
at async handleMainPromise (node:internal/modules/run_main:65:12)

Node.js v18.12.1

at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 287
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 292
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 307
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<b__0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 191
--- End of stack trace from previous location ---
at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 40
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
--- End of inner exception stack trace ---
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 213
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass135_0.<g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 821
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.QueryResults() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 785
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Add Help result

When no result (or always?): show a "Help" result with usage and link to the README when clicked.

Datediff crashes when typing "s" as unit

Flow Launcher version: 1.16.1
OS Version: 22621.2283
IntPtr Length: 8
x64: True

Python Path: C:\Users\chiar\AppData\Roaming\FlowLauncher\Environments\Python\PythonEmbeddable-v3.8.9\pythonw.exe
Node Path:
Date: 10/10/2023 19:38:44
Exception:
DateDiff Exception:
Websites: https://github.com/LeoDupont/Flow.Launcher.Plugin.DateDiff
Author: LeoDupont
Version: 1.1.0
Flow.Launcher.Core.ExternalPlugins.FlowPluginException: file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3
return number.toLocaleString({
^

TypeError: Cannot read properties of undefined (reading 'toLocaleString')
at localeNumber (file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3:16)
at dateDiff (file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/dates.js:123:20)
at query (file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/query.js:68:22)
at file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/main.js:9:3
at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:66:12)

Node.js v20.8.0

---> System.IO.InvalidDataException: file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3
return number.toLocaleString({
^

TypeError: Cannot read properties of undefined (reading 'toLocaleString')
at localeNumber (file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/helpers.js:3:16)
at dateDiff (file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/dates.js:123:20)
at query (file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/query.js:68:22)
at file:///C:/Users/chiar/AppData/Roaming/FlowLauncher/Plugins/DateDiff-1.1.0/src/main.js:9:3
at ModuleJob.run (node:internal/modules/esm/module_job:217:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async loadESM (node:internal/process/esm_loader:34:7)
at async handleMainPromise (node:internal/modules/run_main:66:12)

Node.js v20.8.0

at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 297
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.ExecuteAsync(ProcessStartInfo startInfo, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 297
at Flow.Launcher.Core.Plugin.JsonRPCPlugin.QueryAsync(Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\JsonRPCPlugin.cs:line 313
at Flow.Launcher.Core.Plugin.PluginManager.<>c__DisplayClass22_0.<b__0>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 194
--- End of stack trace from previous location ---
at Flow.Launcher.Infrastructure.Stopwatch.DebugAsync(String message, Func`1 action) in C:\projects\flow-launcher\Flow.Launcher.Infrastructure\Stopwatch.cs:line 40
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 216
--- End of inner exception stack trace ---
at Flow.Launcher.Core.Plugin.PluginManager.QueryForPluginAsync(PluginPair pair, Query query, CancellationToken token) in C:\projects\flow-launcher\Flow.Launcher.Core\Plugin\PluginManager.cs:line 216
at Flow.Launcher.ViewModel.MainViewModel.<>c__DisplayClass139_0.<g__QueryTask|2>d.MoveNext() in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 849
--- End of stack trace from previous location ---
at Flow.Launcher.ViewModel.MainViewModel.QueryResults(Boolean isReQuery) in C:\projects\flow-launcher\Flow.Launcher\ViewModel\MainViewModel.cs:line 850
at System.Threading.Tasks.Task.<>c.b__128_0(Object state)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

2023-10-10.txt

Add date calculation

Allow to add or subtract integers from a date, with parameters in the form:

dd <fromDate> <operation>

Examples:

dd today +6d
dd 20/4 -1y3m

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.