Akira-Hayasaka / ofxGLEditor

Script editor for oF Live Coding
GNU General Public License v2.0
100 stars 16 forks source link

error compiling in DELETE enum on UndoActionType @ Windows 10 and 0.9.8 #23

Closed moebiussurfing closed 6 years ago

moebiussurfing commented 6 years ago

hi @Akira-Hayasaka @danomatika , I have several errors related to the DELETE enum on UndoActionType in ofxEditor.h

        /// undo action types
        enum UndoActionType {
            INSERT,       //< text inserted
            REPLACE,      //< selection replaced via paste action
            OVERWRITE,    //< selection replaced via key input
            BACKSPACE,    //< text deleted to the left
            DELETE        //< text deletetd to the right
        };

capture

I go to try a previous commit as the readme file points that the repo is build against OF current repo... Any help is appreciated!

moebiussurfing commented 6 years ago

i downloaded the tagged zips 0.3.1 , 0.3.0 and I am getting the same above errors. with the 0.2.0 zip i have other errors related to the font: capture

danomatika commented 6 years ago

Try renaming DELETE to something else in the addon code. Also, the errors in your second screenshot look related to compiling the add-on with the OF git master. It's not been updated for that as we usually wait for full release versions to come out. (nevermind, you're using OF 0.9.8)

moebiussurfing commented 6 years ago

Thanks! It worked renaming DELETE to DELETE_RIGHT. Also I get another error and partially solved adding a missing ‘return PLAIN’ somewhere in an editorSyntax function. (I am on the cell phone and I can’t show you now) Now it compiles but it crashes when moving the cursor to the end of text editor... Any idea?

micuat commented 6 years ago

a lazy fix is to add

#undef DELETE

after the #includes (I tested it with vs2015 + of0.9.8 + win10).

and yes, there is another error when

crashes when moving the cursor to the end of text editor

moebiussurfing commented 6 years ago

Thanks. I am using the same setup: 0.9.8, Windows 10 and vs 2015. I ll check to the cursor bug issue

danomatika commented 6 years ago

This should be fixed in the latest commits.