Bug 386312 - File content not updated when it is not in workspace.
Summary: File content not updated when it is not in workspace.
Status: NEW
Alias: None
Product: LDT
Classification: Tools
Component: LuaDevelopmentTools (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P4 major
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: bugday
Depends on: 406237
Blocks:
  Show dependency tree
 
Reported: 2012-07-31 08:37 EDT by Kevin KIN-FOO CLA
Modified: 2013-04-22 13:21 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin KIN-FOO CLA 2012-07-31 08:37:47 EDT
Everything is in the title, when I use Koneki LDT to open file which is not in the workspace, the change I make in the file are not handled.
Here how to reproduce the behavior:
1. Create a file with a .lua extension on your file system
2. Open Koneki LDT
3. Drag your fresh empty file in LDT
4. Edit the file, here is what I entered:
    ---
    -- @module modname
    return nil
5. Save the file
6. Nothing appears on outline and an exception in thrown:
!ENTRY org.eclipse.koneki.ldt 4 0 2012-07-31 11:50:32.658
!MESSAGE Unable to find module: global.
!STACK 1
org.eclipse.dltk.core.ModelException:   does not exist
	at org.eclipse.dltk.internal.core.ModelElement.newNotPresentException(ModelElement.java:258)
	at org.eclipse.dltk.internal.core.ModelManager.getPerProjectInfoCheckExistence(ModelManager.java:800)
	at org.eclipse.dltk.internal.core.ScriptProject.getPerProjectInfo(ScriptProject.java:735)
	at org.eclipse.dltk.internal.core.ScriptProject.getResolvedBuildpath(ScriptProject.java:302)
	at org.eclipse.dltk.internal.core.ScriptProject.getAllProjectFragments(ScriptProject.java:3192)
	at org.eclipse.dltk.internal.core.ScriptProject.getAllProjectFragments(ScriptProject.java:3185)
	at org.eclipse.koneki.ldt.core.LuaUtils.getModuleSource(LuaUtils.java:149)
	at org.eclipse.koneki.ldt.core.LuaUtils.getSourceModule(LuaUtils.java:186)
	at org.eclipse.koneki.ldt.core.internal.ast.models.LuaASTUtils.getPreloadSourceModule(LuaASTUtils.java:426)
	at org.eclipse.koneki.ldt.core.internal.ast.models.LuaASTUtils.getAllGlobalVarsDefinition(LuaASTUtils.java:386)
	at org.eclipse.koneki.ldt.ui.internal.editor.completion.LuaCompletionEngine.addGlobalDeclarations(LuaCompletionEngine.java:75)
	at org.eclipse.koneki.ldt.ui.internal.editor.completion.LuaCompletionEngine.complete(LuaCompletionEngine.java:66)
	at org.eclipse.dltk.internal.core.Openable$CompletionThread.run(Openable.java:502)
	at org.eclipse.dltk.internal.core.Openable$CompletionThread.run(Openable.java:483)
Comment 1 Benjamin Cabé CLA 2012-08-21 10:22:25 EDT
to be investigated for 0.9M1. 
might be a DLTK bug?
Comment 2 Simon Bernard CLA 2013-04-22 13:21:11 EDT
It seems this is a DLTK bug (bug 406237)