Giter Site home page Giter Site logo

Comments (8)

retorquere avatar retorquere commented on June 19, 2024 1

Ah I see. But I'm really only interested in citationjs and bbt. I commented out the rest and it worked fine.

from bibtex-parser-experiments.

larsgw avatar larsgw commented on June 19, 2024

That is a bit annoying, I think fsevents is a Mac-only dependency. Could you try

  1. Removing package-lock.json and running npm install to see if it generates a better package lock?
  2. Running npm install --no-optional as it should skip fsevents altogether?

fsevents/fsevents#321 might have more info.

from bibtex-parser-experiments.

retorquere avatar retorquere commented on June 19, 2024

option 1 gets met past the problem.

from bibtex-parser-experiments.

larsgw avatar larsgw commented on June 19, 2024

Could you share that package lock with me so I can diff it?

from bibtex-parser-experiments.

retorquere avatar retorquere commented on June 19, 2024

https://gist.github.com/bc41ab7cabc4af96a5915308ea6e0fd3

from bibtex-parser-experiments.

retorquere avatar retorquere commented on June 19, 2024

npm test stops at

> node ./test/

|              | Init             | Time (single entry) | Time (3345 entries) |
|--------------|-----------------:|--------------------:|--------------------:|
| citationjs-old | 0.940ms ± 2.1% | 0.775ms ± 1.0% | 1.74e+3ms ± 2.9% |
| citationjs | 5.39ms ± 0.8% | 0.435ms ± 0.7% | 980ms ± 3.9% |
| astrocite |internal/modules/cjs/loader.js:1033
  throw err;
  ^

Error: Cannot find module './grammar'
Require stack:
- /Users/emile/github/bibtex-parser-experiments/lib/astrocite/index.js
- /Users/emile/github/bibtex-parser-experiments/test/index.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:1030:15)
    at Function.Module._load (internal/modules/cjs/loader.js:899:27)
    at Module.require (internal/modules/cjs/loader.js:1090:19)
    at require (internal/modules/cjs/helpers.js:75:18)
    at Object.<anonymous> (/Users/emile/github/bibtex-parser-experiments/lib/astrocite/index.js:9:38)
    at Module._compile (internal/modules/cjs/loader.js:1201:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1221:10)
    at Module.load (internal/modules/cjs/loader.js:1050:32)
    at Function.Module._load (internal/modules/cjs/loader.js:938:14)
    at Module.require (internal/modules/cjs/loader.js:1090:19) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/emile/github/bibtex-parser-experiments/lib/astrocite/index.js',
    '/Users/emile/github/bibtex-parser-experiments/test/index.js'
  ]
}

from bibtex-parser-experiments.

retorquere avatar retorquere commented on June 19, 2024

Damn. On my system, citationjs takes 908ms for long.bib, where the lexer I was building takes ~5s.

from bibtex-parser-experiments.

larsgw avatar larsgw commented on June 19, 2024

Regarding the error, you want to run at least the astrocite and zotero script first:

"astrocite": "pegjs src/astrocite/grammar.pegjs",
"nearley": "nearleyc -o src/nearley/grammar.js src/nearley/grammar.ne",
"zotero": "node ./tools/make-zotero.js",
"jabref": "tools/install-jabref.sh",

from bibtex-parser-experiments.

Related Issues (13)

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.