mcc,
@mcc@mastodon.social avatar

The miserable screamy feeling when you have an error in a program, you alter the source code, you run it again, it fails in the same way, then you look at the error message and notice the line numbers have not changed and therefore the change you made was not actually incorporated into the version of the program you ran and you don't know why

jane_jordan,

@mcc Did you remember to save?

mcc,
@mcc@mastodon.social avatar

@jane_jordan im using npm link :(

ratkins,
@ratkins@mastodon.social avatar

@mcc After a few afternoon-eating episodes of this early in my career, I am trigger happy on whatever the “clear caches and rebuild from scratch” hotkey is on my IDE. After a certain point it’s not worth bothering to understand what’s going on, just do a clean rebuild and get on with your life.

jeffpalmer,
@jeffpalmer@genart.social avatar

@mcc I routinely create copies of functions so that I can experiment with new approaches without having to use version control, and inevitably I find myself editing the wrong version and being very confused.

I make this mistake again and again but I still somehow think this is a good way of doing things. 😝 😅

mkb,
@mkb@mastodon.social avatar

@mcc Often for me that was forgetting to save in my editor before going to the shell window to run. Eventually I had to configure every editor to auto-save when it loses focus. My favorite version of the problem is accidentally editing an entirely separate version of the source code.

cocoaphony,
@cocoaphony@mastodon.social avatar

@mcc I’m giving a talk on debugging later this year and one of my early points is “make sure you’re running the code you think you’re running.” So…many…times.

mcc,
@mcc@mastodon.social avatar

@cocoaphony So many times :(

mcc,
@mcc@mastodon.social avatar

Anyway either I don't actually understand how npm link works or pnpm has some kind of magic where pnpm link cannot be expected to run the same way

curved_ruler,
@curved_ruler@mastodon.gamedev.place avatar

@mcc the miserable screamy feeling when npm

mcc,
@mcc@mastodon.social avatar

@curved_ruler I thought I knew how to use npm :(

whimsy,
@whimsy@chitter.xyz avatar

@mcc I think it's safe to say npm link doesn't work, not really, at least not if your code has a compile step and even then not really half the time. The crappiness of npm link is one of the reasons alternatives like pnpm and yarn exist and so they can be expected to behave differently (and probably not work in their own special way, although I recall yarn being the least awful).
I can't remember the differences but unfortunately you really have to read up exactly how each one works and structure your project in a particular way if you want to use them. I haven't bothered trying in years. I just push an alpha version to an npm repository and npm install that.

mcc,
@mcc@mastodon.social avatar

@whimsy npm link has always worked for me before but :( now i am using pnpm link :( and it is not working :(

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • tacticalgear
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • osvaldo12
  • Youngstown
  • ngwrru68w68
  • slotface
  • everett
  • rosin
  • thenastyranch
  • kavyap
  • GTA5RPClips
  • modclub
  • JUstTest
  • normalnudes
  • cubers
  • ethstaker
  • mdbf
  • Durango
  • khanakhh
  • tester
  • provamag3
  • cisconetworking
  • Leos
  • anitta
  • megavids
  • lostlight
  • All magazines