The document “LUA” could not be opened. Corona Simulator cannot open files of this type ?

OK,

All of a sudden my entire system broke !

I’m using SublimeText 2 and have installed 3 also (OSX). Every time I attempt a build Corona gives this weird ass error ?? What does it mean ?

" The document “LUA” could not be opened. Corona Simulator cannot open files of this type."

i dont work on OSX but perhaps LUA should be lua (small letters) ?

Nope not the issue, no files have LUA in caps, thats the error message from CoronaSDK

I have the same problem, impossible to build :

[WinError 2] Le fichier spécifié est introuvable [cmd: ["'C:\\Program Files (x86)\\Corona Labs\\Corona SDK\\Corona Simulator.exe'", '/singleton', '/no-console', 'C:\\Users\\Yvan\\Documents\\Corona Projects\\test\\main.lua']] [dir: C:\Users\Yvan\Documents\Corona Projects\test] [path: C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\;C:\Program Files (x86)\Toshiba\Bluetooth Toshiba Stack\sys\x64\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;;C:\Poker\Ladbrokes.be Poker\data\QT;C:\Poker\Ladbrokes.be Poker\data\OpenSSL;C:\Users\Yvan\AppData\Local\Microsoft\WindowsApps] [Finished]

I am having a similar issue with sublime text 3 (OSX).  Everything is up to date (sublime text and I have Corona Editor 1.7.0) and was working yesterday but today it is not.  I receive two errors first it cannot find my document (opened and closed project but no change) 

error: The document “TOSHIBA(my disk drive name)” could not be opened. Corona Simulator cannot open files of this type.

then after I click off that error this error pops up:  The document “main.lua” could not be opened. Corona Simulator cannot open files in the “Lua Source Code” format.

Runs straight from the Corona Simulator App itself however.

@yvandotet

We have just pushed Corona Editor 1.7.1 which fixes the issue where  Run Project  doesn’t work on Windows.

 

The update will show up in an hour or so (the Sublime Text Package Control system doesn’t react instantly to updates).  You can quit and restart Sublime Text to check for updates or use Tools ▶ Command Palette… [Package Control: Upgrade Package]

Also, you will have to rename “Corona SDK” folder to Corona.

@mlab

Are you on Windows too?

@davporte

That’s weird. What Corona build are you using?

I realize I didn’t say what OS before, it is OSX 

Also note that after I click off the error message boxes the Corona Simulator app remains up - if I say relaunch or change phone type it will launch properly and also run debugging in the sublime text build panel. ( I hope I worded that properly to make sense)

corona editor version is 1.7.0,

I try update but it says that there are nothing to update yet.

I change the folder’s name too. I will try again tomorrow :wink:

Make sure your main.lua (or whatever .lua file you have open when you hit Run Project ) has its syntax set to Corona Lua using View ▶ Syntax ▶ Corona Lua  

This may have gotten unset by the Sublime Text update.

From the README:

Most of the features of the plugin rely on the current Syntax setting so when editing files you should use View > Syntax > Corona Lua command to set the correct syntax for the file. You will probably also want to change Sublime Text’s default for .lua files by choosing View > Syntax > Open all with current extension as… > Corona Lua when you have a .lua file open in the editor.

 

You can access the README at any time using the menu item Sublime Text ▶ Preferences ▶ Package Settings ▶ Corona Editor ▶ README

I checked the Syntax already and both that you mentioned above are still set to Corona Lua.   I spent a while double checking everything but now I am thinking it might have to do with the update but not sure with what.

One more thing to note that I tested… The Corona Editor>Corona Debugger>Run  works properly and starts up the simulator just fine.  When I build from Corona Editior>Run Project  this will give me the errors

Hi @mlab … sorry you’re having problems.

