Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Code Folding Issue

Author
Message
lilpissywilly
AGK Developer
13
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 13th Oct 2015 13:54
In the Tier1 editor, what is it that makes some folding of functions fold up everything below it instead of to the EndFunction command? It's quite frustrating and, I'm sure, easily fixed?
My hovercraft is full of eels
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 13th Oct 2015 14:15 Edited at: 13th Oct 2015 19:24
maybe
type without endtype
or end function instead of endfunction
for without next
do without loop
AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
lilpissywilly
AGK Developer
13
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 14th Oct 2015 07:31
No the code is not broken and the functions that don't fold correctly visually look like ones that do. I'm talking about when you click the "-" next to "function" to fold/hide your code. But some folds end up folding up everything below instead of ending at the correct "EndFunction"
My hovercraft is full of eels
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 14th Oct 2015 07:42 Edited at: 14th Oct 2015 07:45
it is much code?, u can/want upload here as attachment that me/we can find the problem?
i think the problem about you speak is, the editor did not find the correct start and end for folding and the aid lines go outside along
AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
lilpissywilly
AGK Developer
13
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 14th Oct 2015 17:41
don't really want to upload it no, it's about 3400 lines, but I would be surprised if this hasn't happened for someone else and know how to fix it. It's not the first time it's happened for me for sure
My hovercraft is full of eels
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 14th Oct 2015 17:56 Edited at: 14th Oct 2015 17:59
ok, then u can try copy it part for part to a new file and see what happens there. maybe u find the reason.
is your agk up to date, means steam version or download self?

how it looks at this problem function that fold until end if you remark inside?
function test()
remstart



remend
endfunction
AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 14th Oct 2015 18:39
I haven't experienced this problem. If you can create a small excerpt of code that highlights this issue then post it up for investigation.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
lilpissywilly
AGK Developer
13
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 15th Oct 2015 14:38
I found the issue

if a function contains a Select setup like this:



the codefolding break and folds everything after this function.

This works:
My hovercraft is full of eels
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 15th Oct 2015 16:45
yo, as soon there is a : before endcase it get odd.
AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Yodaman Jer
User Banned
Posted: 15th Oct 2015 18:34
I've had this exact issue before, very annoying in fact. But ti comes randomly and is hard to pinpoint. It actually hasn't happened to me at all since I've been using 2.0.15a, so perhaps it was a bug that got completely fixed somehow?


Forum President until June 20th, 2016.
lilpissywilly
AGK Developer
13
Years of Service
User Offline
Joined: 10th Sep 2010
Location: Office Chair
Posted: 15th Oct 2015 19:16
Quote: "yo, as soon there is a : before endcase it get odd."


but it looks tidy, for simple one line commands
My hovercraft is full of eels

Login to post a reply

Server time is: 2024-04-24 06:11:22
Your offset time is: 2024-04-24 06:11:22