wxFBE, editor for both Windows and Linux

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

Re: wxFBE, editor for both Windows and Linux

Post by leodescal »

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: 408
Joined: Feb 01, 2007 16:54
Location: usa

Re: wxFBE, editor for both Windows and Linux

Post by integer »

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: 555
Joined: Jun 11, 2009 20:15

Re: wxFBE, editor for both Windows and Linux

Post by MOD »

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

Post by leodescal »

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: 555
Joined: Jun 11, 2009 20:15

Re: wxFBE, editor for both Windows and Linux

Post by MOD »

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

Post by leodescal »

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: 555
Joined: Jun 11, 2009 20:15

Re: wxFBE, editor for both Windows and Linux

Post by MOD »

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

Post by leodescal »

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

Post by leodescal »

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

Post by AGS »

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

Post by Merick »

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

Re: wxFBE, editor for both Windows and Linux

Post by MOD »

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: 3809
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: wxFBE, editor for both Windows and Linux

Post by TJF »

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: 555
Joined: Jun 11, 2009 20:15

Re: wxFBE, editor for both Windows and Linux

Post by MOD »

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

Post by leodescal »

Any update on what's going on?
Post Reply