FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Enlazar y compilar con el editor VSCode
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Enlazar y compilar con el editor VSCode
Posted: Thu May 21, 2020 06:00 AM

Adhemar,

Yo utilizo los repositorios Git directamente desde una ventana cmd.exe

git clone ... para descargar

git pull para actualizar

git commit para guardar cambios

git push para salvar los cambios en el repositorio principal

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1710
Joined: Tue Oct 28, 2008 06:26 PM
Re: Enlazar y compilar con el editor VSCode
Posted: Thu May 21, 2020 11:16 AM

Muchas gracias

En el VSCODE he visto varias extensiones gitHub. Voy a probar algunas.

Saludos,



Adhemar C.
Posts: 400
Joined: Fri May 11, 2007 08:20 PM
Re: Enlazar y compilar con el editor VSCode
Posted: Wed Aug 11, 2021 05:13 AM
Hola amigos:
Estoy tratando de compilar y me sale esto:

> Executing task in folder prgfw_modjul21: D:\arturo\veryanlin\prgfw_modjul21\gohp.bat <


D:\arturo\veryanlin\prgfw_modjul21>set oldpath=C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Live\Shared;C:\Program Files\Rational\common;C:\Program Files\IDM Computer Solutions\UEStudio;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Program Files\TPuy\bin;C:\Program Files\TPuy\include;C:\Program Files\Git\cmd;C:\Program Files\sqlite3;;C:\Users\TOSHIBA\AppData\Local\Programs\Microsoft VS Code\bin

D:\arturo\veryanlin\prgfw_modjul21>set path=c:\1712\bcc7\bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Live\Shared;C:\Program Files\Rational\common;C:\Program Files\IDM Computer Solutions\UEStudio;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Program Files\TPuy\bin;C:\Program Files\TPuy\include;C:\Program Files\Git\cmd;C:\Program Files\sqlite3;;C:\Users\TOSHIBA\AppData\Local\Programs\Microsoft VS Code\bin

D:\arturo\veryanlin\prgfw_modjul21>c:\1712\harbour\bin\hbmk2 test.hbp
hbmk2[test]: Warning: Cannot find 3rd/minizip/minizip.hbc (referenced from
hbmzip.hbc)
hbmk2[test]: Warning: Cannot find 3rd/minizip/minizip.hbc (referenced from
hbmzip.hbc)
Harbour 3.2.0dev (r1801051438)
Copyright (c) 1999-2016, http://harbour-project.org/
Error F0033 Can't open standard rule file 'hbwin.ch'
hbmk2[test]: Error: Running Harbour compiler (built-in). 1
(c:\1712\harbour\bin\harbour.exe) -n2 test1.prg -DHBMK_HAS_HBCT=1 -DHBMK_HAS_HBTIP=1 -DHBMK_HAS_HBFSHIP=1 -DHBMK_HAS_HBXPP=1 -DHBMK_HAS_HBWIN=1 -DHBMK_HAS_XHB=1 -DHBMK_HAS_HBMZIP=1 -DHBMK_HAS_HBZIPARC=1 -oC:\Users\TOSHIBA\AppData\Local\Temp\hbmk_p3p19u.dir\
-ic:\1712\bcc7\Include -ic:\1712\bcc7\Include\dinkumware -ic:\1712\bcc7\Include\windows\crtl -ic:\1712\bcc7\Include\windows\rtl -ic:\1712\bcc7\Include\windows\sdk -ic:\1712\harbour\include -ic:\1712\fwh\include -i. -ic:\1712\harbour\contrib\hbtip -ic:\1712\harbour\contrib\hbfship -ic:\1712\harbour\contrib\hbxpp -u+hbwin.ch -u+hbmzip.ch

D:\arturo\veryanlin\prgfw_modjul21>test1.exe
"test1.exe" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.

D:\arturo\veryanlin\prgfw_modjul21>set path=C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Live\Shared;C:\Program Files\Rational\common;C:\Program Files\IDM Computer Solutions\UEStudio;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Program Files\TPuy\bin;C:\Program Files\TPuy\include;C:\Program Files\Git\cmd;C:\Program Files\sqlite3;;C:\Users\TOSHIBA\AppData\Local\Programs\Microsoft VS Code\bin

Las tareas reutilizarán el terminal, presione cualquier tecla para cerrarlo.

