Giter Site home page Giter Site logo

Comments (4)

frikky avatar frikky commented on June 12, 2024 1

Describe the bug When you have multiple variables with similar names but still not the same, you can't process/call them very well unless you do it in a order where names go from longest to smallest so that the names never cross or confuses shuffle. It's like it's caching the first variable name it sees and then it wont let you use anything in the same naming convention. Always just sending the first variable names value back.

Version: 1.3.3

To Reproduce Check screenshot.

Make 2 keys that are similar like the following: test1key = 1234 test1keyname = Hello world

Try to print them out like so:

$test1key
$test1keyname

The output you get is wrong, well it's really not but there is no way to diiferenciate between variable names. Normally you would be able to put your variable between $(this.is.my.full.name) or ${this.is.myfull.name} and then it would know what part to use and not get confused...

1234
1234name

...

Expected behavior I would expect to see output like:

1234
Hello world

Screenshots If applicable, add screenshots to help explain your problem. image

Hey!

Describe the bug When you have multiple variables with similar names but still not the same, you can't process/call them very well unless you do it in a order where names go from longest to smallest so that the names never cross or confuses shuffle. It's like it's caching the first variable name it sees and then it wont let you use anything in the same naming convention. Always just sending the first variable names value back.

Version: 1.3.3

To Reproduce Check screenshot.

Make 2 keys that are similar like the following: test1key = 1234 test1keyname = Hello world

Try to print them out like so:

$test1key
$test1keyname

The output you get is wrong, well it's really not but there is no way to diiferenciate between variable names. Normally you would be able to put your variable between $(this.is.my.full.name) or ${this.is.myfull.name} and then it would know what part to use and not get confused...

1234
1234name

...

Expected behavior I would expect to see output like:

1234
Hello world

Screenshots If applicable, add screenshots to help explain your problem. image

Hey!

Thanks for reporting this - weird how it hasn't been caught before somehow 👀 It also works correctly in our frontend interpreter somehow (JS).

It has to do with the SDK somehow, and it looks to be in this area. Problem should just be the check of an "equals exactly" vs "contains".

actionname_lower = parsersplit[0][1:].lower()

from shuffle.

kawaiipantsu avatar kawaiipantsu commented on June 12, 2024

Yes i was wondering how it have not been caught to, but i do believe that has something to do with many run their own "python" code directly in many cases and are not reliant so much on the build in features. But yeah i was building a "template" for a Discord webhook so was doing a lot of output with all my strings and ran into this very much so.

I was concerned that it was a cacheing problem mixup etc.
But i can see in the code that you might be right, it's simply making sure that at first it equals then contain etc.

I hope you get it fixed in the next push, cheers!

from shuffle.

frikky avatar frikky commented on June 12, 2024

Yes i was wondering how it have not been caught to, but i do believe that has something to do with many run their own "python" code directly in many cases and are not reliant so much on the build in features. But yeah i was building a "template" for a Discord webhook so was doing a lot of output with all my strings and ran into this very much so.

I was concerned that it was a cacheing problem mixup etc. But i can see in the code that you might be right, it's simply making sure that at first it equals then contain etc.

I hope you get it fixed in the next push, cheers!

I think the only reason it hasn't showed up much is because the autogenerator for names of nodes typically adds a number to everything, meaning they don't at all overlap, and if you type your own names, they are typically very descriptive.

Up to @0x0elliot when it's gonna be fixed ;)

from shuffle.

frikky avatar frikky commented on June 12, 2024

Fixed in the latest SDK! It was a problem of using replace(source, dest) instead of replace(source, dest, 1)

Apparently replace() in python does replaceAll by default, without requiring -1

from shuffle.

Related Issues (20)

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.