I am not able to use Project->Add File Link with SPIN and Project View.
ags
Posts: 386
More specifically (the question): What is the purpose or intended use model for adding a link to a project. I'm using SPIN and if I add a link (which I took to mean a *nix soft link) to the project, the file is still not found when I try to build. If I add a copy of the file, the project will build.
Comments
You only need one file in the SPIN project list to get started in SimpleIDE. SPIN programs include files in the source. Trying to add a file to a SPIN project will not work. I'll review the SPIN feature later today again to make sure things are working as expected.
I have a SPIN project that builds using Propeller Tool (on Windows) that I've moved to a Mac (using SimpleIDE). I created a new project and added the top file (which includes other objects). When I attempted to build. there was an error for an object not found. By adding all the objects referenced (in the SPIN source) using the "Add File Copy" item in the Project pulldown menu, the build succeeded. When I tried to use "Add File Link" the build failed as though the "linked" file was not found (and I didn't see the "linked" file in the Project pane - I assume the link was unsuccessful or I am not using this feature correctly). I'm using version 0.9.26 for Mac.
Also, in the build status window, I'm seeing what I would describe as spurious newlines. What seem to be single line outputs are split into multiple lines. I thought it might be a line length wrapping, but it is far short of the Build Status window size, and there are other (single) lines that are more than double the length of the lines that are split.
Finally, when compilation is complete the final message is:
"Program size is 1
8900 longs
..."
I think this is really
"Program sizes is 18900 longs"
but that can't be. It loads into RAM so it must be =< 8192 longs, right? So what does this mean?
Can you please reproduce this problem and open the build status window. Control click in the build status, choose select all, then copy/paste to here. I suspect that your project depends on a SPIN library file and the library is not found.
These are all problems associated with handling the BSTC output. The SimpleIDE status bar should show 18900 bytes when the build status shows 18900 longs.
I did find a bug in my testing. A new SPIN project in" simple view" will fail because we don't include a Blank Simple Spin Project. Please use only "project view" for SPIN.
I'm a fairly proficient user of the Propeller Tool (and SPIN). I'm a new user of SimpleIDE.
I'm using Project View
The only object my top source includes is Parallax Serial Terminal - which was found (I presume in /opt/parallax/spin)
All other included objects are my own. When I tried to link to them (Project->Add File Link) the build status window error was something like "file not found". When I used Project->Add File Copy (for each of the 11 objects) the problem was resolved.
There is a new Propeller-Tool like IDE coming that will make this all better.
Your Spin code should all be in the same folder as your main spin file (/opt/parallax/spin is separate of course).
If you have Spin code in a separate folder, you can use the Project Manager -> Compiler -> Other Compiler Options to set another library path.
For example, I have spin code in C:/propeller/spin, so I can add that folder to the Other Compiler Options as: -L C:/propeller/spin
Any of these options can be added to the Other Compiler Options field.
It appears that the way I resolved the problem was by using Project->Add File Copy, which puts the SPIN file in the Project directory with the main SPIN file - which is what you explain is required in the current implementation.
Thanks for the reply. Great "customer service".