Coder Social home page Coder Social logo

Comments (9)

DavidFeldhoff avatar DavidFeldhoff commented on June 13, 2024 1

Okay, I created a separate issue for that, so that we can focus on the issue addressed here. Hope you can find the detail, so that I can fix that :)

from al-codeactions.

DavidFeldhoff avatar DavidFeldhoff commented on June 13, 2024 1

Hi Natalie, I fixed it yesterday with v0.2.5.
Furthermore I found another issue: you opened a few days back an issue regarding usage of a table field which is an enum which I fixed (#36 ) But if the enum was used directly, then it was of type variant again. This is now fixed as well.

from al-codeactions.

DavidFeldhoff avatar DavidFeldhoff commented on June 13, 2024

Thanks :) I'll look into that and keep you posted!

from al-codeactions.

DavidFeldhoff avatar DavidFeldhoff commented on June 13, 2024

I just tried it with this exact example, but I couldn't reproduce it as it recognizes the return type correctly. It does even work if I create a procedure as a parameter of another procedure call (so that it takes the type of the parameter) or something like that.
What am I doing wrong? :/

from al-codeactions.

NKarolak avatar NKarolak commented on June 13, 2024

Interesting...
My code sample was actually a simplification, though close to the original. I will try to reproduce it again tomorrow, maybe it's all about a tiny detail only.

BTW, I often see parameter variable names with spaces = in quotation marks.
Are there any plans to create variable names without spaces, in general?

from al-codeactions.

DavidFeldhoff avatar DavidFeldhoff commented on June 13, 2024

You mean that the parameters are always created without spaces and without quotation marks?
I could make it happen.. Good idea :)

from al-codeactions.

NKarolak avatar NKarolak commented on June 13, 2024

Yes, I would prefer that. And Microsoft apparently too 😉

from al-codeactions.

NKarolak avatar NKarolak commented on June 13, 2024

Wow, this was tricky to find out.

Please try again using this code (yes, just an additional line that is commented out - do not change!):

 procedure MyFunction()
    var
        MyCode5Variable: Code[5];
    begin
        // MyCode5Variable := 'CCCCC'; // <--- new line
        MyCode5Variable := MyNewFunction('CCCCC');     // missing
    end;

from al-codeactions.

DavidFeldhoff avatar DavidFeldhoff commented on June 13, 2024

Oh.. Nice one 😆
Thanks for keep trying, I'll look into that tomorrow and fix it 👍

from al-codeactions.

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.