question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

root/file object as argument

See original GitHub issue

You can specify import root directory by using { root: "dir", file: "subdir/file.proto" } style object argument in grpc.load method, see https://github.com/dcodeIO/protobuf.js/blob/ProtoBuf5/README.md#loading-proto-files However, this cannot be achieved in mali since grpc.load is called only if the first argument is string.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
bojandcommented, Feb 2, 2017

Hello, added support for this. Just use an object specifying those options as the first param, instead of a path.

const app = new Mali({ root: 'pb', file: 'sub1/a.prpto' }, 'MyService')

And it should work. Let me know if there are issues.

0reactions
lanttucommented, Jan 27, 2017

I’m willing to do it if you have some idea how to do it without breaking anything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TFile Class Reference
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format. If the key is located past...
Read more >
ROOT files
ROOT files contain C++ objects that are stored to disk. You can open files when starting ... For the second argument, the following...
Read more >
First Steps with root
ROOT is an object-oriented data analysis framework used extensively ... The second parameter "READ" tells root to open the file in READ only ......
Read more >
A ROOT Guide For Students
ROOT is an object-oriented framework for data anal- ... f1 is a pointer to an instance of a TF1 class, the arguments are...
Read more >
Glossary — Python 3.11.1 documentation
For example, 3 and 5 are both keyword arguments in the following calls to complex() : ... A file object able to read...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found