Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

["Bug"] Cannot compile playground with a /* */ comment #162

Closed
ferranpujolcamins opened this issue Jul 23, 2020 · 3 comments
Closed

["Bug"] Cannot compile playground with a /* */ comment #162

ferranpujolcamins opened this issue Jul 23, 2020 · 3 comments

Comments

@ferranpujolcamins
Copy link

Description

I have a playground page that compiles normally. When adding a /* Comment */ and running nef compile I get a Syntax analysis failed error.

Expected outcome

I can compile the playground, it's just code and comments.

Observed outcome

I get the following error:

Getting playgrounds in MacOS ✓
Getting pages in playground MyPlayground ✓
	• Processing page 1. Introduction ✗
☠️ compiling Xcode Playgrounds from '[...]MyPlayground.app' failed with error:
Compiler failure. Cannot render content: Syntax analysis failed. Possible issues:
	- File is empty
	- Check all the begin/end delimiters are correct.

Code to reproduce the Bug

Provide minimum code, together with imports, that we can execute to reproduce the bug.

import Foundation
/* Comment */

nef modules, version, platform

macOS playground
nef 0.6.1

Tooling

  • Xcode version: 11.5
@truizlop
Copy link
Member

I have noticed this happens when I had a comment /* */ after a line of code, but never seen it happening in a standalone line. We'll investigate that.

@miguelangel-dev
Copy link
Member

Thanks @ferranpujolcamins
This information is so useful for us. As Tomas suggested you, you can change it temporarily to // Comment while we investigate it.

@miguelangel-dev
Copy link
Member

miguelangel-dev commented Jul 24, 2020

It's fixed, we will prepare a new minor-release adding it. nef 0.6.2 - Thanks for pointing it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants