bdkjones / CodeKitNova

An Extension to make Nova and CodeKit work seamlessly together.
MIT License
5 stars 2 forks source link

Error on refresh projet #1

Open Corcules opened 4 years ago

Corcules commented 4 years ago

Hi,

when using the command "Refresh Project" from "Extensions" menu, i get this error:

30:45: syntax error: « application constante ou considération » ne peut pas se trouver après « identificateur ». (-2740)

bdkjones commented 4 years ago

Do you have CodeKit installed in your /Applications folder? Did you rename the app (to, for example, CodeKit 2)?

-Bryan

On Oct 27, 2020, at 03:22, Corcules notifications@github.com wrote:

 Hi,

when using the command "Refresh Project" from "Extensions" menu, i get this error:

30:45: syntax error: « application constante ou considération » ne peut pas se trouver après « identificateur ». (-2740)

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

Corcules commented 4 years ago

Yep, Codekit is in app folder, no renamed. The command "Show Codekit" works as expected.

bdkjones commented 4 years ago

Ok, in that case the path to the project you’re trying to refresh contains at least one character that is invalid for AppleScript.

What is the full path to that project from your disk root?

-Bryan

On Oct 27, 2020, at 08:58, Corcules notifications@github.com wrote:

 Yep, Codekit is in app folder, no renamed. The command "Show Codekit" works as expected.

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

Corcules commented 4 years ago

For example : /Users/maxibob/Documents/SERVEUR/lounart/wp-content/themes/lounart/

same with other projects. I guess nothing to do with invalid character...

bdkjones commented 4 years ago

Are those all ASCII characters, or do some of them contain diacritics (é, ã, í, etc.)?

-Bryan

On Oct 28, 2020, at 00:38, Corcules notifications@github.com wrote:

 For example : /Users/maxibob/Documents/SERVEUR/lounart/wp-content/themes/lounart/

same with other projects. I guess nothing to do with invalid character...

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

Corcules commented 4 years ago

Yes only ascii characters like in the example.

A friend of me may have the same problem and he suppose that’s because root folder project on nova : /Users/maxibob/Documents/SERVEUR/lounart/

Is not the same as the root of codekit project /Users/maxibob/Documents/SERVEUR/lounart/wp-content/themes/lounart/

bdkjones commented 4 years ago

Ah, that would indeed explain it. There’s no CodeKit Project that matches the Nova Workspace folder, so refreshing fails.

-Bryan

On Oct 28, 2020, at 10:46, Corcules notifications@github.com wrote:

 Yes only ascii characters like in the example.

A friend of me may have the same problem and he suppose that’s because root folder project on nova : /Users/maxibob/Documents/SERVEUR/lounart/

Is not the same as the root of codekit project /Users/maxibob/Documents/SERVEUR/lounart/wp-content/themes/lounart/

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

greystate commented 3 years ago

Almost all of my repos have a {projectName}.Frontend folder inside the root, so I've been fiddling with this to see if I could make Nova/CodeKit look in a subfolder of the Workspace, and I've managed to make something that works.

I have a branch here if you want to try it out: https://github.com/greystate/CodeKitNova/tree/optional-ckpath-inside-project

Adding a "codekit.folder": "wp-content/themes/lounart" key to the /.nova/Configuration.json file, would work in the above scenario.