wxFBE, editor for both Windows and Linux

User projects written in or related to FreeBASIC.
leodescal
Posts: 165
Joined: Oct 16, 2009 14:44
Location: Jodhpur, Rajputana, Empire of Aryavart
Contact:

Re: wxFBE, editor for both Windows and Linux

Postby leodescal » Oct 09, 2012 22:50

I translated everything except:

Code: Select all

emptyOutput=Empty compiler output
runParameters=Run parameters
showLineBraces=Show line braces
menuSetCase=Set code case
setCase=Set code case


I can't translate them because I don't know what they do! Can you tell me what do they do?
integer
Posts: 378
Joined: Feb 01, 2007 16:54
Location: usa

Re: wxFBE, editor for both Windows and Linux

Postby integer » Oct 10, 2012 6:58

There may be a problem with the extended characters: ascii(240) in particular

I used FBIDE to do some editing on a file: "bpsw1.c"
(The original source code bpsw1.c is by/Thomas R. Nicely [2009.06.08.0500])
There was no apparent problem while using FBIDE.

Attempted to use wxFBE but nothing loaded.
Other text file would load into wxFBE, but not the bpsw1.c file

Deleted lots of lines: the file would lot load into wxFBE
Eventually, removed the last line containing the ascii(240) character.
The remainder of the file loaded.

After I used FBIDE to change all of the asc(240) characters to asc(32), wxFBE accepted the file.

USING: FB 0.24 XP.SP3
MOD
Posts: 554
Joined: Jun 11, 2009 20:15

Re: wxFBE, editor for both Windows and Linux

Postby MOD » Oct 10, 2012 17:28

Code: Select all

