Comments (5)
Thanks. I was thinking about it, but to implement Go to declaration I have to teach PhpStorm to work with .env files. Create syntax lexer and grammar. It'll take some time, but I'll try to do it.
from idea-php-dotenv-plugin.
implemented in 0.2
from idea-php-dotenv-plugin.
Lexer would be fine. but what is about using FilenameIndex.getFilesByName(project, ".env")
to get all files instead of indexing them?
from idea-php-dotenv-plugin.
@Haehnchen I'm not sure. In each autocomplete request, read and analyze file contents... Anyway, I wrote it not only for laravel, but for another project, where dotenv library was used directly. And for this library .env file can be everywhere. not only on project root.
from idea-php-dotenv-plugin.
I implemented this but it doesn't work in PhpStorm. It has a little bug with incorrect file type calculating for file with empty names, like '.env'. In the same time IDEA Ultimate works as expected.
https://youtrack.jetbrains.com/issue/WI-36033 - if you want to vote ;-)
from idea-php-dotenv-plugin.
Related Issues (20)
- [bug]: not compatible with yaml files HOT 2
- Spell checker does not work HOT 1
- Plugin doesn't work with EAP 2022.1 HOT 4
- Observation: Only works with one .env file HOT 2
- Value Preview is displayed HOT 2
- WSL2 error : export: ProgramFiles(x86): bad variable name HOT 2
- Supporting .env.* file extensions HOT 1
- Plugin doesn't work with the latest build of PyCharm 2022.2 HOT 4
- Plugin doesn't work with EAP 2022.3 HOT 1
- Support popular python library django-environ
- highlighter doesn't work. HOT 1
- Doesn't work in .env, but works in .env.example (phpstorm) HOT 2
- Unable To Use "HasFactories" with Factories Under Subfolders HOT 3
- Plugin doesn't work with EAP 2023.1 HOT 1
- Strange Highlighting? HOT 5
- Go to Definition doesn't work in IntelliJ IDEA 2022.3.3 HOT 5
- Not compatible with Php Storm 2023.2 EAP
- Does not work with custom defined files. HOT 1
- .env comments after key = value
- Doesn't work with IDEA (2021.2.3) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from idea-php-dotenv-plugin.