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

Remove reference to setPreserveJsDocWhitespace #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

joeltine
Copy link
Owner

@joeltine joeltine commented Jun 13, 2016

options.setPreserveJsDocWhitespace is deprecated and removed. As-is, when built with the head compiler, this code throws: 1) Error in custom provider, java.lang.NoSuchMethodError: com.google.javascript.jscomp.CompilerOptions.setPreserveJsDocWhitespace(Z)V.

The new replacement option setParseJsDocDocumentation should be called with Config.JsDocParsing.INCLUDE_DESCRIPTIONS_WITH_WHITESPACE;

`options.setPreserveJsDocWhitespace` is deprecated and removed. As-is, when built with the head compiler, this code throws: `1) Error in custom provider, java.lang.NoSuchMethodError: com.google.javascript.jscomp.CompilerOptions.setPreserveJsDocWhitespace(Z)V`.

The new replacement option `setParseJsDocDocumentation` is called implicitly with the equivalent value in `setIdeMode`s implementation.
@@ -78,7 +79,7 @@ CompilerOptions provideCompilerOptions(

// IDE mode must be enabled or all of the jsdoc info will be stripped from the AST.
options.setIdeMode(true);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd guess that the rest of IDE mode isn't needed and can be removed. But you probably know what js-dossier needs better than I do.

@joeltine
Copy link
Owner Author

@blickly Ya I opened an issue specifically for the IDE mode question: jleyba#71.

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

Successfully merging this pull request may close these issues.

2 participants