-
Notifications
You must be signed in to change notification settings - Fork 18
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
Symbols not found when using tsc --out #37
Comments
Hello, Do you use the dev branch or the master/ST2 branch ? T3S work with a root file that is your main project file and then you If your don't setup a project either using a .sublimets file or the sublime-project file, every file will have a separate instance of the plugin and so not "communicate" with each other. Can you show me how you've setup your project ? |
I am using master/ST2.I don't have a sublime-project or .sublimets file, which is most likely the problem. To be clear, I don't use
The tsc compiler will accept the above code when using |
.sublimets
With this project organisation, right now the plugin will not add the file2.ts to the project, you need as you said in your first post to add a file1.ts
But i assume it's not the way you want this to work :), i'll add to my to do list to look at at this kind of project structure and see if i can make it work. I cannot give a date cause i'm a busy right now, but i'll look into it :). |
I am using Grunt with grunt-typescript to invoke the tsc compiler on my *.ts files. I am using T3S for syntax highlighting within Sublime, and I found that when using the
--out
tsc parameter (in the tsc invoked by grunt) there is no way to tell that to T3S.T3S will complain about not finding any types that are not in the same file. Note that when using the
--out
flag, all *.ts files that you pass are compiled into a single .js file. There is no import/export within my code, as the tsc compiler will automatically resolve all types that are in the list of *.ts files.As a workaround I put the
///<reference path="..." />
into the source code, so that T3S stil works. But for the compile step to work, I wouldn't need these reference tags.The text was updated successfully, but these errors were encountered: