question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fix the default getSyntax

See original GitHub issue

Since the latest version of this project has changed the default syntax from javascript to null, and it check the syntax by the block data, I just wonder how can I set the block data for it? I tried Modifier.setBlockData after toggleStyle but it doesn’t work. Any one knows how to make it? Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
J22Melodycommented, Nov 18, 2016

@goddyZhao @Method-X I just had a look at the source code, I guess lib/option.js line 23 return block.getData().syntax; should be return block.getData().get('syntax');, since block.getData() returns an Immutable.Map object.

0reactions
mxstbrcommented, Sep 22, 2017

This is a bug in our default getSyntax method, changing line 23 to block.getData().get('syntax') should work. PRs very welcome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migration. Alter table, set default and get syntax error. postgresql
Hello. I have migration. Yii 2.0.6. Postgres 9.4 public function up() { $this->alterColumn('client', 'banned', ...
Read more >
com.typesafe.config.ConfigParseOptions.getSyntax java code ...
Set a ConfigIncluder which customizes how includes are handled. getClassLoader. Get the class loader; never returns null, if the class loader was unset,...
Read more >
ConfigParseOptions
A set of options related to parsing. ... Gets an instance of ConfigParseOptions with all fields set to the default values. ... public...
Read more >
reactjs - TypeScript - export default as - Stack Overflow
I'm trying to understand the correct syntax for exporting a default component using as. Up till now I've used:
Read more >
When I run the default `blogdown website` in RStudio, I can't ...
Hi all, After install and load all required packages to build website using blogdown in Rstudio, I go to File -> New Project...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found