Coder Social home page Coder Social logo

p4api's Issues

TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type object

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 :(

Invalid marchalled error

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'

Please specify a license for this project

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.

Publish latest changes to npm

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.

Can't require p4api after install

% 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?

Add ability to remove -G option from command to get raw output

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.

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.