GLBasic forum

Main forum => Beta Tests => Topic started by: dreamerman on 2013-Oct-13

Title: GLBasic code editor - BR GLB IDE, with VB .Net source... Update: 21.10.2021
Post by: dreamerman on 2013-Oct-13
BR GLB IDE (may change)
This is my attempt to make code editor with features that standard IDE is missing.
Written in Visual Basic 2013 with .NET 4.5 and ScintillaNet 3.x, a source code editor for GLBasic. Free, full source code included (WIP project so beware of coding style).

Current version: 21.10.2021
Download link in attachments - so I can easily count them ;)

What does it look like?
(http://www.dreamerman.netserwer.pl/grafika/ide_shot2.png)

Features
Feature list:
- custom lexer for code coloring, syntax highlighting (all GLB keywords and user typed),
- code folding (Subs, Functions, Types, //#region),
- colored margins to see what part of code were modified,
- colored background for tabs with source names (color depends on source modification counter),
- customisable styles, that can be easily shared,
- bookmarks, saved in separate file,
- auto-completion (see attached gif) for both GLB keywords (full list), and dynamically typed user functions, types and variables, (includes identification of global, local variables/functions),
- hints (function arguments, comments) for all standard GLB functions, and user typed functions,
- show function/type definition (press CTRL and click on word (if it's a function) to go to its definition, works also with types and normal variables),
- quite advanced types handing - identifies nested types, functions in types and all what comes with it,
- support for older GLB v12 up to newest Steam v16 compilers,
- each project is compiled/built in separate temporary directory, skipping unchanged files during compilation (similar to IncrediBuild),
- and more, ah and full source code included,
NOTE: Not all functions have their own menus, try using same keyboard shortcuts as in standard editor.


FUNCTION HINTS:
(http://www.dreamerman.netserwer.pl/grafika/hints_3.gif)
AUTO-COMPLETE:
(http://www.dreamerman.netserwer.pl/grafika/autocomplete1_small.gif)



Current issues:
- Current version of Scintilla doesn't use hard tabs (like most of modern text editors/ide), default soft tabs are 4 spaces width,
- Only basic project management,
- Not bullet-proof for errors,
- Compiling tested only for WIN32/64 platform, other platforms could be working,
- Find&Replace is binded to one Scintilla object (can't do multiple file search/replace without writing new component),
- DEBUG command doesn't work (it just don't show info), to replace it use STDOUT with this fix:
Code (glbasic) Select
INLINE
}
extern "C" {
#include <cstdio>
}
namespace __GLBASIC__ {
ENDINLINE

FUNCTION stdout_fix:
INLINE
setbuf(stdout, NULL);
ENDINLINE
ENDFUNCTION

and use 'stdout_fix()' function at start of your sources, and STDOUT as equivalent of DEBUG.


Current TODO
Fix bugs.


What you need to get it work?
1. Download and install .Net 4.5 Framework Redistributable / Client Pack, newer system have it built-in.
2. Compile any project with normal GLB IDE, and copy 'glblicence.inc' ('C:\Users\-X-\AppData\Local\Temp\glbasic' or '%temp%\glbasic') to app directory. This file is needed by glbasic compiler, but files from temp dir are always deleted, so we need to have it in some place and copy each time before compiling.
3. Run my IDE, goto 'tools->Options', type proper path to your GLBasic dir (to know where is the compiler, for example: 'C:\Program Files (x86)\GLBasic_v15'), also specify company name, save cfg.
4. Load your project, edit, select win32 platform, compile. All should work now.


Legacy projects - no longer updated.
To keep this post clean download links will be separated from main editor attachment.

BR GLD IDE ver VB 2010
Previous version of my code editor, made with VB 2010, .Net 2.0 and ScintillaNET 2.x

Pre GPC - precompiler to use with your favorite IDE
Simply it's PureBasic project with command line interface, that can open and compile GLB projects, you just need to pass any legit source code as argument, and app will handle the rest. Thats why it can be used with external code editors like SublimeText (as they can't read GLB project themselves).
This archive includes SumblimeText 'package' started by Albert here (http://www.glbasic.com/forum/index.php?topic=7653.msg67039#msg67039)
Title: Re: Pre GPC - use GLBasic with you favorite IDE..
Post by: mentalthink on 2013-Oct-13
 :enc: :enc: HI dreamerman this can be absolutely cool, can use GLbasic in any IDE, I like a lot the GLBasic Ide but perhaps in CodeBlocks or Sublime Text can be wonderfull pick code in GLBasic...

I hope when you finished the project make a tutorial for know how make the process to add the Compiler and all the needed for working...

Thanks a lot, and Welcome, I think you are "newbie"  :P here!!!
Thanks!!!
Title: Re: Pre GPC - use GLBasic with you favorite IDE..
Post by: dreamerman on 2013-Oct-18
Setup is really simple, only few steps, I have change first post a little so now it's clearly written how to setup app.
For SublimeText most of GLBasic functions are defined now, so auto-completion is more usefully. Still this editor isn't perfect, no function list and so on :/

I looked into CodeBlocks custom syntax highlighting and it's little complicated - need to write scintilla lexer and some additional things.
Is there any other good, free IDE with auto-completion, hints with easy configuration for custom languages? Or it would be better to write new IDE from scratch..
Title: Re: Pre GPC - use GLBasic with you favorite IDE..
Post by: mentalthink on 2013-Oct-18
I now text Editor 2, it's possible configure our own languajes and put the keywords for autocomplete.
Title: Re: NEW IDE for GLBasic, and Pre GPC - use GLBasic with you favorite IDE..
Post by: dreamerman on 2013-Nov-08
hm.. no replies? :p Unfortunately I didn't found other good cross language IDE that could be easily configured to use with GLB, and would have all needed features, so I decided to write my own editor for GLB. Based on ScintillaNet and written in VB .Net, most important to me is to have hint's for user typed functions and auto-completion for them. Still .Net version of Scintilla is old and doesn't have all newer features and bugfixes but it should be sufficient for what I plan to add in my editor.

You can download current version from first post, this is very limited release - just to show how hints and other stuff will work, I need to finish some things, then I will add compiling, and later other features.
Ah and remember it's not planned to be most beautiful IDE, just to have all features working.
Title: Re: NEW IDE for GLBasic, and Pre GPC - use GLBasic with you favorite IDE..
Post by: Marmor on 2013-Nov-08
i wish we have a ide written in purebasic for win/mac/linux .
Title: Re: NEW IDE for GLBasic, and Pre GPC - use GLBasic with you favorite IDE..
Post by: mentalthink on 2013-Nov-08
And I say in GLbasic don't it's possible make the IDE?¿, sure works in Mac , LINUX and PC... without problems...
Use Net o PureBasic what advantage have front GLBasic, the buttons or make the IDE?¿.
Title: Re: NEW IDE for GLBasic, and Pre GPC - use GLBasic with you favorite IDE..
Post by: dreamerman on 2014-Aug-19
@up
In short, GLB isn't best language for making applications, you would need to made advanced edit control with many features similar to Scintilla, all ui stuff, and so on..

It tooked to long but I returned to this project some time ago and now you can see what is new in 3 public version of my IDE.
Compiling for win32 works ok, there are some issues with other platforms, but autocomplete, hints and all that stuff is working, give it a try ;]
To compile projects you need copy 'glblicence.inc' file from 'C:\Users\-X-\AppData\Local\Temp\glbasic' to ide application dir - standard glb ide generates that file before compiling.
Second thing, GLB doesn't close stdout stream after each line, so to get info from DEBUG function attach that source:

Code (glbasic) Select
INLINE
        }
                extern "C" {
                        #include <cstdio>
                }
        namespace __GLBASIC__ {
ENDINLINE

TYPE test_type2
        some_var%
ENDTYPE

//fix glb stdout
FUNCTION stdout_fix:
        INLINE
                setbuf(stdout, NULL);
        ENDINLINE
ENDFUNCTION

and use 'stdout_fix()' function at start of your sources.

If there would be some problems with refreshing variables, functions, save current file or switch to edit another file in project and get back to previous file, that will parse first file again, and all missing stuff should be recognized.

Edit: current problems: arrays bug, does not recognize function arguments as local defined variables..
Title: Re: NEW IDE for GLBasic, and Pre GPC - use GLBasic with you favorite IDE..
Post by: erico on 2014-Aug-20
Good going! :good:
I will check this out later.
Title: Re: NEW IDE for GLBasic, and Pre GPC - use GLBasic with you favorite IDE..
Post by: Hemlos on 2014-Aug-20
My favorite IDE is Gedit with a terminal in the bottom =D
Title: Re: NEW IDE for GLBasic, and Pre GPC - use GLBasic with you favorite IDE..
Post by: MrTAToad on 2014-Aug-20
Hardcore!
Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: dreamerman on 2014-Aug-21
Little update, arrays parsing fixed, all word identification functions are using custom code now (so #$% are no longer problem, at least shouldn't be).
The priority is to add new functions for tracking changes in code.
btw. in first post I have attached gif that shows how autocomplete functions is working with types.  ;)
Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: dreamerman on 2014-Aug-23
No comments? :P
New version uploaded, most important changes from last ver:
- changes in function parsing variables (fixed type identification, other changes),
- function arguments are now treated as local variables (so are visible on autocomplete list),
- updates in 'code change tracking' functions (some new bugs, but they will be fixed with next update),
Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: erico on 2014-Aug-23
Ops, I will bring some comments today or tomorrow, got into some workload here that is detracting me from doing the things I want.
Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: Schranz0r on 2014-Aug-24
If i leftclick on the codeside i got a error, see attachnment!

DETAILS:
Code (glbasic) Select
Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.InvalidCastException: Ungültige Konvertierung von der Zeichenfolge  in Typ Integer. ---> System.FormatException: Die Eingabezeichenfolge hat das falsche Format.
   bei Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
   bei Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei Microsoft.VisualBasic.CompilerServices.Conversions.ToInteger(String Value)
   bei WindowsApplication1.Form1.Search4NestedInfo() in D:\projekty\vstudio\my_glb_ide\Form1.vb:Zeile 1172.
   bei WindowsApplication1.Form1.Scintilla_List_Click(Object sender, EventArgs e) in D:\projekty\vstudio\my_glb_ide\Form1.vb:Zeile 542.
   bei System.Windows.Forms.Control.OnClick(EventArgs e)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei ScintillaNET.Scintilla.WndProc(Message& m) in C:\Users\jslusser\Projects\ScintillaNET\Releases\2.5\ScintillaNET\Scintilla.cs:Zeile 2222.
   bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
my_glb_ide
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///C:/Users/sliver/Desktop/dream_GLB_ide/Dream_GLB_ide/my_glb_ide.exe.
----------------------------------------
Microsoft.VisualBasic
    Assembly-Version: 8.0.0.0.
    Win32-Version: 8.0.50727.5483 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll.
----------------------------------------
System
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System.Runtime.Remoting
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll.
----------------------------------------
ScintillaNET
    Assembly-Version: 2.5.2.0.
    Win32-Version: 2.5.2.0.
    CodeBase: file:///C:/Users/sliver/Desktop/dream_GLB_ide/Dream_GLB_ide/ScintillaNET.DLL.
----------------------------------------
System.Configuration
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Xml
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
mscorlib.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400).
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.5420 (Win7SP1.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
Microsoft.VisualBasic.resources
    Assembly-Version: 8.0.0.0.
    Win32-Version: 8.0.50727.5420 (Win7SP1.050727-5400).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/8.0.0.0_de_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.


Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: dreamerman on 2014-Aug-25
 :o Eh, yes, such error occurred after clicking on Scintilla object - but only if you didn't loaded existing project or created new one, just project info wasn't initialized, so loading/creating was working properly. Now it's ok, ide creates blank temp project. That was a little problem, other changes from last version:
- before loading sources ide copies them to backup directory,
- small fixes in: searching words for autocomplete, rename source file, 'create project' functions, updating user functions (both: itself and arguments), additionally empty line at end of source isn't added anymore,
Mostly changes in autocomplete and code change tracking.
Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: dreamerman on 2014-Sep-02
Another update, again some fixes in auto-complete, hints, code tracking, full info in change-log file... Still no comments? :/
Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: Schranz0r on 2014-Sep-02
I think you have it in a realy early stage.
Can't compile with it...

Maybe you have to write a "step by step" instruction to get this running...
Maybe then you get youre response?!
Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: erico on 2014-Sep-02
Sorry, I have been willing to give this a go for a while, but alas time is not allowing me much, will try to check it out later today.
Step by step (uhhh baaabyyy... :P) instructions is a good idea.
Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: dreamerman on 2014-Sep-02
I thought that info from first post will be sufficient.

But ok step-by-step:
1. Download and install .Net 2.0 Framework Redistributable / Client Pack, newer system have it built-in.
2. Compile any project with normal GLB IDE, and copy 'glblicence.inc' to app directory. This file is needed by glbasic compiler, but files from temp dir are always deleted, so we need to have it in some place and copy each time before compiling.
3. Run my IDE, goto 'tools->Options', type proper path to your GLBasic dir (to know where is the compiler, both stable and beta, they can be the same, for example: 'C:\Program Files (x86)\GLBasic_v12'), also specify company name, save cfg.
4. Load your project, edit, select win32 platform, compile. All should work now.
5. DEBUG command doesn't work (it just don't show info), to replace it use STDOUT with fix from first post.

If any error/problem occurs let me know. Most important, does hints, auto-complete work ok for your project...
Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: Schranz0r on 2014-Sep-02
OK, got it working now!

got still some errors like i post befor...
But good work so far, fix the issus and you are ready to rumble :)

Maybe some installationguid on the first start would be great! ( to point at the GLBasic installation )
Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: Hemlos on 2014-Sep-03
Well since ive been monitoring this thread, and you asked for a comment =D
According to the first message in this thread, this project is a "hand-me-down".

1. Who started it?

2. Why are you spending so much time reinventing the wheel?
You said GLBasic isnt the best for making applications....its all about being basic, and making games.

3. Why is this thread in announcements and not in code snippets? (or better yet, BETA(really this is ALPHA))
I mean, you didnt even iron out all the kinks before "announcing" it.

4. ATM, The best IDE for GLBasic....GLBasic.
Seriously, Gernot has been working on this IDE for over a decade, and you basically just got here.

-Love ya,
Neil. :S

Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: Moru on 2014-Sep-03
You might want to change the name of the IDE, it can be confused with the company making GLBasic...
http://www.glbasic.com/main.php?lang=en&site=contact (http://www.glbasic.com/main.php?lang=en&site=contact)
Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: dreamerman on 2014-Sep-03
Schranz0r:
As I assume after loading some project you can't edit it, due error, if you could provide little more info (how many files, is there any c++ inline) it would be helpfully..

Helmos:
1. Ide/code editor is totally written by me, in VB .Net and with use of Scintilla.Net.
Pre-GPC archive (little pb app that can be used it other editors like SublimeText), includes SumblimeText 'package' started by Albert here (http://www.glbasic.com/forum/index.php?topic=7653.msg67039#msg67039), I have edited that package to get it working with my pre-compiler, apparently I removed info about that from first post, since I focused on code editor. I will add it again...
2. Hm..  Yes, in my opinion GLB isn't best for making applications in desktop system meaning (e.g. ftp client), but it's great for games.
3. Currently this topic is about still unfinished application, so you have right, please move it to beta subforum, it would be more appropriate than 'code-snippets'...
4. Every one can have their own opinion  :)
Additional answer to 2 & 4: This project (code editor) started, because I felt that standard GLB IDE is insufficient for my needs, lacks some features that are crucial for me, and it was hard to manage bigger projects without them. I wanted to have at least few things that were very helpful in other ide's like VS, Qt Creator, and thats all about it, no hidden/bad intentions. I have some unfinished glb projects, and for them new code editor was first thing to make, after testing my projects, that were loaded, compiled without errors, and having some pm about that ide I decided to make more frequent updates on forum. I hope that no one feels offended  :|

Moru:
Thanks, I totally forgot about that, with next update app name will be changed.
Title: Re: Unnamed GLB IDE - new source code editor for GLBasic...
Post by: Schranz0r on 2014-Sep-03
I create a new project with the IDE with just:


Code (glbasic) Select


WHILE TRUE

    PRINT "HELLO WORLD",10,10

SHOWSCREEN
WEND



set the compiler to Win32, set the GLBasic path and hit F8
It runs fine!
Then i closed the GLB-Window and clicked on the right lower side were the functions are listed.
Boom, same error like a post before (screenshot)
Title: Re: Unnamed GLB IDE - new source code editor for GLBasic...
Post by: Hemlos on 2014-Sep-04
Ahh that explains everything  :good:

-Neil
PS. WB  8)
Title: Re: BR GLB IDE - new source code editor for GLBasic...
Post by: dreamerman on 2014-Sep-12
Schranz0r:
Can't reproduce that error, no such problems after creating & compiling new project. I made some changes in project creating function, maybe this will help.

New version available today, I have added few text manipulation functions and shortcuts to GLB tools.
Title: Re: BR GLB IDE - new source code editor for GLBasic...
Post by: Schranz0r on 2014-Sep-12
 :booze:

i give it a try! :)
Like the autocomplettion with types in this IDE!
Title: Re: Dream GLB IDE - new source code editor for GLBasic...
Post by: Albert on 2014-Sep-16
Quote from: dreamerman on 2014-Sep-03

Pre-GPC archive (little pb app that can be used it other editors like SublimeText), includes SumblimeText 'package' started by Albert here (http://www.glbasic.com/forum/index.php?topic=7653.msg67039#msg67039), I have edited that package to get it working with my pre-compiler, apparently I removed info about that from first post, since I focused on code editor. I will add it again...

Hey it's me! I'm glad somebody found my experiment useful!  :enc:
Title: Re: BR GLB IDE - new source code editor for GLBasic...
Post by: Schranz0r on 2014-Nov-16
you remove the source?!
Title: Re: BR GLB IDE - new source code editor for GLBasic...
Post by: Albert on 2014-Dec-01
I tried it, nice editor.

I have a problem, it's generating an invalid executable, I compared all the *cpp and .h file generated to the temp and not found difference (generated from GLBasic and from BR_GLB_IDE). But the compiled .o file contains a lot of differencies and the a.exe is not a proper win32 executable. I tried to compile with my own command line set and it's working fine, compiling working a.exe.

Maybe i'm using an old GLBasic v12?

Code (glbasic) Select
C:\Users\bdobos\AppData\Local\Temp\glbasic>"C:\Program Files (x86)\glbasic\Compiler\platform\Win32\Bin\g++.exe" -B"C:\Program Files (x86)\glbasic\Compiler\platform\Win32\Bin" -pipe -O3 -w -c -x c++ -mwindows -I"C:\Program Files (x86)\glbasic\Compiler\platform\Include" -I"." -D_WINDOWS_ -DNDEBUG -DHAVE_OPENGL *.cpp

C:\Users\bdobos\AppData\Local\Temp\glbasic>"C:\Program Files (x86)\glbasic\Compiler\platform\Win32\Bin\g++.exe" -Wl,-Bdynamic,-enable-stdcall-fixup,--subsystem,windows -B"C:\Program Files (x86)\glbasic\Compiler\platform\Win32\Lib" -L"C:\Program Files (x86)\glbasic\Compiler\platform\Win32\Lib" -L"C:\Program Files (x86)\glbasic\Compiler\platform\Win32\Lib\DX7" -L"." -I"C:\Program Files (x86)\glbasic\Compiler\platform\Include" *.cpp "C:\Program Files (x86)\glbasic\Compiler\platform\Win32\Bin\icon.o" -lGLBasic -lpng -ldsound -ldinput8 -lwinmm -lole32 -lopengl32 -lvfw32 -lws2_32 -lgdi32 -lcomdlg32-luser32 -lkernel32 -ladvapi32 -lshell32
Title: Re: BR GLB IDE - new source code editor for GLBasic...
Post by: dreamerman on 2015-Feb-07
Long time from last update :/ new version uploaded, few usefully changes and bug fixes...

@Schranz0r: my GLB ide was only available as compiled app.

@Albert: try newer version, and if problem will still occur contact me with pm :-) That could be due to little mismatch with parsing platform.ini file..
Title: Re: BR GLB IDE - new source code editor for GLBasic...
Post by: bigsofty on 2015-Feb-08
Welcome back Dreamerman  :)
Title: Re: BR GLB IDE - new source code editor for GLBasic...
Post by: Albert on 2015-Feb-12
Quote from: dreamerman on 2015-Feb-07
@Albert: try newer version, and if problem will still occur contact me with pm :-) That could be due to little mismatch with parsing platform.ini file..

