teepee changed the topic of #openscad to: OpenSCAD - The Programmers Solid 3D CAD Modeller | This channel is logged! | Website: http://www.openscad.org/ | FAQ: https://goo.gl/pcT7y3 | Request features / report bugs: https://goo.gl/lj0JRI | Tutorial: https://bit.ly/37P6z0B | Books: https://bit.ly/3xlLcQq | FOSDEM 2020: https://bit.ly/35xZGy6 | Logs: https://bit.ly/32MfbH5
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
J2271 has joined #openscad
J22 has quit [Ping timeout: 252 seconds]
LordOfBikes has quit [Ping timeout: 276 seconds]
fling has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
fling has joined #openscad
LordOfBikes has joined #openscad
fling has quit [Quit: ZNC 1.8.2+deb2+b1 - https://znc.in]
fling has joined #openscad
sinvet has quit [Remote host closed the connection]
aiyion has quit [Ping timeout: 240 seconds]
aiyion has joined #openscad
sinvet has joined #openscad
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
kdc has joined #openscad
KimK has quit [Ping timeout: 276 seconds]
lastrodamo has joined #openscad
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
nirvdrum[m] has quit [Quit: You have been kicked for being idle]
kdc has quit [Quit: kdc]
fling has quit [Ping timeout: 240 seconds]
fling has joined #openscad
<dTal> Is there a pattern for expressing a set of variables that are constrained with respect to each other, but without specifying which variables are "master" and which are "slave"?
<dTal> I guess it's not really possible without an algebraic solver, which implies a symbolic rewriting system
<pa> somehow doing $foo = bar gives me an error Ignoring unknown variable 'bar'
<pa> (defined just above)
<dTal> pa, paste code?
<dTal> triple check you didn't misspell?
<pa> if i punch in an int, everything works as expected
<pa> version 2019.05
<dTal> it works as expected on 2021.01
<dTal> I don't have 2019.05 to test it on
<pa> let me try to add the new repo
<pa> and upgrade
<dTal> Why do you have a dollar sign in front of "palletLengthAdjustment" by the way?
<pa> dTal: because it's a $variable
<dTal> I just downloaded 2019.05 and it also works fine
<dTal> are you sure your paste matches the failing code?
<dTal> I'm guessing the variable isn't actually called "foo"
<pa> it is
<pa> but ofc $palletLengthAdjustment is defined in an included .scad
califax has quit [Remote host closed the connection]
califax has joined #openscad
<dTal> and your paste says "error on line 30" on a 3 line file
<pa> correct, i did paste only the offending part
<dTal> I suspect if you put your own paste back into your local openscad, it would work fine as well
<pa> let me try
<dTal> you need to whittle the issue down to something standalone, whereupon it will either go away (and therefore give you a hint as to where the problem is) or at least allow others to replicate it
<dTal> ...I don't have any of those files.
<dTal> and the files are clearly where the problem is.
<pa> ok but then why if i replace $palletLengthAdjustment = foo; with $palletLengthAdjustment = 10; things work?
<dTal> it is weird, but there's no way for anyone else to understand what's going on without pasting the rest of the code
<pa> maybe i can't ssign variables to $variables?
<dTal> I never use $variables and I don't understand what they're for
<pa> gotcha, thansk
<dTal> does it work if you change "foo" to something else?
<dTal> it is very strange that you can echo it but not use it in an assignment, that suggests that echo and assignments use different scoping rules which I would not expect
<pa> dTal: it works if i change with an int literal
<pa> i am looking at https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#Special_variables and special variables are never assigned a variable
<pa> i suppose this won't work, as they are defined at compile time
<pa> well ok, i can live with that
califax has quit [Remote host closed the connection]
califax has joined #openscad
<dTal> confusing error message
<InPhase> pa: You can assign a variable to special variables.
<InPhase> pa: I cannot reproduce your error and do not understand what it's coming from, and no example had this on line 10 yet.
<InPhase> Oh, 8. Well there might be some syntax error in the preceding includes that disrupt this. Or perhaps you have another error with the included content that changes the meaning of foo somehow.
<InPhase> pa: Or, perhaps in something not shown you are doing a use <model_pallet_core_adaptive.scad>?
<InPhase> pa: Prior to 2021 there was a bug in the processing of special variables during use<> which will produce this sort of error.
<InPhase> (Under certain conditions.)
<gbruno> [github] t-paul pushed 1 modifications (Merge pull request #4234 from MichaelPFrey/2022-04-19-skylab gradient background needs GL_MODELVIEW) https://github.com/openscad/openscad/commit/eb2849ea946e823bd37f3444ec0bf6bb80c57c67
fling has quit [Remote host closed the connection]
Guest35100 has joined #openscad
Guest35100 has quit [Client Quit]
KimK has joined #openscad
J2271 is now known as J22
<J22> dTal here why $var are usefull https://bpa.st/WHFA
<joseph_> teepee InPhase: Would you like me to work on more fixes as part of the pre-GSoC evaluation? It will soon be close to my final exams, so if there's something else you'd like to see from me before the end-of-semester then I will need to budget my time carefully
<J22> normal var are not available in children, which is a bit strange as children should be the same tree  so within the same scope
<InPhase> joseph_: We've seen enough there to meet the established technical threshold of being able to commit a fix and go through all the requisite steps for that successfully.
<InPhase> joseph_: If you end up with free time you're free to pick out something else interesting to poke at, or you could think about or discuss more background info for the project. As a more senior person who thinks broad spectrum mentoring is very important, I will encourage you to put all needed attention toward the exams to excel at them, and to not attempt to burn out during the lead up to exams. GSoC
<InPhase> is scheduled to happen after them for this purpose.
<InPhase> joseph_: I had semesters where my exams really required a lot more attention, and some where I was already overprepared and I had some slack time before them. But that's a perfectly reasonable priority during that phase, and we sure won't hold that against you. It's part of the design. :)
KimK has quit [Ping timeout: 272 seconds]
KimK has joined #openscad
sinvet has quit [Remote host closed the connection]
KimK has quit [Ping timeout: 246 seconds]
juri_ has quit [Ping timeout: 256 seconds]
<joseph_> InPhase: Thanks, I have two classes where the final exams are weighted heavily. I'll prioritize studying and check back in after the semester has finished. I'll try to monitor IRC, but if you need to ping me then I'm most likely to see an email (address is in my GSoC application)
snaked has quit [Ping timeout: 256 seconds]
juri_ has joined #openscad
lastrodamo has quit [Quit: Leaving]
JakeSays has quit [Ping timeout: 276 seconds]
JakeSays has joined #openscad
<InPhase> joseph_: Sounds good. :)