Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Thank you, I was able to use the trial license you emailed to me.
12
SlickEdit® / Re: SE not determining type of auto loop variable in C++
« Last post by rowbearto on January 21, 2022, 08:40:07 pm »
Here's the full example in a format that I can post on a public forum. My upload to support has other stuff like my user.cfg.xml.

I verified that the clangd language server protocol is able to determine the type of the auto while SE cannot with this example. The clangd server does something close to compilation and is not showing any errors.

This has the .begin() method return an iterator with the required operators.

Search for the "REPRODUCE" in the code sample.

Code: [Select]
#include <memory>
namespace SomeOtherNamespace {
struct Struct33
{
};
template <class R>
class SomeReaderInterface {
 public:
  virtual void WaitFunc();
};
template <class R>
class SomeReader : public SomeReaderInterface<R> {
};
//
}

namespace some_namespace {
class SomeListType
{
};

}

namespace NameSpace7 {
class Class55;
template <typename Response>
class StreamReader {
  friend Class55;

  std::unique_ptr<SomeOtherNamespace::Struct33> context;
  std::unique_ptr<SomeOtherNamespace::SomeReader<Response>> reader;

 public:
  Response result;

  StreamReader() : context(new SomeOtherNamespace::Struct33) {}

  bool Read() {
    return false;
  }

  /**
   * Iterator for response stream.
   */
  class Iterator {
    friend StreamReader;

    StreamReader<Response> *reader;

    explicit Iterator(StreamReader<Response> *reader) : reader(reader) {}

   public:
    Iterator() : reader(nullptr) {}

    Response &operator*() {
      return reader->result;
    }

    Response *operator->() {
      return &reader->result;
    }

    Iterator &operator++() {
      if (!reader->Read()) reader = nullptr;
      return *this;
    }

    bool operator!=(const Iterator &other) {
      return reader != other.reader;
    }
  };

  /**
   * Returns an iterator for the response stream.
   */
  Iterator begin() {
    if (Read())
      return Iterator(this);
    else
      return Iterator();
  }

  /**
   * Returns an invalid iterator to mark the end of the response stream.
   */
  Iterator end() {
    return Iterator();
  }
};

}

namespace namespace99 {
class ClassName3
{
};

}


namespace application_common
{

  class NamespaceIntf
  {
    public:
      static NameSpace7::StreamReader<some_namespace::SomeListType>  GetFunction(namespace99::ClassName3& model);

  };

void myfunc()
{
  auto model_p = std::make_unique<namespace99::ClassName3>();
    auto reader = NamespaceIntf::GetFunction(*model_p);
    for (auto const &result : reader) {
      // REPRODUCE: Do a "Preview" window on 'result' below, it says that the type
      // of result is:
      //    const&:reader
      // however the type of 'result' should be:
      //    const some_namespace::SomeListType &
      // The clangd language server is able to correctly determine the type
      // but SlickEdit is not able to get the correct type.
      // clangd language server: https://clangd.llvm.org/
      result
    }
}

} // namespace application_common
13
SlickEdit® / Re: Python Live Errors stopped working after conda environment switch
« Last post by XrstalLens on January 21, 2022, 08:20:36 pm »
Thanks for the feedback. Nothing is showing up in the rte directory which is why I'm having so much trouble. If I delete the rte folder it does seem to get re-created, but it's not copying the source file nor creating an rteout file. I've already looked at all the profile settings and there are no overrides.
14
SlickEdit® / class members are undefined for secondary base class
« Last post by chip.dip on January 21, 2022, 07:41:18 pm »
class A : pubic B, public C
{
    structdefinedinClassC x;    // structdefinedinClassC is in public scope in class C
    int func1()
    {
            int y = x.somemember;
            return y;
    }
}

Slickedit v25.0.1.0 colors structdefinedinClassC and somemember as undefined.
Coloring recognizes Class B members.
15
Trial License sent directly to your email address on file.

Best,
SlickEdit Support

16
v22 (2017) is the latest version for AIX.
Trial generation should be fixed now, so please try getting a trial license again.

++rodney
17
Hello,

When trying to request a trial license for the AIX version, I'm getting this message from the SlickEdit website:
"A newer version of this product has been released. Please download and install our current product before requesting a trial license."

The version that I downloaded and installed is "se_22000100_aix.tar.gz".

Is there any way to get a trial license for this version?  Is there a newer version for AIX available for download?

Thanks!
18
SlickEdit® / Re: Python Live Errors stopped working after conda environment switch
« Last post by patrick on January 21, 2022, 03:45:20 pm »
What platform?  64 bit windows?

One thing to try is to open up a python file, and then in a file manager or terminal go to the configuration directory (location listed in the Help -> About if you're not sure where it is).  From there, go to rte, and open up the rteout file.  Even if your script isn't being called, there may be some error output in there that can give us an idea of what's happening.

For the Options -> Language Settings -> Scripting Langages -> Python > Live Errors configuration for Python, ensure the default profile selects a profile you want, and it's not set to Auto Detect.

One other thing to check is to see if there are any Live Errors profile overrides in the project you have open.  Open up Project -> Project Properties, and go to the Live Errors tab, and see if there are any overrides for Python, and if so if they are referencing the correct profile.

If that doesn't turn up anything, I may need to send you something to enable some logging.  I do have some code for turning some of the compile time logging for Live Errors into logging that can be enabled with a setting, but it's not in the v26.0.x yet. 
19
SlickEdit® / Re: SE not determining type of auto loop variable in C++
« Last post by rowbearto on January 21, 2022, 02:24:14 pm »
Please look at the full example. The full example was done with copy/paste from compilable code.

What I placed in my last post was my high level mental model. The mental model likely left out some important detail from the full example. I didn't try compiling the mental model example from my post or testing it in SE, I only have limited time to dedicate to test cases, and I thought that putting something in the post may be easier for you than finding the full example, while at the same time it minimized my time to develop a small test case that I can post in a public forum.

I'm sure the full example has some important detail I left out. In fact I see the full example does have begin() return an iterator with those operators overloaded. I guess I'm not an expert in range based for loops for creating a mental model, but my full example has real compilable code that meets the rules you specified.

Please take the small amount of time necessary to retrieve it from support and check it out. I think I'm seeing this happening over and over again in my code base and it is hard to code browse now. I don't want to keep making new, similar test cases before you look at the first one.
20
SlickEdit® / Re: "Main timer stopped due to this Slick-C stack"
« Last post by at5dapa1 on January 21, 2022, 02:20:06 pm »
Uploaded files to case CAS-73495-98B5. Hope it can help to find the root of the issue, because it stucks the highlighting: when it happens, clicking anywhere else doesn't highlight anymore the new symbols but remains stuck to the one when the stack issued. Thanks!
Pages: 1 [2] 3 4 ... 10