Still the same problem.
Also I found, that you need restart the IDE? if you change something in Tools->Options.
Successfull the compile only if I chack to use pre GPC, but creating a not valid win32 executable
If I uncheck use pre GPC, then I get this error:
Code (glbasic) Select
Running GLBasic compiler
GPC - GLBasic Precompiler V.10.060 SN:8ef54a1b - 3D, NET

Wordcount:1 commands

GPC exited with code:  0

c++ sources ready, running gcc...
running cmd: GCC, in 'c:\Program Files (x86)\GLBasic_v12'
running cmd: LINK, in 'c:\Program Files (x86)\GLBasic_v12'

Some error occured durring compiling... code:  1

Title: Re: BR GLB IDE - new source code editor for GLBasic...
Post by: Schranz0r on 2015-Feb-13
Dreamerman keep it alive!
Title: Re: BR GLB IDE - new source code editor for GLBasic...
Post by: dreamerman on 2015-Feb-19
It will be alive as currently I will use only this editor, just to many code and crazy var names in some projects so hints and all that stuff is very helpfully :-) And due that all bugs that I will find, should be fixed. But some functions won't be implemented for now as they would require to much work, and surely I will earlier release source code - after some clean ups.
btw new version uploaded, some nasty bug with splitters size fixed :d
Title: Re: BR GLB IDE - new source code editor for GLBasic...
Post by: Schranz0r on 2015-Feb-19
Nice to hear that! :D
Title: Re: BR GLB IDE - new source code editor for GLBasic...
Post by: dreamerman on 2015-Feb-20
Previously mostly I tested ide with small projects, but when working with some game prototypes I noticed several annoying bugs :/
Changes from previous version:
- major bug fix with vars, types, functions updating when switching to other file,
- minor fix with types parsing,
Now I didn't noticed any wrong user typed words hints in ide, hope that this won't change :D