emptyOutput=Empty compiler output -> Will erase the output of the compiler which will be added to the textbox below the editing area
runParameters=Run parameters -> That means some parameters you can pass to you compiled program when running it directly from wxFBE (FBIDE has the same feature in its menu under Run>Parameters...)
showLineBraces=Show line braces -> you can delete this, I not sure what it is and it's never used
menuSetCase=Set code case -> Text for menu point of the next option
setCase=Set code case -> This sets the code case (e.g. change "print" to "Print" and "deallocate" to "DeAllocate"


integer: I know about the problem with unicode symbols but ascii works fine. Do you use the latest version/build? At least for windows this should be fixed.
leodescal
Posts: 165
Joined: Oct 16, 2009 14:44
Location: Jodhpur, Rajputana, Empire of Aryavart
Contact:

Re: wxFBE, editor for both Windows and Linux

Postby leodescal » Oct 10, 2012 18:03

Tried compiling in ubuntu 12.04 LTS with 0.24 FBC

got this error:

Code: Select all

ld: cannot find -lwx-c-0-9-0-2


I tried running compile.sh bash and got this error...

I'm I missing some library? Isn't everything required is included in source code?
MOD
Posts: 554
Joined: Jun 11, 2009 20:15

Re: wxFBE, editor for both Windows and Linux

Postby MOD » Oct 10, 2012 18:21

The linux libs are not in the repository, but are part of the download (see first post). Don't forget to read the readme.txt.
leodescal
Posts: 165
Joined: Oct 16, 2009 14:44
Location: Jodhpur, Rajputana, Empire of Aryavart
Contact:

Re: wxFBE, editor for both Windows and Linux

Postby leodescal » Oct 10, 2012 18:42

MOD wrote:The linux libs are not in the repository, but are part of the download (see first post). Don't forget to read the readme.txt.


Ok.. Now got this error:

Code: Select all

./libwx-c-0-9-0-2.so: undefined reference to `wxStyledTextCtrl::SendMsg(int, long, long)@WXU_2.8'


I tried running the linux binary and got this error:

Code: Select all


./wxFBE: error while loading shared libraries: libwx-c-0-9-0-2.so: cannot open shared object file: No such file or directory


It is there... don't know why it can't find it..
MOD
Posts: 554
Joined: Jun 11, 2009 20:15

Re: wxFBE, editor for both Windows and Linux

Postby MOD » Oct 10, 2012 19:42

Did you read the readme.txt?
leodescal
Posts: 165
Joined: Oct 16, 2009 14:44
Location: Jodhpur, Rajputana, Empire of Aryavart
Contact:

Re: wxFBE, editor for both Windows and Linux

Postby leodescal » Oct 11, 2012 1:14

Ah... I did read it. I was testing something and renamed libwx-c-0-9-0-2.so to libwz-c-0-9-0-2.so, just for some fun :P and then I moved this to /usr/lib . I just noticed the z and renamed it. lol. It is working fine now...
leodescal
Posts: 165
Joined: Oct 16, 2009 14:44
Location: Jodhpur, Rajputana, Empire of Aryavart
Contact:

Re: wxFBE, editor for both Windows and Linux

Postby leodescal » Oct 12, 2012 8:24

I have a new cool screenshot of wxFBE... You may like it :D

Image
AGS
Posts: 1284
Joined: Sep 25, 2007 0:26
Location: the Netherlands

Postby AGS » Oct 12, 2012 21:15

I have built and tested wxfbe (version 10 oktober 2012).

Regular expression using wxSTC_FIND_POSIX was broken. Matching just
does not work when using that flag. As the code in regexp is basically
doing what wxSTC_FIND_POSIX does there is no need for wxSTC_FIND_POSIX.

I'd say dump wxSTC_FIND_POSIX as your code is already taking
care of things (keep wxSTC_FIND_REGEXP).

The shortcut changes (\w ==> [a-zA-Z0-9_]) work well but there
is a problem.

When matching using a class (say [a-zA-Z]+) the search routine
may come up with "dim" (dim also gets selected). When pressing search again
the search routine comes up with "im" (that's the previous dim with the d).
Which is not wrong (im does match [a-zA-Z+]) but that's not what you want.

Let's assume dim and im count as separate matches. When doing a search-replace the
replacement will first operate on dim, then on im. And that is not right. The regex should
just select the longest possible match and use that in
the find-replace (and not use the longest match and all possible smaller matches within that
match).

The search should continue after the first (and longest) match (dim). So the first
match is okay but searching should continue at the first position after the
first search result (and not one position after the first character of the
current match).

For some reason I do not seem to be able to use ? in combination with grouping.
I tried matching something like (sub)?\s+\w+ but that did not match a thing.
Changing it to sub\s+\w+ did match. Grouping does not work as it does with
other regex engines (it's a scintilla problem I guess).

Any project using scintilla implements it's own brand of regular expression matching
(replacing the built-in regex engine). It's like the scintilla devs put it:

The regular expression support is limited and should only be used for simple cases and initial development


wxfbe is in it's early stages of development so that seems to fit the above description. Character class
abbreviations (\w \s \d \W \S \D) and the use of () instead of \(\) are features that can be added
to scintilla without having to replace the current regex engine. But somewhere in the future of wxfbe
development someone has to replace the built-in regex engine with a proper one (regex support in most if not all
'mature' source code editors is good).
Merick
Posts: 1038
Joined: May 28, 2007 1:52

Re: wxFBE, editor for both Windows and Linux

Postby Merick » Oct 13, 2012 15:54

Can you make TJF's h_2_bi work with wxFBE the same way it does with Geany?
MOD
Posts: 554
Joined: Jun 11, 2009 20:15

Re: wxFBE, editor for both Windows and Linux

Postby MOD » Oct 13, 2012 18:17

It should be possible but I don't see the point in implementing this and distribute another lib for windows and linux when you can easily use it with console. Furthermore I don't think many people would use this feature in their every day development.
TJF
Posts: 3467
Joined: Dec 06, 2009 22:27
Location: N47°, E15°

Re: wxFBE, editor for both Windows and Linux

Postby TJF » Oct 13, 2012 19:34

Merick wrote:Can you make TJF's h_2_bi work with wxFBE the same way it does with Geany?

MOD wrote:It should be possible but I don't see the point in implementing this and distribute another lib for windows and linux when you can easily use it with console.

There's no lib to distribute!

The point is that it's much faster and more transparent than using the console. h_2_bi can translate single C source statements in Geany: Geany calls h_2_bi and sends the marked text to the pipe STDOUT. h_2_bi gets the text, translates it and sends it back, so Geany can receive the translation from STDIN. Finaly it replaces the selection by the translation.

All you need in wxFBE is to call h_2_bi in a bidirectional pipe, PRINT # the selection and replace it by the pipe INPUT #. FBeauty also works that way. This is a very powerful way to auto-transform source code.
MOD
Posts: 554
Joined: Jun 11, 2009 20:15

Re: wxFBE, editor for both Windows and Linux

Postby MOD » Oct 13, 2012 20:02

TJF wrote:There's no lib to distribute!

I would need to distribute a compiled version for windows and linux, that I won't do, or use any form of detection, if it's installed or use another path variable. It is more work than users which will use this feature.
But if you're interested in it, join the IRC Channel (##freebasic or #fb-portal on freenode) and we could talk about it.
leodescal
Posts: 165
Joined: Oct 16, 2009 14:44
Location: Jodhpur, Rajputana, Empire of Aryavart
Contact:

Re: wxFBE, editor for both Windows and Linux

Postby leodescal » Nov 02, 2012 18:46

Any update on what's going on?

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 4 guests