pisamad / p4api Goto Github PK
View Code? Open in Web Editor NEWPerforce API using marshal syntax and promise
License: BSD 3-Clause "New" or "Revised" License
Perforce API using marshal syntax and promise
License: BSD 3-Clause "New" or "Revised" License
I keep getting this error:
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type object
at Function.from (buffer.js:219:9)
at convertOut (C:\git\myproject\node_modules\p4api\lib\p4api.js:23971:87)
at P4.cmdSync (C:\git\myproject\node_modules\p4api\lib\p4api.js:17952:840)
at Perforce.getChangelist (C:\git\myproject\src\lib\perforce.js:124:27)
at Args.parse (C:\git\myproject\src\lib\args.js:84:30)
at start (C:\git\myproject\main.js:42:23)
at App.checkP4Config (C:\git\myproject\main.js:71:10)
at App.emit (events.js:205:15)
which really makes no sense because the command I am making is:
var cmd = "changes -m1 -s submitted C:/Perforce/...#have";
p4.cmdSync(cmd);
So, I'm clearly passing a string, which makes the error very confusing :(
This is concerning only P4.cmdSync() with input option and when length of an input is upper then 128 bytes.
Ex : P4.cmdSync ('label -i' , {Label:'myLabel', 'Description:'Bla .... Bla ..... (length >= 128)'})
P4 result is an error : 'Invalid marchalled'
Without a specific license for this project, it is difficult for others to use, legally. Could you please choose one and update the README and package.json
file appropriately (and probably add a LICENSE.txt
file as well). Thank you for writing this very useful library.
Hey there, is there any chance you could publish latest to npm? I was hoping to pull down my binary path change from December into a project.
% node --version
v8.11.2
% npm --version
5.6.0
% npm install p4api --save
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN perforce No description
npm WARN perforce No repository field.
npm WARN perforce No license field.
% node
let { P4 } = require('p4api')
Error: Cannot find module 'p4api'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
Do you have any suggestion about above usage?
I would like to get a unified diff between two versions of a file, and the -G
option prevents p4 diff2 -u //some/file#1 //some/file#2
from returning appropriate results.
It looks like this repo has worked around this by using the p4-oo package, but would be nice to have everything available in p4api.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.