Still there are strange problems with compiling, just this .Net stuff is really annoying. Some projects hang's on second compilation / executing (first is ok), other are working perfectly, looks like I will need to investigate compiling stuff again.
If no serious bug will be found, priority will be code clean-up before uploading source code.
Title: Re: BR GLB IDE - new source code editor for GLBasic...
Post by: Schranz0r on 2015-Feb-20
 :good:
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: dreamerman on 2015-Mar-11
Update, some fixes in udt auto-completion, few other usefully things fixed/added.
Source code - whole VB .Net project included, note that I didn't use VB from long time :] and this is working project so code doesn't look great, many things are commented - testing purposes and so on... but if anyone find some code usefully, he may use it freely. As this editor will never be so polished in overal aspect as standard editor it would be great if those hints/auto-completion stuff could be added to normal GLB ide.
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: Schranz0r on 2015-Mar-12
The "BuildIn IDE" is not realy state of the art ( to old to get it look nice and keep it updateted )   :|
We have a discussion in the "Sourceforum" about to use you're IDE in the future...
VB is also not the first choice of many Devs, maybe we can convert you're work into C# ?!
What you think about the idea?
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: dreamerman on 2015-Mar-12
Sounds great, feel free to use any portion of my unpolished code :D
I would advise to use newer version of .Net than me, C# looks good as few things in VB are tricky, most important is to get fully working compiling, and avoid few designer mistakes that I made with my editor :)

