finestructure / Arena

A command line tool to create Swift Playground projects with SPM package dependencies
MIT License
684 stars 16 forks source link

Is there anyway to use a package that includes a c module? #73

Closed brucemontegani closed 5 months ago

finestructure commented 4 years ago

Hi Bruce, is there a specific package you're asking about? Are you getting an error message?

brucemontegani commented 4 years ago

Yes.

It is the Yams package for YAML. It is a wrapper for the CYML library

It is located here: https://github.com/jpsim/Yams

Code: https://github.com/jpsim/Yams.git

Please note that it also doesn’t work with another package that includes a wrapper for C:

https://github.com/tanner0101/mustache.git

Bruce

On Oct 24, 2020, at 9:18 AM, Sven A. Schmidt notifications@github.com wrote:

Hi Bruce, is there a specific package you're asking about? Are you getting an error message?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/finestructure/Arena/issues/73#issuecomment-715967677, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMIUQGDJIW2WHOUPV76C5LSML45TANCNFSM4S5JRZBA.

finestructure commented 4 years ago

Which version of Arena did you try this with? I've tried it with 1.0.0-b2 (and Xcode 12.1) and despite complaining about CYaml it seems to be working:

Screenshot 2020-10-25 at 16 07 03
brucemontegani commented 4 years ago

Yes... that is the message I am getting. Since in can't recognize the Yams module I can't use it in playgroundsSent from my T-Mobile 4G LTE Device -------- Original message --------From: "Sven A. Schmidt" notifications@github.com Date: 10/25/20 8:10 AM (GMT-08:00) To: finestructure/Arena Arena@noreply.github.com Cc: Bruce Montegani bruce@montegani.com, Author author@noreply.github.com Subject: Re: [finestructure/Arena] Is there anyway to use a package that includes a c module? (#73) Which version of Arena did you try this with? I've tried it with 1.0.0-b2 and Yams and despite complaining about CYaml it seems to be working:

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

finestructure commented 4 years ago

On the contrary, it appears to be working and the message presumably can be ignored. Look at the results of the input on the right hand side of the screenshot: it is executing the code successfully despite the error message.

brucemontegani commented 4 years ago

Ok... I will check it later today. Thanks for your help. I wonder why it thinks the module is missing?Sent from my T-Mobile 4G LTE Device -------- Original message --------From: "Sven A. Schmidt" notifications@github.com Date: 10/25/20 9:38 AM (GMT-08:00) To: finestructure/Arena Arena@noreply.github.com Cc: Bruce Montegani bruce@montegani.com, Author author@noreply.github.com Subject: Re: [finestructure/Arena] Is there anyway to use a package that includes a c module? (#73) On the contrary, it appears to be working and the message presumably can be ignored. Look at the results of the input on the right hand side of the screenshot: it is executing the code successfully despite the error message.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

brucemontegani commented 4 years ago

Hi,

Sorry, but it just doesn’t work the way I expected. I get no code completion for the Yams package which is one of the purposes of using Playgrounds.

Bruce

On Oct 25, 2020, at 9:51 AM, Bruce Montegani bruce@montegani.com wrote:

Ok... I will check it later today. Thanks for your help. I wonder why it thinks the module is missing?

Sent from my T-Mobile 4G LTE Device

Ok... I will check it later today. Thanks for your help. I wonder why it thinks the module is missing?Sent from my T-Mobile 4G LTE Device -------- Original message -------- From: "Sven A. Schmidt" notifications@github.com Date: 10/25/20 9:38 AM (GMT-08:00) To: finestructure/Arena Arena@noreply.github.com Cc: Bruce Montegani bruce@montegani.com, Author author@noreply.github.com Subject: Re: [finestructure/Arena] Is there anyway to use a package that includes a c module? (#73)

On the contrary, it appears to be working and the message presumably can be ignored. Look at the results of the input on the right hand side of the screenshot: it is executing the code successfully despite the error message.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/finestructure/Arena/issues/73#issuecomment-716175678, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMIUQBTT4OH2ZH4VVENCT3SMRIATANCNFSM4S5JRZBA.

-------- Original message --------From: "Sven A. Schmidt" notifications@github.com Date: 10/25/20 9:38 AM (GMT-08:00) To: finestructure/Arena Arena@noreply.github.com Cc: Bruce Montegani bruce@montegani.com, Author author@noreply.github.com Subject: Re: [finestructure/Arena] Is there anyway to use a package that includes a c module? (#73) On the contrary, it appears to be working and the message presumably can be ignored. Look at the results of the input on the right hand side of the screenshot: it is executing the code successfully despite the error message.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

DandyLyons commented 3 years ago

Strange. I have the same behavior as you @finestructure . CYaml is missing but the code is still compiling. (Code completion is intermittent, but that's common for my outdated mac.)

finestructure commented 5 months ago

Closing this for now. Please reopen if the problem persists.