11
iamroot
5y

This type of post might be good for a weekly rant (if it has not been done yet) "Most Bizarre bug"

So I am working with laravel and vuejs and I use phpstorm as my IDE and today I had the MOST bizarre bug. I'm working on a cryptocurrency website and I'm making a vue component that is going to be a stratum generator for miners and I wanted to make it a component in vue so it can be used anywhere in the site. So I wanted to call the component "StratumGenerator.vue" and i didnt think that this would be an issue. Oh boy was I wrong. So immediately my syntax highlighting did not work nor did emmet autocomplete which is something I can't work without. So i go on for about an hour to fucking figure out how to fix jetbrains vuejs syntax plugins and a very long story short it was because THE FUCKING NAME WAS "StratumGenerator.vue" LITERALLY ANY OTHER NAME WORKS

I've checked its not a blacklisted keyword Stratum and Generator work fine on there own its also not a length thing so right now I have not a fucking clue on why it does not work but i'm glad I figured out.

Comments
  • 0
    What if u put a comma instead of a .
  • 0
    @beegC0de it still won't work because it's not a file type then but that goes for a file with any name
  • 0
    @iamroot oops I meant what if YOU accidentally did that. Looking back it sounded like I was suggesting it haha
  • 0
    Wait, why would you make a stratum generator in js and 'use it anywhere in the site'?
    I haven't touched that stuff in a while, but I remember stratum being a backend program that a miner connects to directly - nothing to do with it being included in a website 🤔
    Or am I missing something?
  • 0
    @endor it's nothing to do with backend code it's a small form where you type in you info and it spits out a commands that you use to connect to the stratum
  • 0
    @beegC0de nope it's def .Vue it has the Vue ifon and everything
  • 0
    So I figured out the problem, I somehow register stratumgenertor.vue to a text file type
  • 0
    @iamroot oooh, for whatever reason I thought you were generating *actual* stratum data to feed into the miner's hashing algo, not just connection info 🤣
Add Comment