Eh.. I see that auto-completion for udt's is still bugged, that's first thing I need to fix, hints for functions and normal variables are working properly.
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: dreamerman on 2015-Mar-13
Update with fixes for udt auto-completion and functions hints that can now handle some code mismatch, at least in my testing suite I didn't found any problem.
Still compilation problems remains, process exit isn't always catch and so on...

Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: dreamerman on 2016-Jan-12
Updated to work with GLB v14 platform separation, only tested with 'WIN32' target, but should work with others.
Fixed handling user application output so debuging with 'stdout_fix' will now work always.
Now my IDE only compiles changed files - similar like IncrediBuild function in standard IDE - much faster compilation of same project when changing only one file.
Few smaller changes and fixes... It's still alive ;-)
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: erico on 2016-Jan-16
Nice to see this back on track this new year! Keep it up. :good:
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: Schranz0r on 2016-Jan-17
Nice!
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: Schranz0r on 2016-Jan-18
@dreamerman:

Maybe it's better to code it in C#, what you think?
I can help you.
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: dreamerman on 2016-Jan-20
Another update, file skipping function (like IncrediBuild) was bugged, now it should work better, also changes in auto-completion (my long-lasting nightmare).
Currently I just don't have time to rewrite whole project (so many unfinished stuff :/), also Scintilla.Net got updated (I'm using ver 2.5, now there is 3.5.6 with probably some API changes), and what would be the main difference comparing to VB .Net? Most important reason to rewrite project (in C# or any other language) would be to have support for DEBUG command like in standard IDE, but for me working stdout is enough.
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: r0ber7 on 2016-May-01
This looks interesting. Is there an auto complete function?
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: Schranz0r on 2016-May-03
Quote from: dreamerman on 2016-Jan-20
... and what would be the main difference comparing to VB .Net? Most important reason to rewrite project (in C# or any other language) would be to have support for DEBUG command like in standard IDE, but for me working stdout is enough.

I think VB is a bit "outdated", isn't it?
In C# you have more freedom to play with. ;)
Maybe it's also easier to unterstand...
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: dreamerman on 2016-May-09
@r0ber7:
Yes it comes with auto-complete and hints for GLB and user typed functions, variables and types, that was the main reason to start such project. Mostly it's working but there are still some minor bugs.

@Schranz0r:
You know, there is full source code of my editor in download package, with all that VB madness :D and tons of messed code hehe. This was evolving project, and most of unused code is still somewhere in source.
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: r0ber7 on 2016-May-14
Quote from: dreamerman on 2016-May-09
@r0ber7:
Yes it comes with auto-complete and hints for GLB and user typed functions, variables and types, that was the main reason to start such project. Mostly it's working but there are still some minor bugs.

Nice! If I can get it to compile I'm in. :)
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: dreamerman on 2016-Jul-19
Currently only compiling for WIN32 is working, there were some changes in GLB14 compile scripts, and even in GLB12 I had problems with other platforms so now I just don't test them.
Some important changes today:
- Now each project is compiled in separate temp directory - that is cleared when editor exits. In standard GLB ide, the editor uses one temporary directory for all projects so you can't make small changes in few projects and compile them fast (skipping not changed sources) at same time. Now it's possible. Still I need to check this if all is working fine.
- Ide forces WIN32 plaftorm (as compiling for other targets fails) when loading project.
Thanks to that you can edit your project in br ide, compile it for win32 and test/debug, for other platforms currently use standard glb editor (that uses other temp directory and wont mess with your files).
- Network debugging is disabled - it was done with UDP, but there some problems and it's just better to do it in other app that you can customize, And now you can open few instances/windows of br ide.
- changes in 'show function definition' code, and so on...

Just remember to read first post and setup ide correctly (license file, glb path)..
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: dreamerman on 2016-Aug-01
Customizable styles for syntax coloring added (You can find them in 'styles' directory). It's probably last function that I add to this version.
Now I'm switching to VS 2013 with .Net >4.0 to use newer and still maintained ScintillaNET 3.x version, and again main language it will be VB (I just don't have such C# skills to port whole code fast, and patience/time to do it in slower way). Maybe someone has working c# project that can load GLB projects and so on? Beside that ScintillaNET API changed a lot so it requires a bit of time to get it working with all current features. Hope that newer .Net version will also address some issues.
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: Schranz0r on 2016-Aug-03
 :good:
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: UBERmonkeybot on 2016-Aug-03
The IDE complains when it can't find a file in your project but i can't find the window to add files.
Title: Re: BR GLB IDE - new code editor for GLBasic, with VB .Net source...
Post by: dreamerman on 2016-Aug-04
Quote from: monkeybot1968 on 2016-Aug-03
The IDE complains when it can't find a file in your project but i can't find the window to add files.
Does it happen in one particular project or more often, does source code file name contain special chars, or is placed in separate directory? You can send me more info with PM, or if you found any other such bug.
Note that project managing is literally very basic, at least for now... Hope that any such bug will be easy to fix.

I need to do some code rework to make it more easy to read (as there are tons of old unused stuff, and so on), beside that it would be nice to have other stuff like code folding, better auto-completion menu, additional functions with parsing (like custom background colors).
Still any debug/tracing/profiler stuff is out of reach for now.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2016-Aug-13
New version uploaded, I would call it 'preview' of beta =D As mentioned earlier it's VB 2013, .Net 4.0 and newer ScintillaNet 3.x project. All functions available in previous version should work, and there are few new and nice features.
Now editor uses custom written lexer for GLBasic so all keywords/comments/variables are colored properly, thanks to this I could also implement proper code folding, margins colored depending on changes in code (yellow - new code, changes to green after compilation), bookmarks saved in separate file.
Support for both GLB v12 and v14 compilers, so you can switch between them fast, still compilation tested only for WIN32 target.
Many small changes, fixes to other stuff.
But can't get new auto-completion working properly so I'm still using that simple build into Scintilla itself.
That release is mainly to test new things, and find any bugs to fix, more polishing, and UI changes may come later. It would be nice to get e.g. Debug command working and so on.
Check first post for download, new screenshot and updated feature list.

Note: Current version of Scintilla doesn't use hard tabs (like most of modern text editors/ide), default soft tabs are 4 spaces width,
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: Schranz0r on 2016-Aug-17
You have some bugs at your Projectcreation routine?!
First Startup was horrible :D

- No Filenames in Tabs
- Crashes -> no Project loaded...
- no compiling possible

can you fixe this problems?

after a restart i think all is fine...

I check it out now, i report you any Bugs i found Mate :D



EDIT:

on create a new Project i got this:

Code (glbasic) Select
Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.ArgumentOutOfRangeException: Der Index lag außerhalb des Bereichs. Er darf nicht negativ und kleiner als die Auflistung sein.
Parametername: index
   bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   bei WindowsApplication1.glb_project_class.SaveProjectFile(Boolean save_files) in D:\projekty\glb_ide_vb_2013\glb_project_class.vb:Zeile 190.
   bei WindowsApplication1.glb_project_class.CreateProject(String new_projname, String fullpath) in D:\projekty\glb_ide_vb_2013\glb_project_class.vb:Zeile 337.
   bei WindowsApplication1.Form2.Button1_Click(Object sender, EventArgs e) in D:\projekty\glb_ide_vb_2013\Form2.vb:Zeile 35.
   bei System.Windows.Forms.Control.OnClick(EventArgs e)
   bei System.Windows.Forms.Button.OnClick(EventArgs e)
   bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
   bei System.Windows.Forms.Button.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1080.0 built by: NETFXREL3STAGE.
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll.
----------------------------------------
BR_GLB_IDE
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///C:/Users/beate/Desktop/br_glb_ide/bin/BR_GLB_IDE.exe.
----------------------------------------
Microsoft.VisualBasic
    Assembly-Version: 10.0.0.0.
    Win32-Version: 14.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll.
----------------------------------------
System
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1081.0 built by: NETFXREL3STAGE.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Core
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1078.0 built by: NETFXREL3STAGE.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System.Runtime.Remoting
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll.
----------------------------------------
ScintillaNET FindReplaceDialog
    Assembly-Version: 1.1.0.31638.
    Win32-Version: 1.1.0.
    CodeBase: file:///C:/Users/beate/Desktop/br_glb_ide/bin/ScintillaNET%20FindReplaceDialog.DLL.
----------------------------------------
ScintillaNET
    Assembly-Version: 3.5.10.0.
    Win32-Version: 3.5.10.0.
    CodeBase: file:///C:/Users/beate/Desktop/br_glb_ide/bin/ScintillaNET.DLL.
----------------------------------------
AutocompleteMenu-ScintillaNET
    Assembly-Version: 1.3.4.0.
    Win32-Version: 1.3.4.0.
    CodeBase: file:///C:/Users/beate/Desktop/br_glb_ide/bin/AutocompleteMenu-ScintillaNET.DLL.
----------------------------------------
System.Configuration
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Xml
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1064.2 built by: NETFXREL3STAGE.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
Microsoft.VisualBasic.resources
    Assembly-Version: 10.0.0.0.
    Win32-Version: 14.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/v4.0_10.0.0.0_de_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.dll.
----------------------------------------
mscorlib.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.




Sorry its german :/

Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2016-Aug-17
Fixed and re-uploaded. That bug is called 'I just commented to much lines' :D as I was changing some things in reading/saving routines.
Was project loading working correctly, and other things? Still working on some issues, but this update contains also few fixes for other things.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: Schranz0r on 2016-Aug-17
i'll try this one and give you feedback
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: Schranz0r on 2016-Aug-17
OK first StartUp same Problem.

Open a Project -> No TabNames to see

Close it and restart the IDE and the Tabnames are there...
And i can create new Projects :)


There is something wrong on the first Start :/
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2016-Aug-17
It looks like some issue wit ide config file loading, specially if no GLB path is configured, then just Paint/tab redraw method isn't called by default, but when you click on tabs names should apper, at least from my test. I will fix this today.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: Schranz0r on 2016-Aug-17
Members from a TYPE are broken now.
Code (glbasic) Select

TYPE test
    x
ENDTYPE

GLOBAL mytest AS test



if i type mytest. it's not showing up the x member of the type



CTRL+s is broken as well?
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2016-Aug-17
As for now Type members needs to be at least 2 chars long, so 'x%' would be ok, I just only use variables with #$% so didn't noticed that, it will be changed, but file parsing is done when switching to other file or compiling, so for newly inserted types you need to compile project so they could be parser properly (no such fancy live code tracking here), saving works ok, just for compiling testing currently '*' char in tabs name means that file was changed since last compilation, this also will be changed as it may mislead users.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: WPShadow on 2016-Aug-17
Hi,

I tried to load an old version, but I got an error (screenshot).

W.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2016-Aug-18
I think that this was same bug that Schranz0r encountered.
No update yesterday as during tests I have found some other issues that needed to be addressed rapidly.
So today's update contains multiple bug fixes in loading and parsing sources, as well some changes in few functions.
Note that tracking changes in code isn't perfect so when you do some drastic changes whole file needs to be parsed (it's done when saving file, compiling or switching to view other source).
* char in tab names now tells if file was modified from last save, but still colored margins (yellow/green) tells if file was compiled properly after  those code changes.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: Schranz0r on 2016-Aug-18
NICE Update!

One Problem i see so far:

If i write :

TYPE test

and press 3-4 times enter i get a error:

Code (glbasic) Select
nformationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.ArgumentOutOfRangeException: StartIndex darf nicht kleiner als Null sein.
Parametername: startIndex
   bei System.String.Substring(Int32 startIndex, Int32 length)
   bei WindowsApplication1.Form1.GetShortftsName(String fts_name) in D:\projekty\glb_ide_vb_2013\Form1.vb:Zeile 3148.
   bei WindowsApplication1.Form1.UpdateUserVariable_fromstr(Int32 file_id, String in_str, Int32 line_nr, Int32 parent_type_id, Int32 parent_func_id, String& ret_var_list, Boolean check4declar) in D:\projekty\glb_ide_vb_2013\Form1.vb:Zeile 2528.
   bei WindowsApplication1.Form1.Scintilla_List_CharAdded(Object sender, CharAddedEventArgs e) in D:\projekty\glb_ide_vb_2013\Form1.vb:Zeile 442.
   bei ScintillaNET.Scintilla.OnCharAdded(CharAddedEventArgs e) in C:\Users\jacob\Documents\Projects\ScintillaNET\src\ScintillaNET\Scintilla.cs:Zeile 1533.
   bei ScintillaNET.Scintilla.WmReflectNotify(Message& m) in C:\Users\jacob\Documents\Projects\ScintillaNET\src\ScintillaNET\Scintilla.cs:Zeile 2685.
   bei ScintillaNET.Scintilla.WndProc(Message& m) in C:\Users\jacob\Documents\Projects\ScintillaNET\src\ScintillaNET\Scintilla.cs:Zeile 2752.
   bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1080.0 built by: NETFXREL3STAGE.
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll.
----------------------------------------
BR_GLB_IDE
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///C:/Users/beate/Desktop/br_glb_ide/bin/BR_GLB_IDE.exe.
----------------------------------------
Microsoft.VisualBasic
    Assembly-Version: 10.0.0.0.
    Win32-Version: 14.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll.
