Code Monkey home page Code Monkey logo

Comments (5)

MangelMaxime avatar MangelMaxime commented on August 20, 2024 1

No problem :)

Yes, sometimes I think VSCode is failing to update properly the extension. For example, sometimes I have some files missing...

from ionide-fsgrammar.

MangelMaxime avatar MangelMaxime commented on August 20, 2024

I can't reproduce the problem with latest Ionide.

Can you please check if you have still have the problem in an empty file. Something like:

module Test

let self =
    if self.process_type <> OderToPay && self.process_type <> InvoiceToPay then
        ""
    else
        ""    

Or if my hand written code is testing the wrong thing :)

from ionide-fsgrammar.

alfonsogarciacaro avatar alfonsogarciacaro commented on August 20, 2024

Yes, unfortunately it's still happening :/ You can test with:

type Foo =
    { process_type: string }

let test() =
    let self = { process_type = "foo" }
    if self.process_type = "foo"
    then failwith "WTF!"
    else self

Maybe adding a boundary condition to "type" in the regex (like \btype)?

syntax

from ionide-fsgrammar.

MangelMaxime avatar MangelMaxime commented on August 20, 2024

I still can't repro it...

2018-10-18 14 12 57

And we are already protecting type with a word boundary source

The word boundary has been added because @selketjah reported a similar issue to yours. Related commits

Can you please check the version of Ionide you are using ? Or perhaps try to uninstall and reinstall it to be sure all the files are using latest version.

Last solution would be for you to clone ionide-fsgrammar, open it in VSCode and press F5 to check if you are still able to reproduce the synthax error.

from ionide-fsgrammar.

alfonsogarciacaro avatar alfonsogarciacaro commented on August 20, 2024

Ah, yeah! Uninstalled and reinstalled Ionide and it's working fine now. Weird, I thought extensions were automatically updated now. Sorry for the hassle!

from ionide-fsgrammar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.