vscode-magento-wizard icon indicating copy to clipboard operation
vscode-magento-wizard copied to clipboard

File not in the workspace (not saved yet?)

Open jcellon opened this issue 3 years ago • 2 comments

When I do F1 and try to inject dependency from the MagentoWizard nothing comes up. But looking into the Runtime Status I get: File not in the workspace (not saved yet?) And when looking into the output tab I get:

Found files registration files: FileSystemWatcher: Deleted ~\app\code\JCWizard\Boiler\etc\di.xml

Originally posted by @jcellon in https://github.com/viperet/vscode-magento-wizard/issues/29#issuecomment-924112301

jcellon avatar Sep 21 '21 19:09 jcellon

@jcellon please post full log. Does it correctly detects Magento root location? Does it finds some modules/themes/blocks?

"File not in the workspace (not saved yet?)" means just what it says - you probable just created an empty file, right? To inject dependency it should be correctly formatted PHP file with class in it. Saved in one of the module folders, for example /app/code/foo/bar/Blocks/Example.php

viperet avatar Sep 21 '21 19:09 viperet

Here's the log:

PHP 7.3.21 (cli) (built: Aug 4 2020 11:21:19) ( ZTS MSVC15 (Visual C++ 2017) x64 ) Found Magento root at c:\wamp64\www\magento2

  • Modules: 519
  • Themes: 4
  • Blocks: 5779 Creating 'c:\wamp64\www\magento2\app\code\JCWizard\Boiler' Creating 'c:\wamp64\www\magento2\app\code\JCWizard\Boiler' FileSystemWatcher: Created file c:\wamp64\www\magento2\app\code\JCWizard\Boiler\registration.php FileSystemWatcher: Created dir c:\wamp64\www\magento2\app\code\JCWizard Indexing folder c:\wamp64\www\magento2\app\code\JCWizard FileSystemWatcher: Created dir c:\wamp64\www\magento2\app\code\JCWizard\Boiler Indexing folder c:\wamp64\www\magento2\app\code\JCWizard\Boiler FileSystemWatcher: Created dir c:\wamp64\www\magento2\app\code\JCWizard\Boiler\etc Indexing folder c:\wamp64\www\magento2\app\code\JCWizard\Boiler\etc Found files registration files: Found files registration files: c:\wamp64\www\magento2\app\code\JCWizard\Boiler\registration.php Found files registration files: c:\wamp64\www\magento2\app\code\JCWizard\Boiler\registration.php FileSystemWatcher: Created dir c:\wamp64\www\magento2\app\code\JCWizard\Boiler\Block Indexing folder c:\wamp64\www\magento2\app\code\JCWizard\Boiler\Block Found files registration files: FileSystemWatcher: Deleted c:\wamp64\www\magento2\app\code\JCWizard\Boiler\Block FileSystemWatcher: Created dir c:\wamp64\www\magento2\app\code\JCWizard\Block Indexing folder c:\wamp64\www\magento2\app\code\JCWizard\Block Found files registration files: FileSystemWatcher: Deleted c:\wamp64\www\magento2\app\code\JCWizard\Block FileSystemWatcher: Created dir c:\wamp64\www\magento2\app\code\JCWizard\Boiler\Block Indexing folder c:\wamp64\www\magento2\app\code\JCWizard\Boiler\Block Found files registration files: FileSystemWatcher: Created dir c:\wamp64\www\magento2\app\code\JCWizard\Boiler\View Indexing folder c:\wamp64\www\magento2\app\code\JCWizard\Boiler\View Found files registration files: FileSystemWatcher: Created dir c:\wamp64\www\magento2\app\code\JCWizard\Boiler\View\frontend Indexing folder c:\wamp64\www\magento2\app\code\JCWizard\Boiler\View\frontend Found files registration files: FileSystemWatcher: Created dir c:\wamp64\www\magento2\app\code\JCWizard\Boiler\View\frontend\layout Indexing folder c:\wamp64\www\magento2\app\code\JCWizard\Boiler\View\frontend\layout Found files registration files: FileSystemWatcher: Created dir c:\wamp64\www\magento2\app\code\JCWizard\Boiler\View\frontend\layout\templates Indexing folder c:\wamp64\www\magento2\app\code\JCWizard\Boiler\View\frontend\layout\templates Found files registration files: FileSystemWatcher: Deleted c:\wamp64\www\magento2\app\code\JCWizard\Boiler\etc\di.xml

jcellon avatar Sep 21 '21 19:09 jcellon