Shop OBEX P1 Docs P2 Docs Learn Events
simpleIDE and SPIN? — Parallax Forums

simpleIDE and SPIN?

prof_brainoprof_braino Posts: 4,313
edited 2015-04-03 09:16 in General Discussion
Can we use simpleIDE to compile and load SPIN files?

ANSWER as of post 18: its possible in some but not necessarily in all cases, and may be unsupported. Propeller IDE is the current tool for SPIN.

I see the Project options has compiler type SPIN, but I can't figure out how to get at it.

I tried to create a new project using project name TEST and selecting types of files SPIN PROJECT (*.spin), this gives the message:
Project not Found
Blank Simple Project was not found

I tried opening the example project Welcome.side, but this opens Welcome.c not Welcome.spin

Any hints what I'm doing wrong?
«1

Comments

  • mindrobotsmindrobots Posts: 6,506
    edited 2015-03-21 16:42
    Besides NOT using PropellerIDE?? :)

    If I remember correctly, you needed to do the steps correctly to create a Spin project in SimpleIDE - any mistakes left you with a C project and frustration. That was long ago and several versions back when I played with it.

    PropellerIDE is REALLY nice now for Spin programming across multiple platforms.
  • msrobotsmsrobots Posts: 3,709
    edited 2015-03-21 16:59
    @prof_brainno,

    wrong program!

    Initially simpleIDE was supposed to support C/C++ and SPIN. But there is the different ways C and SPIN support files like includes or Spin objects. There is some workaround with C/C++ projects using Project View and Spin projects do not use Project View. But this was getting odd since two 'workflows' where needed in the same application.

    So Steve decided to 'spin-off' another project called PropellerIDE now currently managed by Brett Weir from the LameStation group(?). You should be able to find it on the Parallax Git-Hub page.

    Basically you can use simpleIDE with SPIN, but you shouldn't. Use simpleIDE for C/C++ and propellerIDE for SPIN and soon(?) PropBasic.

    @Ken stated in one of his last posts that Parallax is supporting propellerIDE and also the integration of PropBasic into the IDE.

    Brett posted lately that the syntax highlighter for PropBasic is already working. Like simpleIDE, propellerIDE is based on QT and both programs are supposed to support Wndow, Linux and Mac.

    Bret also stated that he is modularizing propellerIDE to allow adding other languages to the IDE. Not sure how syntax highlighting and code completion would work with a language like FORTH, but as far as I remember @Heater just need to say that it is 'impossible' and someone gets it done..

    I do not have much Propeller time lately and can barely follow the forums. So I haven't tried the never versions of both yet.

    Enjoy!

    Mike
  • Bob Lawrence (VE1RLL)Bob Lawrence (VE1RLL) Posts: 1,720
    edited 2015-03-21 18:39
    re: wrong program!

    Initially simpleIDE was supposed to support C/C++ and SPIN. But there is the different ways C and SPIN support files like includes or Spin objects. There is some workaround with C/C++ projects using Project View and Spin projects do not use Project View. But this was getting odd since two 'workflows' where needed in the same application.

    I searched the forms before I started to play with SimpleIDE so I could run it from the Raspberry Pi 2. It was difficult to determine if Simple IDE even supported Spin from the threads I found. I finally did a file search on Rasbain and found the Spin files located under /opt/parallax/spin. I managed to get it working but I couldn't help but think that the process was too difficult for beginners. At least now I know why. LOL
  • prof_brainoprof_braino Posts: 4,313
    edited 2015-03-21 20:03
    OK, I know that propellerIDE works, I have used it it, my question was only about the simpleIDE tool.

    I was able to use simpleIDE to load the propforth devkernel. All I did was create a propforth.side file with
    Devkernel.spin
    compiler=SPIN
    I almost didn't try this, I figured a SPIN was too obvious not to have been included.

    Does simpleIDE only work with a single spin file? Seems the documentation should contain at least an explanation and example for the simple case.

    simpleIDE is a release candidate, but is it? Seems like pre-release since it contains functions that don't work, and/or omits at least one basic example.
  • Keith YoungKeith Young Posts: 569
    edited 2015-03-21 20:11
    I'm able to compile SPIN to an Activity Board using a Pi B+ and SimpleIDE. It did give difficulties getting my first project to work, and after that it does seem to fail to compile randomly.
  • prof_brainoprof_braino Posts: 4,313
    edited 2015-03-21 20:20
    I'm able to compile SPIN to an Activity Board using a Pi B+ and SimpleIDE. It did give difficulties getting my first project to work, and after that it does seem to fail to compile randomly.

    Does it matter if the project calls addition files for other objects? Or does the same (set of) file(s) work one time, and fail another?
  • mindrobotsmindrobots Posts: 6,506
    edited 2015-03-21 20:34
    As mentioned earlier, I don't know if Spin under SimpleIDE is really a supported combination anymore. After SimpleIDE picked up the Spin capability, I think Parallax decided there would be two tools and SimpleIDE would not do Spin. Spin support maybe partially implemented and no longer supported. It should be removed completely if that is the direction they are taking.

    Any reason you DO NOT want to use PropellerIDE?
  • Heater.Heater. Posts: 21,230
    edited 2015-03-21 20:48
    msrobots,
    ...as far as I remember @Heater just need to say that it is 'impossible' and someone gets it done..
    Wow! I have such awesome powers. I'd better be careful what I say.
  • mindrobotsmindrobots Posts: 6,506
    edited 2015-03-21 20:55
    Heater. wrote: »
    I'd better be careful what I say.

    IMPOSSIBLE!!! :D


    (sorry, you set yourself up for that one!)
  • Keith YoungKeith Young Posts: 569
    edited 2015-03-21 21:31
    Does it matter if the project calls addition files for other objects? Or does the same (set of) file(s) work one time, and fail another?

    I want to check now, but I suspect my wife will get me to stop before I can get anywhere. I should be able to get back to you on that tomorrow.
  • RsadeikaRsadeika Posts: 3,837
    edited 2015-03-22 09:04
    I see the Project options has compiler type SPIN, but I can't figure out how to get at it.
    After you choose the compiler type, SPIN, go up to the top of the window, Project, and select New. This opens up another window where it allows you to create a Spin project.

    Ray
  • prof_brainoprof_braino Posts: 4,313
    edited 2015-03-22 09:46
    mindrobots wrote: »
    ....don't know if Spin under SimpleIDE is really a supported combination anymore. .... SimpleIDE would not do Spin. ....It should be removed completely if that is the direction they are taking.

    Agreed. At present, SimpleIDE spin functions not working can only be a bug. It is uncharacteristic for Parallax to release a major tool with obvious major bugs.
    Any reason you DO NOT want to use PropellerIDE?

    I DO use Propeller IDE (corrected typo), I am simply checking whether simpleIDE is complete yet.

    This check was to determine if there are remaining bugs that would prevent us from using simpleIDE. When 33% doesn't work, then the tool cannot be trusted. Clearly, simpleIDE is still in "developer only" state, and cannot be considered suitable for regular users. The release candidate should be rejected. This should be a no-brainer.

    Could someone state the technical reason why simpleIDE cannot do SPIN, what aspect of the workflow makes these mutually exclusive from a single tool?
  • prof_brainoprof_braino Posts: 4,313
    edited 2015-03-22 09:50
    Rsadeika wrote: »
    After you choose the compiler type, SPIN, go up to the top of the window, Project, and select New. This opens up another window where it allows you to create a Spin project.

    Ray

    This did not work on Linux Mint 17 (debian/ubuntu variant), it said blank project not found. However, I manually edited a project file and was able to compile my single spin file. To me, it looks like the only thing missing is an example and instructions, but I did not try a spin file that calls objects from other files.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2015-03-22 09:53
    Any reason you DO NOT want to use PropellerIDE?
    I DO use Propeller tool, I am simply checking whether simpleIDE is complete yet.
    PropellerIDE and Propeller Tool are two different products. PropellerIDE works under Windows, OSX, and Linux.

    -Phil
  • mindrobotsmindrobots Posts: 6,506
    edited 2015-03-22 10:23
    Agreed. At present, SimpleIDE spin functions not working can only be a bug. It is uncharacteristic for Parallax to release a major tool with obvious major bugs.



    I DO use Propeller tool, I am simply checking whether simpleIDE is complete yet.

    This check was to determine if there are remaining bugs that would prevent us from using simpleIDE. When 33% doesn't work, then the tool cannot be trusted. Clearly, simpleIDE is still in "developer only" state, and cannot be considered suitable for regular users. The release candidate should be rejected. This should be a no-brainer.

    Could someone state the technical reason why simpleIDE cannot do SPIN, what aspect of the workflow makes these mutually exclusive from a single tool?

    A stated before, I think SimpleIDE is "over complete". At some point, the 33% you want to use was determined to be above and beyond what Parallax wanted SimpleIDE to do. My understanding was that it was not to be a Spin tool, that would be handled by PropellerIDE. Parallax would officially need to answer this and explain the final roadmap for SimpleIDE.

    I don't think there is a technical reason. It does do Spin....I think it was a marketing decision to have it not do Spin.

    Again, someone from Parallax would need to lay out the roadmaps for the two products.

    Checking the release candidate should probably be limited to if and how well it can be used as a C/C++ IDE for the Propeller.
  • RsadeikaRsadeika Posts: 3,837
    edited 2015-03-22 10:28
    This did not work on Linux Mint 17 (debian/ubuntu variant), it said blank project not found.
    SimpleIDE is in state of flux at the moment, SimpleIDE for Linux RC1, SimpleIDE for RaspberryPi 0-9-45, SimpleIDE for Windows/Mac RC2. Since Spin was a "bolt-on" (after thought) for SimpleIDE, I have a sneaking suspicion that Spin for SimpleIDE is no longer maintained, and I would not be surprised if it disappeared with RC3.

    I personally have all my Propeller projects on hold until the IDE selections get updated across the board and there is a good installable package available. Propeller Tool does not work in the Linux environment, and BST is dead in the water, for those of you that were going to make those suggestions.

    Ray
  • Heater.Heater. Posts: 21,230
    edited 2015-03-22 10:46
    Ray, what's wrong with PropellerIDE? It's running fine on Debian here.
  • evanhevanh Posts: 15,921
    edited 2015-03-27 04:08
    It could do with a text search feature. And there's no menus nor preferences. And, if I remember correctly, it screws up a little on the colour coding as well ... just found one: It doesn't recognise non-alpha as first character of a symbol.

    Fleshing that out a little ... My experience is limited but in perusing Chip's various VGA drivers I found he uses colons quite a bit as first character of a PASM line labels. PropellerIDE doesn't grok those at all, I think it treating them as white spaces. Result is PropellerIDE is even seeing some labels as reserved words.
  • msrobotsmsrobots Posts: 3,709
    edited 2015-03-27 18:55
    @evanh,

    a colon in front of a label in PASM makes that label local. Local as local between non local labels. So you are able to have multiple :loop labels in one PASM source. One of that @Chip things.

    Non-alpha first character needs to get fixed. I agree. Symbols starting with a number are quite common to me, programming COBOL...

    @rsadeika

    But @Jazzed and now @Brett have put a tremendous amount of work into this. I am very thankful for their work and say so now:

    Thank you @Jazzed for SimpleIDE and PropellerIDE. You made a big step for Parallax and us users. Platform independence.

    And since it is open source Brett was able to take over the PropellerIDE project from @Jazzed and @Jazzed does not need to spend any more time on it. Well done @Jazzed. Thank you.

    BST is sadly unsupported now and not open source. Propeller Tool is just windows.

    But PropGCC, OpenSpin, SimpleIDE and PropellerIDE can run on a lot of different platforms and OSs.

    Thanks to all guys involved with this, not just @Jazzed all of you...

    Enjoy!

    Mike
  • evanhevanh Posts: 15,921
    edited 2015-03-30 04:32
    msrobots wrote: »
    a colon in front of a label in PASM makes that label local. Local as local between non local labels. So you are able to have multiple :loop labels in one PASM source. One of that @Chip things.

    Ah, thanks for the heads up. I think I get what you mean by "between non local labels."
  • juliya10juliya10 Posts: 2
    edited 2015-03-31 01:40
    Hello everyone, am little confuse about simpleIDE. Is simpleIDE support multi types of programming languages?
  • dgatelydgately Posts: 1,630
    edited 2015-03-31 11:08
    juliya10 wrote: »
    Hello everyone, am little confuse about simpleIDE. Is simpleIDE support multi types of programming languages?

    SimpleIDE does support C (GCC) and Spin compilation... The level of support for the Spin language is not as complete as for C & C++. The UI of SimpleIDE, when not in Project mode does not make the creation of a new Spin project as easy as a new C project, as the user needs to create a new file, name it with a .spin extension, then click on the "Set Project to Current Tab" button, which then creates the new project as a "Spin project". So, just a little trickery is required to get SimpleIDE to NOT assume a .c or .cpp based project.

    Support for GCC & Spin compilers:
    attachment.php?attachmentid=113719&d=1427824263

    Support for .c, .cpp & .spin project types:
    attachment.php?attachmentid=113720&d=1427824490

    The Project Manager for a Spin project works differently than it does for a C project. For C (& C++), files can be easily added to the project by left-click (or Control-click on Mac OS X) in the Project Manager view. This option does not work for Spin projects. The usual OBJ type is used within the code to specify libraries:

    Objects specified in Spin code 'OBJ' declaration show up in the Project Manager for Spin projects:
    OBJ
        libName:           "libFileName.spin" 
    


    dgately
    511 x 403 - 90K
    296 x 160 - 38K
  • prof_brainoprof_braino Posts: 4,313
    edited 2015-03-31 14:48
    Too bad simpleIDE cannot include that explanation in the instructions.
  • jazzedjazzed Posts: 11,803
    edited 2015-03-31 16:56
    I'm removing SPIN project types completely from SimpleIDE.

    Spin files will only be in an accessory role for device drivers in the future as was originally intended.

    Get over it. Move on.
  • prof_brainoprof_braino Posts: 4,313
    edited 2015-04-01 02:45
    jazzed wrote: »
    I'm removing SPIN project types completely from SimpleIDE.

    Spin files will only be in an accessory role for device drivers in the future as was originally intended.

    Get over it. Move on.

    Disdain for the users and disregard for the requirements does not give warm fuzzies about the tool.

    Removing working support for the part's native language raises some questions. For example, why was it in there in the first place if it wasn't a requriement? Did Parallax really intend that spin would be supported only as accessory? This does not sound familliar. Did I miss a post stating that the prop 2 would not support spin or something? My apologies, I don't follow all the forum threads due to time constraints.

    Since the spin compiler functionality appears to be working, isn't it more effort to remove it rather than simply supplying a working example and the same short explanation given in this thread? Finishing up the examples and instructions is usually the easy part. Is there a technical reason why spin does not work and must be removed?

    If the design decision was "all compilation will be done using project file process flow"; then fine, as the spin compiler can be used. The code is open source, later one somebody can make a generic single spin file project if there's no budget for that now. Splitting the "simple" tool into two parts seems to go against the "one simple tool" idea.
  • Heater.Heater. Posts: 21,230
    edited 2015-04-01 02:59
    prof_braino,
    Disdain for the users and disregard for the requirements does not give warm fuzzies about the tool.
    I say old chap that's a bit strong.

    Support for Spin may well be removed from Simple IDE, thus returning it to it's original intended purpose, a simple IDE for C on the Propeller, but Spin is now supported by PropellerIDE.

    PropellerIDE is a open source cross platform IDE dedicated to Spin, like the PropTool.

    I like this solution as it keeps both tools simple. Which is important for the tool developers but also important when presenting programming to beginners for the first time with these tools.

    Spin will for sure be supported on the Propeller 2. It's unimaginable that it would be dropped there.

    Do not panic!
  • prof_brainoprof_braino Posts: 4,313
    edited 2015-04-02 14:56
    I say old chap that's a bit strong.

    No. When a legitimate question is asked and the response is "get over it" rather than a clarifiaction or statment of requirements being met, that's simply rude. I'm asking about an obvious bug.
    Either the requirement is to have Spin support or not; so this is either a bug because it doesn't work or because its present and should not be. We want to ask and answer these questions sooner that later. A common error is for a developer to change high level requirements (without authorization) to fit the code instead of the other way around. Better to ask a dumb question now than discover a costly mistake later.

    Ok, I now understand the requirement to be the tool is C only for the prop.

    So here's one source of confusion: The name simple IDE implied (to me at least) simple ide for the propeller, i.e it would replace the windows-only/spin-only propeller tool. I did not think the original idea was a C only tool for the prop until I read post #27. I would have thought something like that would be call PropC-IDE, but I guess Prop-cide would have a wrong ring to it. Another part of the confusion is that the name Propeller IDE imples it does everything we need for the propeller, when in fact that tool only does spin. We should expect this confusion in every newcomer.

    I flag this for consideration. The suggestion is that the C tool for the prop might say something about C and the prop in its name, and the spin tool for the prop might say something about spin and the prop in its name. This would go a long way eliminating confusion for newcomers, or anyone else that does not follow the fourms closely, like yours truely.

    The purpose of this thread is to figure out if we need two tools instead of one, and how things look for folks that use Linux.

    Since Propeller IDE does not do everything we expect from the original Propeller Tool, it means we still must keep a copy of windows around in case we need some functionallity from the propeller tool. So Linux users need two tools, and another OS to run a third tool?
  • mindrobotsmindrobots Posts: 6,506
    edited 2015-04-02 15:51
    So there is Propeller Tool - Spin only, Windows only
    CimpleIDE - C/C++ only, runs on MacLindows
    PropellerIDE - SPIN/PASM only, runs on MacLindows

    What don't the *IDE tools do that you still need windows around for?
  • David BetzDavid Betz Posts: 14,516
    edited 2015-04-02 16:01
    mindrobots wrote: »
    So there is Propeller Tool - Spin only, Windows only
    CimpleIDE - C/C++ only, runs on MacLindows
    PropellerIDE - SPIN/PASM only, runs on MacLindows

    What don't the *IDE tools do that you still need windows around for?
    Except that Ken has told us that PropellerIDE will be enhanced to also support PropBasic and I've heard there is a plan to have it support C/C++ as well.
  • mindrobotsmindrobots Posts: 6,506
    edited 2015-04-02 18:49
    David Betz wrote: »
    Except that Ken has told us that PropellerIDE will be enhanced to also support PropBasic and I've heard there is a plan to have it support C/C++ as well.

    Even better! Sauce for the goose!!
Sign In or Register to comment.