Does anyone understand why the code analyzer in CF...
# cfml-general
d
Does anyone understand why the code analyzer in CF Admin never lets you analyze according to the current version of CF that's running? I'm on a new 2021 server, it only lets me go up to 2018, but what I really want to know is if the code is fully compatible with THIS version, CF 2021.
a
It's not asking the language level you want to check for. It's asking what the language level of your existing application is. If your existing application is already CF2021... there's nothing for it to do.
1
(it's daft... and I've told Adobe in the past it's daft... but... well... you know how it goes with them).
BTW, @Mark Takata (Adobe)... when you get finished with eating donuts or whatever it is you said you were doing... https://helpx.adobe.com/coldfusion/configuring-administering/using-the-coldfusion-administrator.html#codeanalyzer... still talks about CF10 as being the current version of CF 😐
m
This just in, Adobe renames next version of ColdFusion to CF10. There we go all fixed 😂
👍 1
😜 1
d
@Adam Cameron What do you mean by "It's asking what the language level of your existing application is."? It's supposed to be checking for valid syntax, right? How is the validity of code changed by what I say its "language level" is? It's valid for the engine that's running the check or it's not. Also, while I'm throwing stones, the checker locked the files with errors, so I couldn't update the fixes without stopping the CF service. Bah.
a
I have a CFML application. It was written for CF2018. I want to check whether it runs on the current server. Which is CF2021. I don't need to tell it that it's CF2021. It knows. What it doesn't know is the version of CF my code is.
I don't know why they did it that way.
I could hazard a guess, but it would be uncharitable.
d
Mmmm
In the past I've also used the cf compiler to check for possible syntax errors, since the checker misses a lot. a) Anyone know if that still exists? No I haven't looked yet 🙂 b) Anyone know if any of the current deployment options (create an archive etc) do anything to validate the base-level correctness of the code?
a
Copy code
root@8a67b5aa6561:/opt/coldfusion/cfusion/bin# ls cfcompile.sh
cfcompile.sh
that will only check syntax changes though, not logic changes
Although I guess the code analyser can't do much more than that. Maybe stuff like "the behaviour of
listLast
has changed blah blah blah" etc
m
Me waking up from my couch nap wondering why my phone sounds like a slot machine winning the jackpot 😂😂😂
🤣 1
a
I think you need more sleep.
m
You are correct sir