Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Codea 2.6.2 (130)

SimeonSimeon Admin Mod
edited December 2018 in Beta Posts: 5,054

New
- You can opt-in to testing the new code editor in the settings pane, it's a work in progress and is there for you to provide feedback on its future development

Fixes
- A new fix is in place to help improve stability in the code editor, please let me know if this is more stable for you
- Returning from the create new project screen no longer jumps in the animation
- Using noSmooth() and line() could lead to instability in the runtime, fixed

Design
- Codea now uses the system font and we're changing the type design a bit
- The status bar more elegantly transitions when opening and closing projects
- The full screen reference UI has been polished up
- The asset picker UI has been polished a bit

Accessibility
- More support for Dynamic Type (i.e., custom text sizes)
- The code editor font size can now be set much smaller and larger (11pt - 24pt, previously was 14pt - 20pt)

Comments

  • dave1707dave1707 Mod
    Posts: 7,923

    @Simeon In the new editor, if you run the code with the keyboard showing, you can’t hide the keyboard to exit the running program. You have to run the program twice with the keyboard showing for this to happen. The way out is to select emoji’s then type close() in the “type a command” area.

  • dave1707dave1707 Mod
    Posts: 7,923

    @Simeon The new editor just crashed. It seems to happen just like the previous releases.

  • dave1707dave1707 Mod
    Posts: 7,923

    I put a print statement in draw() and ran the code. It printed. I stopped the code and removed the print statement. I ran the code again and it still printed the print statement even though it wasn’t in the code anymore.

  • dave1707dave1707 Mod
    Posts: 7,923

    I put the cursor at the end of the code and pressed return. It inserted a blank line at the beginning of the code.

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @dave1707 the new editor crashed or the old editor crashed in the new version (it would be good to know, because the new editor is likely to crash for other reasons since it is so in-progress)

  • dave1707dave1707 Mod
    Posts: 7,923

    @Simeon The new editor in the new code crashed. I take it the things in Do and Edit also aren’t supported yet.

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @dave1707 thanks for discovering the not saving thing happening with the print statements. I'm hoping to eventually move the editor onto UIDocument so that you can edit Codea projects that live anywhere on your iPad, this is related to that.

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @dave1707 yes the menu generally doesn't work (aside from Undo, Redo and Dependencies — which just shows the old dependencies view with layout issues).

    Even the keyboard accessory keys won't work in the new editor, I just figured I'd add a way to let you see what the direction is.

  • dave1707dave1707 Mod
    Posts: 7,923

    I closed a program and the keyboard was overlaying the list of projects. Had to close Codea to get rid of it.

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @dave1707 hah I'm sorry, just fixing those keyboard issues now. It really is very early in development.

  • edited December 2018 Posts: 26
    If you start to type in the search box under reference it just pulls up a popup window with the reference categories displayed. I should mention this is on the iPhone in landscape mode.
  • dave1707dave1707 Mod
    Posts: 7,923

    Opened a project that had 2 tabs. The tabs looked like they shared equal size across the top instead of being a set size like when there are a lot of tabs. Maybe something to just get used to.

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @dave1707 you should try one tab, it just takes up the entire top. They do scale to fit now. Let me know if you don't like it though

  • dave1707dave1707 Mod
    Posts: 7,923

    Editor just crashed again. I was just selecting things from the math keys then the comparison keys at the top of the keyboard.

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @dave1707 new one?

  • dave1707dave1707 Mod
    Posts: 7,923

    You’re right about the 1 tab, I didn’t even notice that. I guess it’s something I’ll just get used to. No problem if that’s how it’s going to be.

    PS. I’m off to bed, so I’ll leave the testing to others for now.

  • dave1707dave1707 Mod
    Posts: 7,923

    Yes, it’s the new editor in the new code. Just letting you know the crashes or just ignore them for now.

  • SimeonSimeon Admin Mod
    Posts: 5,054

    No problem! Thank you for the quick testing and feedback, it's been really helpful

  • dave1707dave1707 Mod
    Posts: 7,923

    @Simeon If there’s an error on a line of code, you can still execute the code but it doesn’t do anything. The old editor wouldn’t try to run the code.

  • dave1707dave1707 Mod
    Posts: 7,923

    @Simeon If something goes wrong in the editor, then it seems that the cursor shows in one place but keying goes someplace else.

  • dave1707dave1707 Mod
    edited December 2018 Posts: 7,923

    @Simeon Tapping between the () of sprite() doesn’t bring up the sprite list. Probably the other things like that don’t work either.

  • Posts: 1,400
    @Simeon - going to install 130 but would like to secure my current files. If I move them all to a folder in the Documents they shouldn't be visible - would they be safe? Had trouble moving them to network storage - said it couldn't find a helper? I think I'll switch all assets to Dropbox in future rather than local.

    Any other way to dtore them away? I ise File app or File Explorer pro.

    @dave1707 backup sounds like it has problems.
  • dave1707dave1707 Mod
    Posts: 7,923

    @Bri_G My backup/restore program does the backup OK, but the restore doesn’t work because the saveProjectTab command doesn’t work like it used to. Hopefully it will be fixed in an upcoming release. Also I had to change some things for saving the files because of Codea changes. The Codea save projects in a zip file doesn’t seem to work either for the restore. It crashed when I tried it last. Maybe that will be fixed also. Why are you moving your files. Installing different versions of Codea shouldn’t change anything that I’ve seen so far.

  • Posts: 1,400

    @dave1707 - just panicing, since I lost the code in one of my files when Codea crashed I don’t want to expose them any more than necessary. I need to get better at program management. I’ll try your backup first. Thanks.

  • edited December 2018 Posts: 1,400

    @dave1707 - ran your backup(not sure which version) and couldn’t find the backup on Dropbox. Added a saveText to Documents and it saved a file but it just contains the beginning header, name and end of file statement.

  • dave1707dave1707 Mod
    Posts: 7,923

    That’s because of Codea changes. I fixed my version for the save part, but the restore won’t work until a change is made in Codea.

  • Posts: 1,400

    @dave1707 - ran your backup(not sure which version) and couldn’t find the backup on Dropbox. Added a saveText to Documents and it save a file but it just contains the beginning header, name and end of file statement.

  • Posts: 1,400

    @Simeon - managed to back up to iCloud. Installed 130, before opting in for new keyboard checked out with standard keyboard. Generally slicker, smoother. Font on the Assets etc a bit over the top. Could we adjust that like the editing font?

    New keyboard - generally feels OK. Most of functions on the two buttoned Edit/Do don’t appear to work as yet. The tab headings seem a little pale. There is duplication in the buttons and the dependencies menu with new blank and new class.

  • Posts: 1,400

    @Simeon - what do you think of having a single menu in the new editor accessed by pressing a button top right thus maximising the top tab bar real estate. Then incorporating all functions within that menu with headings for each section including the exit and run functions. The menu could have a bar across the top which you could use to move it if needed to see the text etc. A second press on the button top right would close the menu

  • SimeonSimeon Admin Mod
    Posts: 5,054
    @dave1707 the saveProjectTab function should have been fixed in this version

    @Bri_G you can copy all your projects using the files app. Or export them all as a zip using Codea and then put that archive somewhere safe
  • dave1707dave1707 Mod
    Posts: 7,923

    @Simeon Thanks. The saveProjectTab works the way it used to.

  • Posts: 1,400

    @Simeon - thanks for the feedback, an alternative to controls on the top of the new editor page would be to have a command bar across the top of the keyboard with buttons for exit, run, Undo, redo Dependencies, Reference and search.

  • dave1707dave1707 Mod
    Posts: 7,923

    @Simeon Ran into a bug. If you create a project with multiple tabs, that program can see those tabs using listProjectTabs. If you create another project and listProjectTabs on the first program, only Main is listed. If you exit Codea and come back in, the second program will now see all the tabs of the first program.

  • SimeonSimeon Admin Mod
    Posts: 5,054
    @Bri_G I will definitely keep controls on top of the keyboard. But I figured stuff like documentation, dependencies, find and replace, don’t need to take up space from buttons for actually inserting code (plus on a tiny iPhone there’s just no room for them).

    How’s the editor stability when using the old code editor? I’ve tried to address your reports from earlier that it felt more crash-prone in recent releases.
  • edited December 2018 Posts: 1,400

    @Simeon - it seems more stable but I have had crashes from both keyboards. Most of the time I have been testing by running a variety of my projects and demos from the forum.

    If OpenGL is a potential issue is there more chance that it could also be as a result of hardware and Craft which is built on it?

    Edit: just noted this link about deprecation of OpenGL and iOS 12

    https://www.imore.com/opengl-and-opencl-be-depreciated-ios-12-and-macos-mojave

    That’s in favour of metal.

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @Bri_G yes the plan is to port to metal at some point, it will be much faster and nicer. But I think we will completely re-write the runtime to be based on Craft's engine rather than what we currently have which is a 2D engine and Craft's 3D engine.

  • Posts: 1,400

    @Simeon - thanks for the update, interesting times ahead. What I was inferring was that there may be some incompatibility between OpenGL and iOS 12 since Apple have deprecated OpenGL in that issue.

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @Bri_G oh it could be. I did find the bug and I also wouldn't be surprised if what we were doing was technically incorrect but allowed in the past, and Apple's OpenGL is now stricter.

    Basically when the line was rendered with noSmooth() I wasn't uploading texture coordinate data into the shader because it wasn't needed. But the shader declared the uniform for the texture coordinates and passed it into a varying — though corresponding fragment shader didn't use the input.

  • Posts: 1,400
    @Simeon - sounds like you've sorted it now. Is it in 130?
  • Posts: 1,400
    @Simeon - looking at ping demo and, armed with emoji 'sprites' now thought about using the football in them. So used fontSize() in a subroutine to change the imsge size - but it threw out an error. However it worked when I put the fontSize () in the setup() function. Is this expected behaviour?
  • dave1707dave1707 Mod
    Posts: 7,923

    @Bri_G I put fontSize(50) in a subroutine 6 calls down and it worked OK. What kind of an error did you get.

  • Posts: 1,400

    @dave1707 - resolved the fontSize error. Set up a variable to read self.diameter and meant to call it fontsize, but mistakenly called it fontSize (habit!!!). Hence the error. But surprised that an error for ‘can’t use reserved words as variable names’ didn’t fire up. Then again I should have known better!!!

  • @simeon don’t seem to be able to have the radio (bbc iplayer) app playing in the background while inside codea anymore-switching to codea stops it playing. in the past one could restart the radio after entering codea for the first time, now this does not work, it stops every time one goes back to codea. this is a major problem!

  • @simeon i would not say the number of crashes has decreased much in the new build. still quite often have spontaneous exit to ios while in the editor.

  • SimeonSimeon Admin Mod
    Posts: 5,054

    @piinthesky odd I thought I had that sound issue fixed. Will look at it again. Good that the editor is more stable, bad that it still happens. Will see if I can find some clue in the crash logs.

  • dave1707dave1707 Mod
    Posts: 7,923

    @Simeon I was playing around with the Files app and moved some Codea projects to the iCloud Drive thinking that would be a place for backups. One thing I noticed was the project AR Face showed a size of 2.9 MB. What’s taking up so much space, it doesn’t look that big. Also, a lot of the projects show a dashed cloud meaning the files a waiting to upload. They’ve been like that for days. Is there some way to force them to upload.

Sign In or Register to comment.