Giter Site home page Giter Site logo

bencoder's Introduction

A glTF Tools Problem Reproduction Project

An extension that only exists to reproduce a problem with the glTF Tools extension.

This extension (called Bencoder) has a function for bencoding JavaScript values. The function can't encode a JavaScript function in a meaningful way, but will encode it in some way. Unless, and this is the problem, the glTF Tools extension has been activated.

After activating the glTF Tools extension, encoding a function with the Bencode extension will cause the bencode function to enter an infinit recursion.

Steps to reproduce

  1. Have the glTF Tools extension installed and enabled
  2. Open this project (the Bencoder extension project) in VS Code
  3. Press F5 to launch the Extension Host in the sub folder a-gltf-project.
  4. From the Command Palette, run *Bencode Hello World
    • This bencodes a JavaScript object looking like so: {message: "Hello World from bencoder!"}
    • The result of the bencoding should pop up in an information message toast.
  5. From the Command Palette, run Bencode a Function Object
    • This bencodes a JavaScript function defined like so: function(){}
    • The result of the bencoding should pop up in an information message toast.
    • Run the function more times to convince yourself that it works (for some defintion of “works”).
  6. Open and then close the Box.gltf file.
  7. From the Command Palette, run Bencode a Function Object
    • Expected: The result of the bencoding should pop up in an information message toast.
    • Actual: An error modal pops up with the message:

      Command 'Bencode a Function Object' resulted in an error Maximum call stack size exceeded

The command for bencoding the Hello World object keeps working. The command for bencoding a function will not work until the VS Code window is reloaded.

bencoder's People

Contributors

pez avatar

Watchers

 avatar  avatar

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.