Mailing lists / pas2js / 2021-01
Pas2JS-VSCode
18 messages · 3 people · –
- Hheliosroots 10
- MMichael Van Canneyt 7
- MMgr. Janusz Chmiel 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Excellent programmers job. It is good idea to add Pas2js and Object Pascal language support to Visual studio by adding yours extension for Visual studio.
But I Am still very very sad, that I do not know, if you have released yours special GUi creation units for Pas2js. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/pas2js/attachments/20210127/9732965b/attachment.htm>
In brief, the extension was a step before, for the launch of puma
https://marketplace.visualstudio.com/items?itemName=heliosroots.pas2js-vscode Sent from:…
heliosroots wrote
Some questions:
1. Where are the sources of the ct binary ?
The plugin installs.
I tried to install on MacOS, but there is no ct binary for it, so it's unusable :(
2. The plugin is written in Javascript.
Any plans to write the plugin itself in pas2js ?
Michael.
I'll try to generate an executable for Mac, but I can't test it. the sources I prefer to keep private for now .... Yes it is possible to convert the plugin to pas2js, I made it in js to be able to advance
heliosroots wroteI'll try to generate an executable for Mac, but I can't test it. the sources I prefer to keep private for now .... Yes it is possible to convert the plugin to pas2js, I made it in js to be able to advance
OK.
And how long is 'for now' ?
We don't want to end up with a second omnipascal :-)
Michael.
* Binary generated for mac ... extension update
* As soon as we publish the Puma ...
as soon as we publish Puma, CT sources will be available as well
heliosroots wroteas soon as we publish Puma, CT sources will be available as well
Wonderful news !
I'm very interested in having your extension coded 100% in pas2js. Do you think this is possible ?
Michael.
* Binary generated for mac ... extension update * As soon as we publish the Puma ... Sent…
Hi,
I updated the plugin.
I'm trying to create a project, I enter a project name, but I get an error:
Project failed => Directory no found => ""
All 3 plugin settings (ct path, pas2js path, pas2js sources) are set.
Michael.
Create or select a directory before, CTRL + O
Then create the project ....
Wonderful news ! I'm very interested in having your extension coded 100% in pas2js. Do…
Yes it is possible and it is even easy ... but I think it will be missing some aggregate libs example child_process, fs and etc. so I gave preference to writing in pure javascript
Create or select a directory before, CTRL + O Then create the project .... Sent from:…
Create or select a directory before, CTRL + O Then create the project .... Sent from:…
heliosroots wroteCreate or select a directory before, CTRL + O
CMD-O on mac ;-)
Then create the project ....
That seems to work, compiling also works, thanks !
Maybe the plugin can check if a workspace has been opened, if not, a window.showOpenDialog can be used to open a directory and with the returned URI
let success = await commands.executeCommand('vscode.openFolder', uri);Something like it...
Michael.
Yes it is possible and it is even easy ... but I think it will be missing some aggregate…
heliosroots wroteYes it is possible and it is even easy ... but I think it will be missing some aggregate libs example child_process, fs and etc.
AFAIK these are all available in the nodejs and nodejs_fs units.
Michael.
CMD-O on mac ;-) That seems to work, compiling also works, thanks ! Maybe the plugin can…
Yes, I will add this ... Another thing I need to do ė identify the project settings when opening vscode ... At the moment you must press f10, and choose a configuration, because you can have many
AFAIK these are all available in the nodejs and nodejs_fs units. Michael.
Ok, as soon as i can i will migrate
heliosroots wroteOk, as soon as i can i will migrate
It's only 500 lines of code, now is the time before it gets too big ;-)
If you need help or some things are missing in nodejs or libvscode, let me know :-)
Michael.
