Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openspin compiler in PropellerIDE fails to find a subroutine in a child object #46

Open
dgately opened this issue Aug 25, 2016 · 1 comment
Assignees
Labels

Comments

@dgately
Copy link

dgately commented Aug 25, 2016

While compiling JonnyMac's string parsing example from the Parallax forum (see: ) (downloaded project example file is: jm_parse_fields - Archive [Date 2016), an error occurs with PropellerIDE's included openspin compiler...

The jm_parse_fields project includes four child objects. One of those objects, "jm_strings.spin" contains 36 subroutines. When using the openspin compiler, those subroutines are not found...

Shortened example of the code:
`obj
time : "jm_time" ' timing and delays
io : "jm_io_basic" ' essential io
str : "jm_strings" ' string support
term : "jm_fullduplexserial" ' * serial IO for terminal

pub main | idx, p_field

fields := str.fields(@teststr, ",")`

openspin compiler error:
error2

Code attachment:
jm_parse_fields - Archive [Date 2016.08.23 Time 20.15].zip

I am able to compile this portion of the code with the bstc compiler as well as the openspin compiler in SimpleIDE (different openspin version?).

@bweir bweir added the bug label Sep 11, 2016
@bweir bweir self-assigned this Jan 14, 2017
@Searider
Copy link

I have identified other examples with slight variations. I have identified two objects that this happens to. pcFullDuplexSerial4FC.spin and JM-WS2812.spin. In both instances the object is listed in the object list in the top left of the GUI but does NOT show the arrow for expansion. in Both cases you can "Build" (F9) and get an error free completion msg from Build Manager. However if you try to "Run" or "Write" you will get the error free "Build Successful" message but it does not download anything to the Prop. Also if you have AutoComplete enabled and you type the Obj reference name then '.' it will not bring up any autocomplete options and will move the cursor down a couple of lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants