-
Notifications
You must be signed in to change notification settings - Fork 75
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
tsconfig.json basic support #323
Conversation
Thanks for the contribution! I'll try to get someone to take a look at this by the end of the week. |
Thanks. I will try to add the support for files (include / exclude) list (which is IMO one of the main points) ASAP, in the same PR if possible. |
@@ -79,4 +80,7 @@ | |||
String SYNTAX_COLORING_PUNCTUATION_COLOR = "syntaxColoring.punctuation.color"; | |||
String SYNTAX_COLORING_REG_EXP_LITERAL_COLOR = "syntaxColoring.regExpLiteral.color"; | |||
String SYNTAX_COLORING_STRING_LITERAL_COLOR = "syntaxColoring.stringLiteral.color"; | |||
|
|||
String PREFERENCE_STORE_TS_CONFIG_LAST_MODIFICATION_TIME = "preferenceStore.tsConfigLastModTime"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These constants look like they are alpha-ed. Both within blocks and across blocks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excuse me, what do you mean by alpha-ed? My english may be not perfect :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh I mean alphabetical. P before S in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, no problem
Couple of things:
Notice that
In particular, the preferenceStore is initialized without reading the |
Thanks for your code review. There is a bunch of things. I will take a closer look at it ASAP. My next push will include your feedbacks and this "files" part. Thanks again. |
Just pushed files/include/exclude part. I start today to take your feedbacks in account. |
About your last comment:
Thanks again for your time. |
Why not? 😞 |
cf this comment #323 (comment) |
Okay, I'll have to wait for that then. Thanks for working on this, @lgrignon =) |
@markwongsk Could you take another look at this? |
I'm getting the following:
With the following tsconfig:
I haven't dug more into it yet. |
my suspicion is that the tsconfig doesn't specify sources (files). |
Okay I cannot get this to work on my project without the stacktrace above. Do you have a sample project somewhere I can try out for which your tsconfig works? |
tagging @lgrignon ^ |
Hi. I will take a look at this, it "works on my machine" with Eclipse Neon without error. Did you try specifying files or include property? It is supposed to fallback on all project's files if not specified but maybe there is a mistake. Another interesting information is that I test with right click > Debug As > Eclipse Application. I will try with your tsconfig right now. Thanks |
OK I did not reproduced your bug yet, but there is some problem with compileOnSave: false In TypeScriptBuilder.build(Set, IProgressMonitor), the following if prevents compilation, even with Project > Clean. I have never set compile on save in the past (even without tsconfig) but I suspect there is a problem with it: private void build(Set<FileDelta> fileDeltas, IProgressMonitor monitor) throws CoreException {
IPreferenceStore projectPreferenceStore = new ProjectPreferenceStore(this.getProject());
this.deleteAllMarkers();
// compile the source files if compile-on-save is enabled
if (projectPreferenceStore.getBoolean(IPreferenceConstants.COMPILER_COMPILE_ON_SAVE)) { I think it should rather be in incrementalBuild, right? |
…* fixed languageEndPoint missing ref
I just reproduced your bug. I fixed it and pushed it. Just in case, a link to a working project with your tsconfig: Works with the following tsconfig as well. Thanks again for your time :)
|
@markwongsk, could you try this out again? |
Hello EclipseTypescript's team, any update on this? :) Thanks |
Hey @lgrignon I was busy and then went on vacation so didn't get to look at this. I'll be taking a look at this this week. Unfortunately, your link has expired. Would you mind updating it again? Thanks! |
@lgrignon I can't get specifying source folders to work. Example repo: https://github.com/markwongsk/test-eclipse-typescript-tsconfig Steps:
|
Hello, sorry I did not answer earlier. Here is the link to the project: https://we.tl/E8zIx0YEZl Indeed, there is this very stupid bug, I will fix it ASAP. Maybe you could try the tsconfig part in the mean time. Thanks for testing / reporting. |
I tried with a simple |
Thanks a lot! About the bug, I had a hard time trying to debug what is happening and it seems that PreferenceStore.setValue(SRC_DIRS.., "src;...") isn't stored and I didn't figure out why. I will try debugging another way tonight or tomorrow. Have a good evening. |
@markwongsk I found the problem and fix it, could you check it again please? |
I tested the fix, and it seems like it works. Unless @markwongsk has any further comments, I'll merge this in (and release) tomorrow night. |
Thanks for the contribution @lgrignon! Sorry it took so long to get in. |
Is it live on the update site? Seems like i dont have the tsconfig option, and no updates availables. Version i have: TypeScript 1.8.0.v20160504-1733 com.palantir.typescript.feature.feature.group Palantir Technologies, Inc. Thanks. |
This is pretty minimalist, but I plan to add the following feature during the days:
files
property, which includes glob & input files listHope you will like it :)