baje del github el harbour y copie los archivos .hbc en mi carpeta donde esta el prg y en carpeta bin del harbour
tasks.json
Code (fw): Select all Collapse
{
    // See <!-- m --><a class="postlink" href="https://go.microsoft.com/fwlink/?LinkId=733558">https://go.microsoft.com/fwlink/?LinkId=733558</a><!-- m -->
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "echo",
            "type": "shell",
            "command": "D:\\arturo\\veryanlin\\prgfw_modjul21\\gohp.bat",
            "problemMatcher": [],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        }
    ]
}

gohp.bat
Code (fw): Select all Collapse
set oldpath=%path%
set path=c:\1712\bcc7\bin;%path%
c:\1712\harbour\bin\hbmk2 test.hbp
test1.exe
set path=%oldpath%

test.hbp
Code (fw): Select all Collapse
test1.prg

-Ic:\1712\fwh\include

-Lc:\1712\fwh\lib
-lfiveh
-lfivehc

xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc


test1.prg
Code (fw): Select all Collapse
#INCLUDE "FiveWin.ch"
function MAIN()
    test()
return nil 
function test()
    ?'Hola mundo'
return nil
fwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Enlazar y compilar con el editor VSCode
Posted: Wed Aug 11, 2021 08:53 AM
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Enlazar y compilar con el editor VSCode
Posted: Wed Aug 11, 2021 04:44 PM

> Error F0033 Can't open standard rule file 'hbwin.ch'

Comprueba que tengas este fichero c:\harbour\contrib\hbwin\hbwin.ch

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 400
Joined: Fri May 11, 2007 08:20 PM
Re: Enlazar y compilar con el editor VSCode
Posted: Thu Aug 12, 2021 03:32 AM
cnavarro wrote:Quizás esto te ayude
https://forum.modharbour.app/viewtopic.php?f=13&t=216

Gracias Cristobal por tu sugerencia
Excelente explicacion de Manu Exposito, tomare ideas de alli para armar mis proyectos a futuro pero primero empezar con compilar en vscode
fwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql
Posts: 400
Joined: Fri May 11, 2007 08:20 PM
Re: Enlazar y compilar con el editor VSCode
Posted: Thu Aug 12, 2021 03:40 AM
Antonio Linares wrote:> Error F0033 Can't open standard rule file 'hbwin.ch'

Comprueba que tengas este fichero c:\harbour\contrib\hbwin\hbwin.ch

Gracias Master Antonio por responder, seguí tus indicaciones y modifique mi archivo test.hbp de esta forma y logre compilar.

Code (fw): Select all Collapse
test1.prg

-Ic:\1712\fwh\include

-Lc:\1712\fwh\lib
-lfiveh
-lfivehc
-ic:\1712\harbour\contrib\hbwin
-ic:\1712\HARBOUR\contrib\hbmzip
-ic:\1712\HARBOUR\contrib\hbhpdf
-ic:\1712\HARBOUR\contrib\hbmxml

#LIBRERIAS HARBOUR
-lhbwin
-lgtgui
-llibhpdf
-lhbhpdf
-lhbct
-lxhb
-lhbziparc
-lhbmzip
-lminizip
-lpng
-lhbcomm
-lhbtip
-lhbmxml
-lmxml


xhb.hbc
hbct.hbc
hbwin.hbc
hbmzip.hbc
hbziparc.hbc
hbcomm.hbc
hbhpdf.hbc
hbmxml.hbc
-otest

Abrire otro hilo sobre el debugger en vscode

Gracias
fwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Enlazar y compilar con el editor VSCode
Posted: Thu Aug 12, 2021 06:00 PM

muy bien

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 11
Joined: Mon Apr 12, 2021 02:05 PM
Re: Enlazar y compilar con el editor VSCode
Posted: Fri Nov 26, 2021 04:07 PM

Buenas
Por favor me gustaria saber

Donde se graban o guardan los o el tasks.json para que VSCode lo lea y compile suponiendo que tengo esto y en cada SubDirectorios o Carpetas los respectivos Archivos corespondiente a cada carpeta ???

c:\Pruebas // Aqui tengo el go.bat y el gomake
\Dbf
\Imagenes
\RC
\Prg
\Obj
\Include

Muchas Gracias

Posts: 1710
Joined: Tue Oct 28, 2008 06:26 PM
Re: Enlazar y compilar con el editor VSCode
Posted: Sat Nov 27, 2021 12:27 PM

Estimado Frigar

En una carpeta .vscode dentro ce c:\pruebas

Saludos,



Adhemar C.

Continue the discussion