Re: Run command for Objective-C

2024-04-15 Thread Rich Siegel
On 15 Apr 2024, at 14:48, 'Derek Yates' via BBEdit Talk wrote:

> The following seems to work:
> [...]

Glad to hear you found a working solution.

You might find BBEdit's support for the Language Server Protocol useful: 
https://www.barebones.com/support/bbedit/lsp-notes.html

Additionally, piping the output of the `clang` command through `bbresults` 
might provide a nicer experience for compile errors (if you aren't using 
clangd).

R.

-- 
Rich Siegel Bare Bones Software, Inc.
  

Someday I'll look back on all this and laugh... until they sedate me.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or believe that the application isn't working correctly, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/E47C0F6B-612C-4662-B60E-9676BEF2A006%40barebones.com.


Re: Run command for Objective-C

2024-04-15 Thread 'Derek Yates' via BBEdit Talk
The following seems to work:

1) Create the following script:
#!/bin/zsh
CLANG_OUTFILE=${BB_DOC_PATH%%\.m}.out
clang -x objective-c -o $CLANG_OUTFILE $BB_DOC_PATH
$CLANG_OUTFILE

2) Save it (with extension .sh, although this might not be necessary) in 
the Scripts Folder (typically ~/Library/Application Support/BBEdit/Scripts)

3) Write and save (somewhere on disk) the Objective-C source code  (I used 
'.m' suffix which the script will remove and replace with '.out')

4) With the saved source file as the active window in BBEdit, select the 
script from the script menu. The results should appear in the Unix Script 
Output.log window.



On Friday 12 April 2024 at 13:33:05 UTC+1 Derek Yates wrote:

> I am learning Objective-C and would like to be able to compile and run 
> code snippets using BBEdit. I presume I need to use the Run command and 
> somehow send the snippet to clang using a shell script. 
>
> I can run Python snippets, but can't figure out how to do the same for 
> Objective-C. For a start, all the shebang menu items are grey (presumably 
> because Objective-C is not an interpreted language).
>
> Can't find anything online or in the manual on how to do this. Can someone 
> point me in the right direction?
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or believe that the application isn't working correctly, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/be908d34-e4c5-40b1-b081-2d7fcefc4b2fn%40googlegroups.com.


Re: New to BBEdit

2024-04-15 Thread Neil Faiman



> On Apr 15, 2024, at 5:59 AM, Pieter Laeremans  wrote:
> 
> Hi, 
> 
> One of the nice things of VS Code, which I can not yet replicate with BBE, is 
> that it very easy to work on projects where the code lives on a "cloud 
> machine"., 
> 
> The builtin sftp support does not do it for me. I tried mounting the remote 
> code through sshfs, but dis also feels a bit slow. I get the best results by 
> mounting the remote code through a samba share. (it is bit annoying to set 
> up).  And it works,  but there is noticeable lag when switching to the 
> window, it appears to scan for changes on disk.  

I can only offer my own experience. I spent several years doing software 
development where the code lived (and the builds happened) on a VMS system. I 
did all the editing in BBEdit on a Mac using BBEdit’s sftp support, and the 
experience was seamless.

Of course, in this case, the VMS systems were on the same LAN, not on a cloud 
server somewhere (although I also used the same workflow remotely from home, 
just as effectively).

Regards,
Neil Faiman

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or believe that the application isn't working correctly, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/F4BC4152-C012-474C-A6A7-82B080318BEB%40faiman.org.


New to BBEdit

2024-04-15 Thread Pieter Laeremans
Hi, 

I'm quite new to BBEdit. I'm a longtime emacs user, and I also use 
VS Code. 

But I like the interface of BBE, the "Notes" feature and the Scratchpad are 
great.

I would like to investigate where I can replace VS Code, where I can, by 
BBEdit.

One of the nice things of VS Code, which I can not yet replicate with BBE, 
is that it very easy to work on projects where the code lives on a "cloud 
machine"., 

The builtin sftp support does not do it for me. I tried mounting the remote 
code through sshfs, but dis also feels a bit slow. I get the best results 
by mounting the remote code through a samba share. (it is bit annoying to 
set up).  And it works,  but there is noticeable lag when switching to the 
window, it appears to scan for changes on disk.  

Are there others trying to do something similar ? 

Thanks,

Pieter

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or believe that the application isn't working correctly, please email 
"supp...@barebones.com" rather than posting here. Follow @bbedit on Mastodon: 

--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/d582f46b-453c-4122-b2aa-996064a88549n%40googlegroups.com.