Skip to content

Does not work for bs-platform 7.3.1 yet #447

@vdanchenkov

Description

@vdanchenkov

bs-platform: 7.3.1
reason-vscode: 1.7.8
OS: MacOS 10.15.4

If a file contains no errors, compilation works just fine. If there are some error, plugin does not highlight them, file silently does not compile.

I can attach full /node_modules/.lsp/debug.log if needed.

I can see some signs of found error in the debug.log.

FAILED: components/TopPanel.cmj components/TopPanel.cmi /Users/user/work/myproject/components/TopPanel.bs.js 
/Users/user/work/myproject/node_modules/bs-platform/darwin/bsc.exe -bs-package-name with-reasonml  -bs-package-output commonjs:components -color always -bs-suffix -I common -I layouts -I components/svg -I components -I bindings -I /Users/user/work/myproject/node_modules/reason-react/lib/ocaml -I /Users/user/work/myproject/node_modules/bs-css/lib/ocaml -I /Users/user/work/myproject/node_modules/bs-css-emotion/lib/ocaml  -bs-super-errors -o components/TopPanel.cmj components/TopPanel.reast

  We've found a bug for you!
  /Users/user/work/myproject/components/TopPanel.re 14:18-20
  
  12 ┆ style([
  13 ┆   width(64->px),
  14 ┆   height(48->pxg),
  15 ┆   background(hex(expanded ? "24CFED" : "25375C")),
  16 ┆   ...CssTools.centerWithFlex,
  
  The value pxg can't be found
  
  Hint: Did you mean px?
  
FAILED: subcommand failed.

On latest official version [email protected] works as expected. I'll stick with it for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions