profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/pragdave/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

bunyan-logger/bunyan_core 13

A distributed logger for Elixir

elixir-lab/lab0 2

Refactoring into match/transform style

groxio/Assets 1

Images, artwork, fonts, audio, etc

bunyan-logger/bunyan_formatter 0

Component to format log messages

bunyan-logger/bunyan_shared 0

Library that simply defines levels for the Bunyan logger. See https://github.com/pragdave/bunyan

bunyan-logger/bunyan_writer_device 0

Bunyan logger component that writes to a device

cse5391-ff/a01-functions 0

Assignment 1: anonymous and named functions

DylanCaro22/SMURF 0

Final ProgLang project

issue commentharc/ohm

Use of Unicode escapes confuses `generateRecipes`

I am curious why there is a difference between JS and TS here. Can you let me know which version of TypeScript you're using? It seems to work for me under 4.4.3

{
  "name": "my-jq",
  "version": "1.0.0",
  "main": "cli.js",
  "license": "MIT",
  "devDependencies": {
    ***@***.***/cli": "^0.1.0",
    ***@***.***/jest": "^27.0.1",
    ***@***.***/node": "^16.9.1",
    "fast-glob": "^3.2.7",
    "jest": "^27.0.6",
    "ts-jest": "^27.0.4",
    "ts-node": "^10.2.1",
    "typescript": "^4.4.3"
  },
  "dependencies": {
    "ohm-js": "^16.0.0-pre.2"
  },
  "scripts": {
    "test": "jest",
    "testw": "jest --watch"
  }
}
pragdave

comment created time in 5 days

issue openedharc/ohm

Use of Unicode escapes confuses `generateRecipes`

The following source

JQ {
  lineTerminator
    = "\n" | "\r" | "\u2028" | "\u2029"
}

Generates a recipe file that compiles fine under node, but fails to compile with ts-node. If I remove the two Unicode escapes, it compiles fine under both.

~/P/jq|main ⚡☡
14∙37∙48≻ npx ohm  generateRecipes -t tmp/jq.ohm
tmp/jq.ohm-recipe.js
tmp/jq.ohm-recipe.d.ts

~/P/jq|main ⚡☡
14∙38∙11≻ ts-node tmp/jq.ohm-recipe.js

/usr/local/lib/node_modules/ts-node/src/index.ts:245
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
tmp/jq.ohm-recipe.js:1:416 - error TS1002: Unterminated string literal.

1 'use strict';module.exports=require('ohm-js').makeRecipe(["grammar",{"source":"JQ {\n\nlineTerminator\n  = \"\\n\" | \"\\r\" | \"\\u2028\" | \"\\u2029\"\n  \n}"},"JQ",null,"lineTerminator",{"lineTerminator":["define",{"sourceInterval":[6,58]},null,[],["alt",{"sourceInterval":[25,58]},["terminal",{"sourceInterval":[25,29]},"\n"],["terminal",{"sourceInterval":[32,36]},"\r"],["terminal",{"sourceInterval":[39,47]},"
                                                                                                                                                                                                                                                                                                                                                                                                                                 
tmp/jq.ohm-recipe.js:2:1 - error TS1005: ',' expected.

2 "],["terminal",{"sourceInterval":[50,58]},"
  ----
tmp/jq.ohm-recipe.js:2:6 - error TS1005: ',' expected.

2 "],["terminal",{"sourceInterval":[50,58]},"
       ----
tmp/jq.ohm-recipe.js:2:14 - error TS1005: ',' expected.

2 "],["terminal",{"sourceInterval":[50,58]},"
              ----
tmp/jq.ohm-recipe.js:2:18 - error TS1005: ',' expected.

2 "],["terminal",{"sourceInterval":[50,58]},"
                   ----
tmp/jq.ohm-recipe.js:2:32 - error TS1005: ',' expected.

2 "],["terminal",{"sourceInterval":[50,58]},"
                                ----
tmp/jq.ohm-recipe.js:3:9 - error TS1002: Unterminated string literal.

3 "]]]}]);
          
tmp/jq.ohm-recipe.js:3:1 - error TS1005: ',' expected.

3 "]]]}]);
  ----
tmp/jq.ohm-recipe.js:3:9 - error TS1005: ']' expected.

3 "]]]}]);
          

  tmp/jq.ohm-recipe.js:1:190
    1 'use strict';module.exports=require('ohm-js').makeRecipe(["grammar",{"source":"JQ {\n\nlineTerminator\n  = \"\\n\" | \"\\r\" | \"\\u2028\" | \"\\u2029\"\n  \n}"},"JQ",null,"lineTerminator",{"lineTerminator":["define",{"sourceInterval":[6,58]},null,[],["alt",{"sourceInterval":[25,58]},["terminal",{"sourceInterval":[25,29]},"\n"],["terminal",{"sourceInterval":[32,36]},"\r"],["terminal",{"sourceInterval":[39,47]},"
                                                                                                                                                                                                   ~
    The parser expected to find a '}' to match the '{' token here.

    at createTSError (/usr/local/lib/node_modules/ts-node/src/index.ts:245:12)
    at reportTSError (/usr/local/lib/node_modules/ts-node/src/index.ts:249:19)
    at getOutput (/usr/local/lib/node_modules/ts-node/src/index.ts:362:34)
    at Object.compile (/usr/local/lib/node_modules/ts-node/src/index.ts:395:32)
    at Module.m._compile (/usr/local/lib/node_modules/ts-node/src/index.ts:473:43)
    at Module._extensions..js (node:internal/modules/cjs/loader:1124:10)
    at Object.require.extensions.<computed> [as .js] (/usr/local/lib/node_modules/ts-node/src/index.ts:476:12)
    at Module.load (node:internal/modules/cjs/loader:975:32)
    at Function.Module._load (node:internal/modules/cjs/loader:816:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)

created time in 5 days

issue openedharc/ohm

fast-glob is missing in the @ohm-js/cli/package.json

I'd generate a PR, but I'm not sure where this lives in the v16 world.

Dave

created time in 6 days

create barnchCodingGnomeArticles/A5-CirclularLists

branch : main

created branch time in 2 months

created repositoryCodingGnomeArticles/A5-CiclularLists

created time in 2 months

issue commentmg979/vim-visual-multi

Arrow keys don't work as expected when multiple selections active

Fair 'nuf.

Back to vim-multiple-cursors I guess.

On Fri, Jul 9, 2021 at 4:58 PM mg979 ***@***.***> wrote:

Closed #177 https://github.com/mg979/vim-visual-multi/issues/177.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mg979/vim-visual-multi/issues/177#event-5002375764, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAACTGAXF4U4DLQT2P2EIHLTW5WHVANCNFSM5ADEF6FQ .

pragdave

comment created time in 2 months

issue openedmg979/vim-visual-multi

Arrow keys don't work as expected when multiple selections active

Describe the issue:

Arrow keys don't work as expected when multiple selections active

Steps to reproduce <!-- keystrokes that reproduce your problem -->

  • select a word with ^N
  • select next occurrence with n
  • using h/l moves the cursors in both selections
  • using left and right cursor keys, and only the cursor in the most recent selection's cursor moves

Verified using minimal .rc

  • Mac OS 11.4:
  • NVIM v0.6.0-dev+1-g62d67de59/Build type: Release:
  • f994695813ebaecc9e37c7ea216c65d9cd659767:

created time in 2 months

push eventpragdave/DefinitelyTyped

Piotr Błażejewicz (Peter Blazejewicz)

commit sha cad01b5ca3bec037ac131e4135077e2786b6fe51

delete(extract-zip): remove DT (#53005) No longer needed, ships with its own definiton: https://github.com/maxogden/extract-zip/releases/tag/v2.0.0 Thanks!

view details

Nikita Umnov

commit sha 3bf946d6fa1ad5558da9709c0ee8c9f97a15b83e

add nib (#53001)

view details

Opportunity

commit sha 6532034c7e762a1f1496f1c360ba07255372f83b

mathjs: supports custom parsing (#52648) * mathjs: supports custom parsing * mathjs: format code with prettier

view details

Piotr Błażejewicz (Peter Blazejewicz)

commit sha 6ad20126073d151ccfb78af3bf0d35d0d4fb56b7

update(extract-domain): v2.3 update (#52641) - options support added (TLD) - tests amended - applied default DT format - version bump https://github.com/bjarneo/extract-domain/releases/tag/v.2.3.0 Thanks!

view details

Nick Betcher

commit sha 71f64f33f920a02303406021e23d3d45b34f0bd7

Update index.d.ts for ibm_db to include executeNonQuerySync() (#52378) * Update index.d.ts * Update index.d.ts Remove unnecessary whitespace

view details

Dimitri B

commit sha cb5aa4d2688ae8ce2d6d9b19b5ce755181e65098

[shorten-repo-url] Remove, bundles it's own types (#52983)

view details

Dimitri B

commit sha f8ddcde828c36a4c4e980f2e8ab1a2313b7ca7e9

[snakecase-keys] Remove, bundles it's own types (#52984)

view details

Dimitri B

commit sha 3f7f481ad46ce781642504ba7748a41b79cf6150

[fast-json-stable-stringify] Remove, bundles it's own types (#52982)

view details

Dimitri B

commit sha aaed964ab3ca13b1c5ef520842d8c721907ad747

[ensure-posix-path] Remove, bundles it's own types (#52981)

view details

Dimitri B

commit sha 8e1b1f20831342761b8f6d433b5cafe43a5f6d08

[binaryextensions] Remove, bundles it's own types (#52980)

view details

Dimitri B

commit sha cf0b356b4198a0d79b8f02b1f695c1c37687e2d2

[anymatch] Remove, bundles it's own types (#52979)

view details

Dimitri B

commit sha 3107a07ac482cc6373ff27cff20fd4a7121b8828

[stream-to-string] Remove, bundles it's own types (#52985)

view details

tasshi / Masaharu TASHIRO

commit sha 293f8fa1c010a4001d1847d154589d9136b0a463

BREAKING(yargs): fix InferredOptionType inference (#52624) * fix(yargs): fix type inference of InferredOptionType * test(yargs): add test using default and demandOption together

view details

zuckey_

commit sha d40a3edd670ac1aacc8644b0346f46147741aaa8

[@types/imap] add sort method definition (#52620) * add sort method * add sort test * lint

view details

Federico Panico

commit sha 57ce096593aea5a416203f58eec93619ffd1b164

New @ckeditor/ckeditor5-basic-styles v27 (#52974)

view details

Benjamin Altpeter

commit sha 6aa124dd7c1282256a92ff240d84e41e0e526831

Add types for qrcode-terminal (#52971)

view details

Tomasz Pluskiewicz

commit sha 37c7b0854d2e78089b9376e2eb516ce8167d9626

fix(clownface): multipointer from array of pointers (#52360) * fix(clownface): multipointer from array of pointers * fix: clownface multipointer for pointer arrays * style: break long line * fix(clownface): literal should not accept Term

view details

Bob van de Vijver

commit sha 471ecd29ddf29b4350b9f3d2005df5cc6416b4e6

update(big.js) Add rounding modes to BigConstructor (#52610)

view details

Rajas Paranjpe

commit sha 843ab3819e7424d0f4b615902ae765cba23180f7

[@appgeist/ensure-dir] Added definitions (#52961)

view details

Christian Schiffler

commit sha b44dd48923a85364f365ab023278372fdea81b84

Add types for [yuka] (#52724)

view details

push time in 2 months

issue commentharc/ohm

Adding descriptions seems to mess up error reporting

The throw/catch labelled failures in that paper look ;like they'd be really useful.

Dave

pragdave

comment created time in 2 months