Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Contributing - fixing issues
Started by jaime9 Jan 16 2019 03:07 AM

4 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

jaime9

[GLOBAL: userInfoPane.html]
jaime9
  • Enthusiast

  • 51 posts
  • Corona SDK

Hello,

 

I reported a bug some time ago that hasn't been fixed. That's ok. But now that Corona is open source, I'd like to go and try to fix it myself.

 

I've browsed a little bit the github repository and I'm unable to find even the relevant source file  :wacko:

 

Are there any plans to release a guide or something to the source code?

 

In my specific case (a bug happening in native text fields in the windows simulator/environmnet but not in the OSX one, IIRC), any pointer to where should I been looking at?

 

Thanks!



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,263 posts
  • Enterprise

Can you be more specific about the bug?



[TOPIC: post.html]
#3

jaime9

[GLOBAL: userInfoPane.html]
jaime9
  • Enthusiast

  • 51 posts
  • Corona SDK

Ups, sorry, of course.

 

It is a bug with the native text field's user input event - the new characters, position, etc were wrong, in Windows / android but ok for iOS...

 

Sorry, I posted a bug in the tracker, with all details and sample code but there seems to be no way to access it.

 

Thanks.



[TOPIC: post.html]
#4

StarCrunch

[GLOBAL: userInfoPane.html]
StarCrunch
  • Contributor

  • 786 posts
  • Corona SDK

@jaime9 How far did you get? "browsed a little bit" isn't very specific.  :)

 

For a given function in the API, you can pretty easily find its definition by looking up the last part of the name, since that will be used as the key to load it into the appropriate module (native, in this case). Doing a search for "newTextField" (with the quotes) points me to Rtt_LuaLibNative.cpp, which on Windows / Visual Studio is in the Corona.Rtt.Library.Win32 project.

 

Mind you, that's just the bit that actually makes the text field, so probably not the relevant file, but it's enough to start following leads.

 

You might also hunt around for Rtt_WIN_ENV or Rtt_ANDROID_ENV (or instead, the other preprocessor constants as opposed to those) to find per-platform code sections.


  • jaime9 likes this

[TOPIC: post.html]
#5

jaime9

[GLOBAL: userInfoPane.html]
jaime9
  • Enthusiast

  • 51 posts
  • Corona SDK

@jaime9 How far did you get? "browsed a little bit" isn't very specific.  :)

 

You're right, not my best day  :D

 

Just wanted to take a peek before cloning the repository and get seriously into it.

I've done already and it seems to like my newer VStudio 2017 - so I'm giving it a try.

 

Thanks for your time!




[topic_controls]
[/topic_controls]