----------------------------------------
System
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1081.0 built by: NETFXREL3STAGE.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Core
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1078.0 built by: NETFXREL3STAGE.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
System.Runtime.Remoting
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll.
----------------------------------------
ScintillaNET FindReplaceDialog
    Assembly-Version: 1.1.0.31638.
    Win32-Version: 1.1.0.
    CodeBase: file:///C:/Users/beate/Desktop/br_glb_ide/bin/ScintillaNET%20FindReplaceDialog.DLL.
----------------------------------------
ScintillaNET
    Assembly-Version: 3.5.10.0.
    Win32-Version: 3.5.10.0.
    CodeBase: file:///C:/Users/beate/Desktop/br_glb_ide/bin/ScintillaNET.DLL.
----------------------------------------
AutocompleteMenu-ScintillaNET
    Assembly-Version: 1.3.4.0.
    Win32-Version: 1.3.4.0.
    CodeBase: file:///C:/Users/beate/Desktop/br_glb_ide/bin/AutocompleteMenu-ScintillaNET.DLL.
----------------------------------------
System.Configuration
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Xml
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1064.2 built by: NETFXREL3STAGE.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
mscorlib.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.6.1038.0 built by: NETFXREL2.
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.






Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: Schranz0r on 2016-Aug-18
Next thing:

