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.

Uncaught ErrorException: touch(): Utime failed: Invalid argument

See original GitHub issue

Hi. I get an error with the message below, every time I execute a code in Tinker console. It doesn’t matter what the statement is.

Uncaught ErrorException: touch(): Utime failed: Invalid argument in D:\www\mosharekat-laravel\vendor\psy\psysh\src\ConfigPaths.php:250

I’ve attached full error text as a text file for you. error.txt

Environment:

  • IDE & Version: PHPStorm 2020.2.1
  • PHP Version: 7.4.5
  • OS: Windows 10
  • Laravel Tinker plugin version : 1.2.0
  • Interpreter Type: Local
  • Laravel Version: 7.28.3
  • Tinker version: 2.4.2

I’ve also tried reinstalling the plugin, but it didn’t help.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:27 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
Roboroadscommented, Feb 12, 2021

@amirzpr You might confuse nul with null - since null is not a windows file driver (like con or nul). At first I wrote the history to ‘/dev/null’ on unix and ‘null’ in windows. Then I updated the plugin because it made null files in windows.

Here I have a possible fix - tries to check for /dev/null, then nul, then system-tempdir/LTHisxxxx, lastly ./LTHisxxxx. On the last 2 options the file gets removed after executing.

So… The fullest range of possibilities have been combed out this time! See my PR #44 to see what I tried 😂

Laravel Tinker-2.0.0-24-attempt.zip

This one works for me - I spun up a windows VM just to check this 😂

0reactions
stale[bot]commented, Oct 20, 2021

Closing this issue after 90 days of no activity. YTou may reopen this issue if it’s still a think to be looked at!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Laravel Installing Error: "touch(): Utime failed - Stack Overflow
I've tried my best to find the reason but I'm unable to detect what's wrong. As it's happening for the first time and...
Read more >
Error on new Server: Warning: touch(): Utime failed
This happens when the user PHP runs as isn't the owner of the cache files. The file compiler tries to update the cache...
Read more >
"Warning: touch(): Utime failed: Permission denied" on main ...
"Warning: touch(): Utime failed: Permission denied" on main page only after installing Widgets extension. Open, Needs TriagePublic.
Read more >
News — JRuby.org
_strptime raises Java exception on invalid argument; #6440 - Java::JavaLang::NullPointerException () --> JRuby 9.2.13.0 on Windows 10 ...
Read more >
Search - PHP :: Bugs
... 4.3.6, RFE: function to fix microsoft "smart quotes"and other wrong characters ... Method argument type-mismatch returns error with method's line-number ...
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