Shop OBEX P1 Docs P2 Docs Learn Events
SimpleIDE bug??? — Parallax Forums

SimpleIDE bug???

NWCCTVNWCCTV Posts: 3,629
edited 2013-07-05 17:12 in Propeller 1
I know SimpleIDE is still in Beta but I have been using it this past week so I can get use to it. I really like it but I have noticed that when I add code to my Project files and close the Project, the entire Project is saved as is whether I choose to discard or not. This is a little annoying as I am trying to use the examples and do not wish to overwrite them. Even when I do a "Save As" a different file name and then close the Project, it comes back up with the most recent code I have entered. Has anyone else noticed this? Also, I tried to create a New Project and when I copy and pasted the code from the examples for the Servoramp.c I receive an error message when trying to compile. I tried with an exact duplicate of the code that was copy and pasted to my new project and I receive an error pertaining to invalid reference to _mark. I searched servo.h for this and could not find it.

Comments

  • jazzedjazzed Posts: 11,803
    edited 2013-07-05 13:06
    Hi. I've logged an issue for the first problem.
    https://code.google.com/p/propside/issues/detail?id=164

    The second problem you mentioned is addressed in a newer package.
    Can you copy/paste your code here so I can verify the new version will address the issue?

    We have gone to great lengths to let folks just copy/paste code (not an original design goal).
    https://code.google.com/p/propside/downloads/detail?name=Simple-IDE_0-9-34_setup.zip

    This is not a release candidate and there may be changes to Simple Libraries and/or APIs before release.

    If you download 0-9-34, please follow the instructions from that page:
    Remove C:\propgcc if it exists.
    
    Uninstall any previous package, then unzip installer and run.
    Remove or rename Documents\SimpleIDE folder, then run SimpleIDE.
    
    This version provides support for multi-user install, auto-include library, and translations for French/Spanish.
    
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-07-05 13:52
    I am running 0.9.28. Should I upgrade? Below is the code that I copied directly from the Servo Project. It runs fine when first opened. However, Like I said, if I select Project/New and paste this same code it will not compile and will not compile and throws the error. I am attaching the error in code brackets below the source code.
    /*Standard Servo with Ramping.c
    Moves servo to 0, 90 and 180 degrees. Allows 2 seconds to get to 
    each position. Uses ramping to gradually move the servo to the target.
    learn.parallax.com/propeller-c-simple-devices/standard-servo-ramping 
    */
    
    
    #include "simpletools.h" // Include simpletools header
    #include "servo.h" // Include servo header
    
    
    int main() // main function
    {
    servo_angle(16, 0); // P16 servo to 0 degrees
    pause(3000); // ...for 3 seconds
    servo_angle(16, 900); // P16 servo to 90 degrees
    pause(3000); // ...for 3 seconds
    servo_angle(16, 1800); // P16 servo to 180 degrees
    pause(3000); // ...for 3 seconds
    servo_stop(); // Stop servo process
    }
    


    Error Codes:
    Project Directory: C:/Users/Andyn/Documents/SimpleIDE/My Projects/test/
    
    propeller-elf-gcc.exe -I . -L . -I ../../Learn/Simple Libraries/Utility/libsimpletools -L ../../Learn/Simple Libraries/Utility/libsimpletools/cmm/ -I ../../Learn/Simple Libraries/Motor/libservo -L ../../Learn/Simple Libraries/Motor/libservo/cmm/ -o cmm/test.elf -Os -mcmm -fno-exceptions -std=c99 test.c -lsimpletools -lservo
    ../../Learn/Simple Libraries/Motor/libservo/cmm/\libservo.a(servo.o): In function `_servo':
    
    
    (.text+0x9): undefined reference to `_mark'
    
    
    ../../Learn/Simple Libraries/Motor/libservo/cmm/\libservo.a(servo.o): In function `.L7':
    
    
    (.text+0x2e): undefined reference to `_input'
    
    
    ../../Learn/Simple Libraries/Motor/libservo/cmm/\libservo.a(servo.o): In function `.L7':
    
    
    (.text+0x82): undefined reference to `_pulse_out'
    
    
    ../../Learn/Simple Libraries/Motor/libservo/cmm/\libservo.a(servo.o): In function `.L4':
    
    
    (.text+0x9c): undefined reference to `_wait'
    
    
    collect2: ld returned 1 exit status
    
    
    Done. Build Failed!
    
    
    Check source for bad function call or global variable name `_mark'
    
    
    ../../Learn/Simple Libraries/Motor/libservo/cmm/\libservo.a(servo.o): In function `.L7':
    
    
    (.text+0x2e): 
    
  • jazzedjazzed Posts: 11,803
    edited 2013-07-05 14:51
    NWCCTV wrote: »
    I am running 0.9.28. Should I upgrade? Below is the code that I copied directly from the Servo Project. It runs fine when first opened. However, Like I said, if I select Project/New and paste this same code it will not compile and will not compile and throws the error. I am attaching the error in code brackets below the source code.

    Yes, this is expected in v0-9-28 because just copy/paste will not work. In v0-9-28, you have to add libraries for it to work. Version 0-9-34 adds libraries for you but compiles slower.

    So, yes, you should upgrade to v0-9-34 ... the package is smaller too :)
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-07-05 15:15
    Will do. Does the Library need to be updated also?
  • jazzedjazzed Posts: 11,803
    edited 2013-07-05 15:42
    NWCCTV wrote: »
    Will do. Does the Library need to be updated also?

    No.

    However, if you remove or rename your Documents\SimpleIDE folder and restart SimpleIDE, you will get a new workspace and libraries in Documents\SimpleIDE copied from the Program Files\SimpleIDE\Workspace folder.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2013-07-05 16:16
    Cool. The copy/paste works now. Thanks for the heads up. Is there a way to find out when new releases are posted? I have been watching for updates but did not see any mention of this one on the Forums.
  • jazzedjazzed Posts: 11,803
    edited 2013-07-05 17:12
    NWCCTV wrote: »
    Cool. The copy/paste works now. Thanks for the heads up. Is there a way to find out when new releases are posted? I have been watching for updates but did not see any mention of this one on the Forums.

    Our deadline for a general release is before the end of summer. We are still working on libraries.
Sign In or Register to comment.