Can you post your Sublime Text console log here after you’ve tried to run and gotten the error?  To get the console log, hit Ctrl+` (control backquote) and note the pane that opens at the bottom of your Sublime Text window.  Click in the pane and type Cmd+A Cmd+C and then paste the log into a reply here. 

Here it is:

startup, version: 3143 osx x64 channel: stable

executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text

working dir: /

packages path: /Users/Lykae/Library/Application Support/Sublime Text 3/Packages

state path: /Users/Lykae/Library/Application Support/Sublime Text 3/Local

zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages

zip path: /Users/Lykae/Library/Application Support/Sublime Text 3/Installed Packages

ignored_packages: [“Vintage”]

pre session restore time: 0.242805

using gpu buffer for window

using gpu buffer for window

using gpu buffer for window

using gpu buffer for window

using gpu buffer for window

startup time: 0.703958

reloading plugin Default.auto_indent_tag

reloading plugin Default.block

reloading plugin Default.comment

reloading plugin Default.convert_syntax

reloading plugin Default.copy_path

reloading plugin Default.delete_word

reloading plugin Default.detect_indentation

reloading plugin Default.duplicate_line

reloading plugin Default.echo

reloading plugin Default.exec

reloading plugin Default.fold

reloading plugin Default.font

reloading plugin Default.goto_line

reloading plugin Default.history_list

reloading plugin Default.indentation

reloading plugin Default.install_package_control

reloading plugin Default.kill_ring

reloading plugin Default.mark

reloading plugin Default.new_templates

reloading plugin Default.open_context_url

reloading plugin Default.open_in_browser

reloading plugin Default.pane

reloading plugin Default.paragraph

reloading plugin Default.paste_from_history

reloading plugin Default.profile

reloading plugin Default.quick_panel

reloading plugin Default.run_syntax_tests

reloading plugin Default.save_on_focus_lost

reloading plugin Default.scroll

reloading plugin Default.set_unsaved_view_name

reloading plugin Default.settings

reloading plugin Default.show_scope_name

reloading plugin Default.side_bar

reloading plugin Default.sort

reloading plugin Default.swap_line

reloading plugin Default.switch_file

reloading plugin Default.symbol

reloading plugin Default.transform

reloading plugin Default.transpose

reloading plugin Default.trim_trailing_white_space

reloading plugin Default.ui

reloading plugin CSS.css_completions

reloading plugin Diff.diff

reloading plugin HTML.encode_html_entities

reloading plugin HTML.html_completions

reloading plugin 0_package_control_loader.00-package_control

reloading plugin Corona Editor._corona_utils

reloading plugin Corona Editor.about

reloading plugin Corona Editor.completions

reloading plugin Corona Editor.corona_docs

reloading plugin Corona Editor.debugger

reloading plugin Corona Editor.run_project

reloading plugin Corona Editor.snippets

reloading plugin Package Control.1_reloader

reloading plugin Package Control.2_bootstrap

reloading plugin Package Control.Package Control

plugins loaded

Corona Editor: Init

environment variables loaded using: /bin/bash -l

Package Control: No updated packages

about: Corona Editor for Sublime Text | Version: 1.7.0 | Installed: 2017-09-27 13:28:18 | Corona Editor is the official Corona SDK plugin for Sublime Text | [Sublime Text 3143/stable/osx/x64]

Corona Editor: Running: ["’/Applications/Corona-3154/Corona Simulator.app/Contents/MacOS/Corona Simulator’", ‘-singleton’, ‘1’, ‘-no-console’, ‘1’, ‘/Volumes/TOSHIBA EXT/CoronaDevelopment/moleRun/main.lua’]

Running ‘/Applications/Corona-3154/Corona Simulator.app/Contents/MacOS/Corona Simulator’ -singleton 1 -no-console 1 /Volumes/TOSHIBA EXT/CoronaDevelopment/moleRun/main.lua

about: Corona Editor for Sublime Text | Version: 1.7.0 | Installed: 2017-09-27 13:28:18 | Corona Editor is the official Corona SDK plugin for Sublime Text | [Sublime Text 3143/stable/osx/x64]

Corona Editor: Running: ["’/Applications/Corona-3154/Corona Simulator.app/Contents/MacOS/Corona Simulator’", ‘-singleton’, ‘1’, ‘-no-console’, ‘1’, ‘/Volumes/TOSHIBA EXT/CoronaDevelopment/moleRun/main.lua’]

Running ‘/Applications/Corona-3154/Corona Simulator.app/Contents/MacOS/Corona Simulator’ -singleton 1 -no-console 1 /Volumes/TOSHIBA EXT/CoronaDevelopment/moleRun/main.lua

Corona Editor: Running: ["’/Applications/Corona-3154/Corona Simulator.app/Contents/MacOS/Corona Simulator’", ‘-singleton’, ‘1’, ‘-no-console’, ‘1’, ‘/Volumes/TOSHIBA EXT/CoronaDevelopment/moleRun/main.lua’]

Running ‘/Applications/Corona-3154/Corona Simulator.app/Contents/MacOS/Corona Simulator’ -singleton 1 -no-console 1 /Volumes/TOSHIBA EXT/CoronaDevelopment/moleRun/main.lua

Corona Editor: Running: ["’/Applications/Corona-3154/Corona Simulator.app/Contents/MacOS/Corona Simulator’", ‘-singleton’, ‘1’, ‘-no-console’, ‘1’, ‘/Volumes/TOSHIBA EXT/CoronaDevelopment/moleRun/main.lua’]

Running ‘/Applications/Corona-3154/Corona Simulator.app/Contents/MacOS/Corona Simulator’ -singleton 1 -no-console 1 /Volumes/TOSHIBA EXT/CoronaDevelopment/moleRun/main.lua

Corona Editor: Running: ["’/Applications/Corona-3154/Corona Simulator.app/Contents/MacOS/Corona Simulator’", ‘-singleton’, ‘1’, ‘-no-console’, ‘1’, ‘/Volumes/TOSHIBA EXT/CoronaDevelopment/moleRun/main.lua’]

Running ‘/Applications/Corona-3154/Corona Simulator.app/Contents/MacOS/Corona Simulator’ -singleton 1 -no-console 1 /Volumes/TOSHIBA EXT/CoronaDevelopment/moleRun/main.lua

ok nice I updated. It’s worked.

Thanks.

@Perry Clarke 

I’m running 2017.3135 (2017.9.7) , I’ve actually installed zerobrain as a test. It has no issues compileing.

I also get this error after heaps of the previous error:  The document “main.lua” could not be opened. Corona Simulator cannot open files in the “Lua Source Code” format.

And I had all this set up as shown ?

From the README:

Most of the features of the plugin rely on the current Syntax setting so when editing files you should use View > Syntax > Corona Lua command to set the correct syntax for the file. You will probably also want to change Sublime Text’s default for .lua files by choosing View > Syntax > Open all with current extension as… > Corona Lua when you have a .lua file open in the editor.

@Perry Clarke

FYI if I do F10 (run) it works perfectly, but APPLEF10(Run project) fails

@Perry Clarke

Also I can see that under Tools > Build System LUA is selected, there is no Corona LUA

My simulator was working just fine when I left the office yesterday and today I’m getting the same error. No matter what I do it’s telling me I can’t run the code in my simulator. 

I’ve noticed that when I try to build anything with a space in the folder name is when I get the issue. If the path to my app is 

/some/path/to/app/main.lua       works fine
/some path/to/app/main.lua       will tell me that “some” could not be opened

Well that did it.  I had a space in my disk drive name so I renamed it.  I was able to build and run in sublime with the simulator without a problem.  I don’t know what was done to the update but a space in a name never caused a problem before.  Thanks.