i'm can't write brackets"["  and "]" in the codewindow.
thats weird...
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2016-Aug-18
hm.. it look's like issue with dynamically typing to short/empty type members, still not all functions were checked for that. Will look into this later, that should be easy to fix.
If you will encounter any other bug most important is this:
Code (glbasic) Select
Parametername: startIndex
   bei System.String.Substring(Int32 startIndex, Int32 length)
   bei WindowsApplication1.Form1.GetShortftsName(String fts_name) in D:\projekty\glb_ide_vb_2013\Form1.vb:Zeile 3148.

As it tells where exactly is the error and what of kind, other lines are unnecessary :-)

Second problem is strange, didn't see that earlier and in today's testing I was using them '[]' to check array/type auto-completion, try switching to other file and back again.

Edit: yes that was bug with parsing empty lines in newly added code tracking functions, it's ok now. Can't reproduce issue with brackets as here they are working correctly. Only binary update, source will follow with next update as I will slowly check for similar issues in other functions.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: Schranz0r on 2016-Aug-18
Ok types are fixed.


the Brackets-Problem is with the German-Keyboard settings!
If i switch to the english one, all is fine...

The German Brackets are ALT + 8 and ALT + 9

in the output and debug window i can write them...
BTW: why are debug and output not writeprotected? :D
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2016-Aug-18
You mean system keyboard settings? Interesting, not sure if it's my code fault, Polish keyboard works properly, even special chars. (btw. this version of ScintillaNET supports unicode chars)
Ah such small things, will be 'read-only' with next update ;)

Edit: skipping unchanged files during compilation was broken in last update, fixed.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: Schranz0r on 2016-Aug-19
Brackets still not work :D
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2016-Aug-19
Yeah that strange, as I don't change char code of what user is typing.. This needs further investigation ;-) Win 8.1 gives really strange output with Deutsch keyboard layout, even @ becomes ", maybe some additional Scintilla setting is needed for this.
btw. this update fixes small issues with auto-completion..

Edit: problem with brackets appears in many text editors (all ScintillaNet, and even other .Net based text editors examples) that I have tested, also system notepad/VisualStudio behave same way with German/Deutschland key layout.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2016-Nov-21
Update. Much of code reworked (text/variables/function analyzing), some stuff works faster, few bug fixes.
Some issues remain, but it's usable  :)
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: Schranz0r on 2016-Nov-26
nice to hear you working on that :)


the bracktsproblem is still there for german keyboards... can you add rightclick -> tools -> Add Bracktes to paste like :  []    ?

