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.

Undefined functions, types, etc.

See original GitHub issue

Describe the bug It seems that the plugin is not able to find the definitions. I get all kind of undefined … errors. However the Intelephense plugin for VS Code works just fine. See screenshots.

To Reproduce Steps to reproduce the behavior:

  1. Install Neovim and use my config and my coc-settings
  2. Install a regular Laravel Project and install and run barryvdh/laravel-ide-helper
  3. (optional) Install some other Packages (GraphQL or whatever you want)
  4. Use some stuff from the vendor folder, or even use some laravel functions like abort or app
  5. See the undefined messages

Expected behavior I’d expect the functions and classes to be found ^^

Screenshots Bildschirmfoto 2020-02-16 um 15 51 59 Bildschirmfoto 2020-02-16 um 15 52 41

Desktop

  • OS: macOS 10.15.3 / Linux Manjaro 18
  • NVIM v0.4.2 Bildschirmfoto 2020-02-16 um 16 10 34

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
artfulrobotcommented, Oct 30, 2020

Hi, please try call “CocCommand intelephense.index.workspace” command

Workspaces are a mystery to me, I think it’s supposed to be the top-level dir under which everything is indexed, right? But I have no idea how to set it for a given file. But this command fixed it for me, I’m just not sure what it did/does!

It would be great if the README of this project gave some more documentation to; even if that’s just links to other projects. It’s not clear when there’s a problem if it’s this, Coc, Intelephense, …!

1reaction
Artem-Schandercommented, Jul 8, 2020

Yeah, it would be nice if someone could fix this. For now I disabled all the broken stuff.

"intelephense.diagnostics": {
    "undefinedTypes": false,
    "undefinedFunctions": false,
    "undefinedConstants": true,
    "undefinedClassConstants": true,
    "undefinedMethods": false,
    "undefinedProperties": false,
    "undefinedVariables": false
},
Read more comments on GitHub >

github_iconTop Results From Across the Web

Parameterized function name caused `undefined function`
This issue is about calling a function. Functions can be called like test(var) . In another case, it would be useful that we...
Read more >
Undefined function 'fimplicit' for input arguments of type 'sym'
But whenever run this program in matlab, it replies with an error "Undefined function 'fimplicit' for input arguments of type 'sym'." How to...
Read more >
Why does the C++ linker allow undefined functions?
What's happening here is that the function pointer is implicitly converted to bool . This is specified by [conv.bool] :.
Read more >
C++ Errors: Undefined Reference, Unresolved External ...
An “Undefined Reference” error occurs when we have a reference to object name (class, function, variable, etc.) in our program and the linker ......
Read more >
Undefined behavior
Lambda function expression ... C++11)that is unsequenced (since C++11), access to an object through a pointer of a different type, etc.
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