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

File not found errors for files created after Eclipse was started #96

Open
nhnb opened this issue Mar 23, 2016 · 2 comments
Open

File not found errors for files created after Eclipse was started #96

nhnb opened this issue Mar 23, 2016 · 2 comments

Comments

@nhnb
Copy link

nhnb commented Mar 23, 2016

When I edit a file, I get a lot of errors in console, saying that the file was not found. Theses errors do not have a stack trace. When I try to use Ctrl+Space for auto complete,I get the following error. Auto complete is not working.

Command error Error: Could not find file: 'ts/sub/Subber.ts'.
    at getValidSourceFile (/usr/local/eclipse/plugins/com.axmor.eclipse.typescript.core_4.0.0.201508061529/lib/typescript-bridge/ts/typescriptServices.js:37373:23)
    at getCompletionData (/usr/local/eclipse/plugins/com.axmor.eclipse.typescript.core_4.0.0.201508061529/lib/typescript-bridge/ts/typescriptServices.js:37749:30)
    at Object.getCompletionsAtPosition (/usr/local/eclipse/plugins/com.axmor.eclipse.typescript.core_4.0.0.201508061529/lib/typescript-bridge/ts/typescriptServices.js:38170:34)
    at TSService.getCompletionsAtPosition (/usr/local/eclipse/plugins/com.axmor.eclipse.typescript.core_4.0.0.201508061529/lib/typescript-bridge/js/service.js:35:33)
    at Object.thrift.createServer.invoke (/usr/local/eclipse/plugins/com.axmor.eclipse.typescript.core_4.0.0.201508061529/lib/typescript-bridge/js/new_bridge.js:38:59)
    at TSBridgeServiceProcessor.process_invoke (/usr/local/eclipse/plugins/com.axmor.eclipse.typescript.core_4.0.0.201508061529/lib/typescript-bridge/js/gen-nodejs/TSBridgeService.js:262:19)
    at TSBridgeServiceProcessor.process (/usr/local/eclipse/plugins/com.axmor.eclipse.typescript.core_4.0.0.201508061529/lib/typescript-bridge/js/gen-nodejs/TSBridgeService.js:230:39)
    at /usr/local/eclipse/plugins/com.axmor.eclipse.typescript.core_4.0.0.201508061529/lib/typescript-bridge/js/thrift/server.js:55:21
    at Socket.<anonymous> (/usr/local/eclipse/plugins/com.axmor.eclipse.typescript.core_4.0.0.201508061529/lib/typescript-bridge/js/thrift/transport.js:191:5)
    at emitOne (events.js:90:13)

Despite the errors, the .js files are created in my output folder.

.settings/com.axmor.eclipse.typescript.bridge.prefs

declaration=true
eclipse.preferences.version=1
mapRoot=
module=commonjs
noImplicitAny=false
noResolve=false
removeComments=false
source=ts
sourceMap=true
target=bin
targetRelativePathBasedOnSource=true
targetVersion=ES5

@nhnb
Copy link
Author

nhnb commented Mar 23, 2016

The issue occurs only with files that have been created since Eclipse was started.

The "Could not find file" error is thrown in getValidSourceFile() within createLanguageService() near line 37375 of typescriptService.js. program.getSourceFile() only knows about files that existed at the time Eclipse was started.

This seems to be the root cause of the auto complete issue.

@nhnb nhnb changed the title File not found errors in console while editing File not found errors for files created after Eclipse was started Mar 23, 2016
@youssefgh
Copy link

hello is this plugin still supported ?

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

2 participants