Problems i found:
- GLOBALS from Source_2 are not in the completion of the mainsource and vise versa (Thats a big thing i HATE on the original IDE!!!!!) :D
- if i add Globals and remove them later i get compile errors:
Code (glbasic) Select
Running GLBasic precompiler
Precompiling done, c++ sources ready, running gcc...
Unchanged files: 'testnew.gbas'
Running cmd: GCC
Running cmd: LINK
gpc_temp0.o:gpc_temp0.cpp:(.text+0x50): undefined reference to `__GLBASIC__::myglobal'
Some error occured durring compiling... code:  1


- ENDFUNCTION is not green/not Highlighted
- create a new Project = crash, if i restart the IDE, the new project is OK...STRANGE
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2016-Nov-28
Update.

Previously I didn't do any workaround for 'DE' keyboard layout as this problem appears in many code editors, even VisualStudio inserts Ü+ instead of []. But if this is necessary change I will try to fix that, at start there is now 'Add brackets' options in popup menu as you wanted with CtrlB shortcut, if any other keys need to be switched let me know (I'm using qwerty keyboard and it looks like that other chars like ;',. also should be switched).
EndFunction is highlighted, just style parser has some issues with parsing/coloring last chars in file, now should work better but some workaround is always to have one empty line after all of your code.
Create project works ok, tested on 2 pc's (win 8.1, win 7), maybe anti-virus software is blocking something, or try running it with admin rights (but this should be needed, editor save files only in temp directory), if you have VS 2013/2015 installed run source code and maybe this will give some hints what makes this problem.
After typing new/changing some variables press enter and they will be updated (rather current line would be parsed in search of keywords), also when switching to other source file current whole file will be parsed, so all variables should be visible in other sources.
Also can't reproduce that compiling error, it looks like file with definition of 'myglobal' variable wasn't compiled after typing it, I didn't encounter something like this even despite that I'm using this editor for normal projects and nothing like this happens. It looks really strange, send me sources for both files on pm or attach them here.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: Schranz0r on 2016-Nov-28
my update :D :

- starting the IDE as admin and create a new project is working fine.
- the Endfunction highlighting is working now
- the Brackets are fine for me now, thanks for that!
- can't get it proper working with GLOBALS from other Sources... one Global was coming up the other one not :/
  (yes i press Enter after i type: GLOBAL myGlobalVar = 10)
- i guess the codeparsing is not on point. I have to press multiple times after ENDTYPE (for example) enter to get the Type showing up in the auto completion.
- can you make CTRL+SPACE (like in GLB) to bring up the auto completion? if there is nothing on the cursor, it show all. if there is a letter it show up all from that and so on? :) 


Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2016-Nov-28
Ah version from yesterday has one nasty issue with parsing function definitions (I was working on some changes in argument counting part and forgot to use proper code for public build), already uploaded with fixed code.
That issue with global vars is caused by defining value of that variable (in same line as definition), I will look into it, should be easy to fix.
Forcing auto completion (for variables/types) with Ctrl+Space would require some more work, and priority is to fix that issue from above.

Edit: I was wrong, variables were recognized properly, just list with current scoped vars wasn't refreshed, now should be ok. New version uploaded.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: Schranz0r on 2016-Nov-30
Variables from other Files are working right now  :good:
Would be cool to have a indicator whats that Variable/Function is, see attachment.

Bug:
You are not removing the deleted Variables!

The rest is working good so far :)
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: CptnRoughnight on 2016-Nov-30
Hi,

just downloaded and tested your Editor, very nice! But i got some errors at compiling

Code (glbasic) Select

/mingw/lib/crt2.o:(.text+0x1a5): undefined reference to `___dyn_tls_init_callback'
/mingw/lib/crt2.o:(.text+0x1e3): undefined reference to `__setargv'
Some error occured durring compiling... code:  1


I've tried an existing project, wich compiles fine under GLB14 and a new created one with your IDE. Both the same result.
glblicence.inc is copied. IDE runs with admin rights. Is there anything that i've overlooked?
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2016-Dec-02
Update.

Some time ago I tried to use more advanced auto-complete menu (look into 'images' dir to find icons), but some issues occurred, that I wasn't able to resolve, so I sticked to standard simple auto-complete. In meantime AutoCompleteMenu along with ScintillaNet got updated, but I didn't looked into this. Good that you reminded me about that. After some changes to my code, better auto-complete is working quite ok, there are some things to fix, but it's first public release with this feature.

That problem with compilation may be depended (from what I found here on forum) on some sys variable PATH settings, standard GLB ide had similar issues some time ago, maybe some 'hack' is needed to bypass this. Check your PATH variable, maybe has some duplicate definitions or something like this, never had such problem so this will need some time to check, but in some way it can be fixed.

Edit: Yet another update fixing some new issues with loading project, parts of code were changed so they are under testing.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2017-Jan-04
Yesterday I uploaded new version. Switched to more advanced AutoComplete menu, as I figured out how to use it properly with multiple Scintilla objects and GLB style of coding. After few weeks of testing it's looking good, also few tweaks to code analyzing were added.
Some other issues were also fixes: if you used source not from project directory but with absolute path like 'd:/my_glb_libs/gui.gbas' it wasn't passed properly to compiler, projects with more than 10 source files are compiled now (temp source name is based on hex), and so on..
Wasn't able to identify problem with 'undefined reference to `___dyn_tls_init_callback'' as it didn't appear during my tests.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: UBERmonkeybot on 2017-Jan-04
Keep up the good work.
:whip:
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: Schranz0r on 2017-Jan-04
Ohhhhhh... i'll try it later!


EDIT:
OK first Start with no Project in it -> get some errors (you know that one's) :)
I create one then restart, all is fine. :good:
Can't find any other big errors now, the only thing i find:

- ENDINLINE is not in the Autocompletion
- created CONSTANT's are not in the completion

So no big deals for now ^^

In the attachments my Colortheme and Screenshot.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2017-Jan-05
Yeap there was small issue with no project on list - when creating new project an empty bookmark list should be created also, but it wasn't, so there NullException appeared in later code.
ENDINLINE - some GLB keywords are still missing from function definitions file, and GLB syntax highlighting list,  easy to 'fix'.
Haha this is strange but never used Const in GLB so just I forgot about including them in parser :) Fixed, and now they are threated like normal variables.

I can include Your style/color theme in next update, how should I call it, 'Schranz0r_style', 'dark_orange', '50_shades_of_orange'? :)
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: Schranz0r on 2017-Jan-05
dark orange is fine :D
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source...
Post by: dreamerman on 2017-Jun-26
It's not dead if someone asks ;] A small update with few fixes, yet with larger projects some UDT hint issues may appear (to fix it use Project -> Check user variables, or just compile project), as I wasn't able to track them in given time..
If you think that some functionalities are necessary let me know (beside Debug), personally I have some ideas but game projects have higher priority.
Title: Re: GLBasic code editor - BR GLB IDE, with VB .Net source... Update: 21.10.2021
Post by: dreamerman on 2021-Oct-21
To be honest not worthy dedicated post after such time, but editing my last post also wound't be fair if someone is looking for updates on this.
It look's that I fixed of one nastiest bugs that I wasn't able to diagnose from long time. Due to incorrect process/thread handling on my side (during GLB project compilation), the editor was freezing after system events that were affecting threads - like hibernating, changing some system settings. Now after few hours of testing different things that previously cause that issue, I didn't encounter such behavior, so I hope that it's fixed. That was main thing that was annoying me in long terms, and it could be deal breaking for others so that's why I'm posting this.
Changes/fix in process handling is major fix in this update, but beside that there are some other small changes/fixes, nothing huge, and I doubt that any additional major change/feature will come now (like code analysis for warnings or something).

Maybe not best place for such offtopic but if any one is wondering about possible other editors to use with GLB, most modern editors use LanguageServerProtocol (https://microsoft.github.io/language-server-protocol/) to support additional programming languages (I highly advise Visual Studio Code, as mature opensource cross platform tool with many editing features). And you would need to write such lexer/parser as this would be the best way to have GLB support in all other possible editors. I looked into LSP docs and I'm terrified :D writing complex lexer to have support for all features like syntax coloring/formatting, auto-completion, function hints would be huge job, so if anyone feels strong enough I wish him luck ;-)