Getting deprecated errors, though no legacy syntax used

Hi, I don’t really care what my name displays as right now. I’m in a bit of a rush, so I’m hoping that someone can help me.

I am building an app with what are essentially tableView widgets, but using display objects instead (please don’t tell me to use those instead, I can’t go learn how to do them in the time frame I’m on). Using a for loop, I generate lines across a ScrollView widget. However, when I do this, I seem to be getting 2 warning messages for every time I set “line.strokeWidth”, saying “WARNING: line.width is deprecated. Use line.strokeWidth”.

I’ve seen a thread like this, but in that thread there was an actual width keyword in the code which the user didn’t see. I have used the find function in Notepad ++ to no avail as to finding the word “width” with any link to a line display object.

Below is code in the for loop and attached is evidence for my searches:

local timeLines = {} for i = 1,23 do -- Create line object inside timeLines table timeLines[i] = display.newLine(... timeLines[i].strokeWidth = 2 timeLines[i]:setStrokeColor(0) timeView:insert(timeLines[i]) . . . end

I am using Composer, not sure if it’s relevant or not. I have 2 other instances of what is essentially the code above, with different arguments, variable names, etc.

I’m not sure about this, but it might also be occurring when I create rectangle display objects too, so maybe it’s not object-type-specific?

It’s putting what is to me an unnecessary strain on my computer, and filling up the Simulator Output far too much for me to debug properly, I’d really appreciate help on this,

Thanks

Hi,

Very likely this isn’t even in the code you’ve personally written, but in some external old library you’re including in your project. I would suggest inspecting any external Lua modules you’re require()-ing in your code, especially any that you didn’t personally author.

Brent

The only library I’m using which has anything to do with display objects is dragItemScrollView. There is a width variable but it’s only used in a function for getting the length of a drag across the screen. Other than that, I’m using the loadsave module (which I think Rob wrote) and the Widget and Composer libraries.

dragItemScrollView in Corona Code Library:

https://code.coronalabs.com/code/scrollview-draggable-item-adding

Use of width in dragItemScrollView:

I’m not in such a rush anymore, by the way. Thanks for the help.

Are you using the widget library “as is” or did you download the open-source widget library (possibly an outdated version) and manually add it to your code?

Brent

Can you also post your “config.lua” file contents so we can inspect?

Oh, so sorry, I didn’t get any new emails so I thought this thread died.

Assuming that the widget library itself comes with Corona SDK, I was using the most up-to-date version of widget. I didn’t download it manually.

This is all that’s in my config.lua:

-- -- For more information on config.lua see the Corona SDK Project Configuration Guide at: -- https://docs.coronalabs.com/guide/basics/configSettings -- application = { content = { scale = "adaptive", fps = 60, --[[imageSuffix = { ["@2x"] = 2, ["@4x"] = 4, }, --]] }, }

Sorry again, I’ve been on holiday the past 2 weeks. I’ll try to pay more attention to the thread.

Hi,

Very likely this isn’t even in the code you’ve personally written, but in some external old library you’re including in your project. I would suggest inspecting any external Lua modules you’re require()-ing in your code, especially any that you didn’t personally author.

Brent

The only library I’m using which has anything to do with display objects is dragItemScrollView. There is a width variable but it’s only used in a function for getting the length of a drag across the screen. Other than that, I’m using the loadsave module (which I think Rob wrote) and the Widget and Composer libraries.

dragItemScrollView in Corona Code Library:

https://code.coronalabs.com/code/scrollview-draggable-item-adding

Use of width in dragItemScrollView:

I’m not in such a rush anymore, by the way. Thanks for the help.

Are you using the widget library “as is” or did you download the open-source widget library (possibly an outdated version) and manually add it to your code?

Brent

Can you also post your “config.lua” file contents so we can inspect?

Oh, so sorry, I didn’t get any new emails so I thought this thread died.

Assuming that the widget library itself comes with Corona SDK, I was using the most up-to-date version of widget. I didn’t download it manually.

This is all that’s in my config.lua:

-- -- For more information on config.lua see the Corona SDK Project Configuration Guide at: -- https://docs.coronalabs.com/guide/basics/configSettings -- application = { content = { scale = "adaptive", fps = 60, --[[imageSuffix = { ["@2x"] = 2, ["@4x"] = 4, }, --]] }, }

Sorry again, I’ve been on holiday the past 2 weeks. I’ll try to pay more attention to the thread.